Skip to content

Commit

Permalink
test: add missing cleanup in beforeEach of new test case
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Oct 28, 2024
1 parent b54c428 commit ac04e76
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/end-to-end/passwordless.test_gen.js
Original file line number Diff line number Diff line change
Expand Up @@ -1878,6 +1878,15 @@ export function getPasswordlessTestCases({ authRecipe, logId, generalErrorRecipe
}
});

beforeEach(async function () {
await clearBrowserCookiesWithoutAffectingConsole(page, consoleLogs);

await page.evaluate(() => localStorage.removeItem("supertokens-passwordless-loginAttemptInfo"));
await page.evaluate(() => localStorage.removeItem("SHOW_GENERAL_ERROR"));

consoleLogs.length = 0;
});

it("should navigate to the sign in page when the user clicks on the forgot password link", async function () {
await page.goto(`${TEST_CLIENT_BASE_URL}/auth`);

Expand Down

0 comments on commit ac04e76

Please sign in to comment.