Skip to content

Commit

Permalink
test: add missing skips for closing the browser (#804)
Browse files Browse the repository at this point in the history
* test: update tests to fix CI

* test: add more missing var declarations

* test: fix missing skip condition

* refactor: rework how we get session payload for newSessionCreated

* test: add missing skips for closing the browser
  • Loading branch information
porcellus committed Mar 15, 2024
1 parent 528958f commit bab5144
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/end-to-end/mfa.chooserscreen.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ describe("SuperTokens SignIn w/ MFA", function () {
});

after(async function () {
await browser.close();
if (!skipped) {
await browser.close();
}

await fetch(`${TEST_SERVER_BASE_URL}/after`, {
method: "POST",
Expand Down
4 changes: 3 additions & 1 deletion test/end-to-end/mfa.factorscreen.totp.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ describe("SuperTokens SignIn w/ MFA", function () {
});

after(async function () {
await browser.close();
if (skipped) {
await browser.close();
}

await fetch(`${TEST_SERVER_BASE_URL}/after`, {
method: "POST",
Expand Down

0 comments on commit bab5144

Please sign in to comment.