Skip to content

Commit ac04e76

Browse files
committed
test: add missing cleanup in beforeEach of new test case
1 parent b54c428 commit ac04e76

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/end-to-end/passwordless.test_gen.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,6 +1878,15 @@ export function getPasswordlessTestCases({ authRecipe, logId, generalErrorRecipe
18781878
}
18791879
});
18801880

1881+
beforeEach(async function () {
1882+
await clearBrowserCookiesWithoutAffectingConsole(page, consoleLogs);
1883+
1884+
await page.evaluate(() => localStorage.removeItem("supertokens-passwordless-loginAttemptInfo"));
1885+
await page.evaluate(() => localStorage.removeItem("SHOW_GENERAL_ERROR"));
1886+
1887+
consoleLogs.length = 0;
1888+
});
1889+
18811890
it("should navigate to the sign in page when the user clicks on the forgot password link", async function () {
18821891
await page.goto(`${TEST_CLIENT_BASE_URL}/auth`);
18831892

0 commit comments

Comments
 (0)