Skip to content

Commit a23dda2

Browse files
Add fix for properly checking error for webauthn
1 parent 37eea51 commit a23dda2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/end-to-end/webauthn.accountlinking.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ describe("SuperTokens WebAuthn Account Linking", function () {
133133

134134
// We should be in the confirmation page now.
135135
await submitForm(page);
136-
await page.waitForTimeout(1000);
136+
await page.waitForTimeout(4000);
137137

138138
// Extract second userId from console logs
139139
const userId2 = await page.evaluate(() => document.querySelector(".session-context-userId").textContent);
@@ -222,7 +222,7 @@ describe("SuperTokens WebAuthn Account Linking", function () {
222222
await submitForm(page);
223223

224224
await page.waitForTimeout(1000);
225-
await waitForSTElement(page, "[data-supertokens~='passkeyRecoverableErrorContainer']");
225+
await waitForSTElement(page, "[data-supertokens~='generalError']");
226226

227227
// Try to recover the webauthn account using the same email
228228
await openRecoveryAccountPage(page, email, true);

0 commit comments

Comments
 (0)