Skip to content

Commit 9a6f529

Browse files
authored
Fix tests (#856)
1 parent e0d7d28 commit 9a6f529

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/end-to-end/emailverification.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,10 @@ describe("SuperTokens Email Verification", function () {
371371
assert.deepStrictEqual(generalSuccess, "Email resent");
372372

373373
// Click on Logout should remove session and redirect to login page
374-
await Promise.all([clickLinkWithRightArrow(page), page.waitForNavigation({ waitUntil: "networkidle0" })]);
374+
await Promise.all([
375+
logoutFromEmailVerification(page),
376+
page.waitForNavigation({ waitUntil: "networkidle0" }),
377+
]);
375378
await waitForUrl(page, "/auth/");
376379
assert.deepStrictEqual(consoleLogs, [
377380
"ST_LOGS SESSION OVERRIDE ADD_FETCH_INTERCEPTORS_AND_RETURN_MODIFIED_FETCH",

test/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ export async function logoutFromEmailVerification(page) {
368368
({ ST_ROOT_SELECTOR }) =>
369369
document
370370
.querySelector(ST_ROOT_SELECTOR)
371-
.shadowRoot.querySelector("[data-supertokens~='secondaryLinkWithArrow']")
371+
.shadowRoot.querySelector("[data-supertokens~='buttonWithArrow']")
372372
.click(),
373373
{ ST_ROOT_SELECTOR }
374374
);

0 commit comments

Comments
 (0)