Skip to content

Commit

Permalink
fix: PR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
anku255 committed Aug 27, 2024
1 parent 698be7a commit 1d7b6d4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/end-to-end/oauth2provider.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,10 @@ describe("SuperTokens OAuth2Provider", function () {

await page.waitForSelector("#oauth2-token-data", { hidden: true });

// Ensure supertokens session was cleared
const sessionInfoRes = await fetch(`${TEST_APPLICATION_SERVER_BASE_URL}/sessioninfo`);
assert.strictEqual(sessionInfoRes.status, 401);
// Ensure that the SuperTokens session was cleared by checking for a redirect to the provider's auth page during the login flow.
loginButton = await getOAuth2LoginButton(page);
await loginButton.click();
await waitForUrl(page, "/auth");
});

it("should login without interaction if the user already has a session", async function () {
Expand Down

0 comments on commit 1d7b6d4

Please sign in to comment.