Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ohansFavour committed Sep 5, 2024
1 parent e0d7d28 commit 2f7c93d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/end-to-end/emailverification.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,10 @@ describe("SuperTokens Email Verification", function () {
assert.deepStrictEqual(generalSuccess, "Email resent");

// Click on Logout should remove session and redirect to login page
await Promise.all([clickLinkWithRightArrow(page), page.waitForNavigation({ waitUntil: "networkidle0" })]);
await Promise.all([
logoutFromEmailVerification(page),
page.waitForNavigation({ waitUntil: "networkidle0" }),
]);
await waitForUrl(page, "/auth/");
assert.deepStrictEqual(consoleLogs, [
"ST_LOGS SESSION OVERRIDE ADD_FETCH_INTERCEPTORS_AND_RETURN_MODIFIED_FETCH",
Expand Down
2 changes: 1 addition & 1 deletion test/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export async function logoutFromEmailVerification(page) {
({ ST_ROOT_SELECTOR }) =>
document
.querySelector(ST_ROOT_SELECTOR)
.shadowRoot.querySelector("[data-supertokens~='secondaryLinkWithArrow']")
.shadowRoot.querySelector("[data-supertokens~='buttonWithArrow']")
.click(),
{ ST_ROOT_SELECTOR }
);
Expand Down

0 comments on commit 2f7c93d

Please sign in to comment.