Skip to content

Commit

Permalink
test: add missing test teardown fn to new test
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Oct 28, 2024
1 parent ab69ea6 commit 22ae9c4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 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,17 @@ export function getPasswordlessTestCases({ authRecipe, logId, generalErrorRecipe
}
});

after(async function () {
await browser.close();
await fetch(`${TEST_SERVER_BASE_URL}/after`, {
method: "POST",
}).catch(console.error);

await fetch(`${TEST_SERVER_BASE_URL}/stopst`, {
method: "POST",
}).catch(console.error);
});

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

Expand Down

0 comments on commit 22ae9c4

Please sign in to comment.