diff --git a/package-lock.json b/package-lock.json index d2d67c63b..d22b7cd19 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23890,7 +23890,7 @@ }, "node_modules/supertokens-web-js": { "version": "0.12.0", - "resolved": "git+ssh://git@github.com/supertokens/supertokens-web-js.git#f30c657861150a65da4e1a2095be3997d4b2eaaf", + "resolved": "git+ssh://git@github.com/supertokens/supertokens-web-js.git#ecc517a15511d2a2d20f0cdc33f31244b8115854", "license": "Apache-2.0", "peer": true, "dependencies": { @@ -23900,7 +23900,7 @@ }, "node_modules/supertokens-website": { "version": "20.0.2", - "resolved": "git+ssh://git@github.com/supertokens/supertokens-website.git#87d91400db32dc6f9eb7d706e558f036c686cb07", + "resolved": "git+ssh://git@github.com/supertokens/supertokens-website.git#e8b03b341a9098d0b5119a978a1174c92d5060ae", "license": "Apache-2.0", "peer": true, "dependencies": { @@ -43370,7 +43370,7 @@ "integrity": "sha512-r0JFBjkMIdep3Lbk3JA+MpnpuOtw4RSyrlRAbrzMcxwiYco3GFWl/daimQZ5b1forOiUODpOlXbSOljP/oyurg==" }, "supertokens-web-js": { - "version": "git+ssh://git@github.com/supertokens/supertokens-web-js.git#f30c657861150a65da4e1a2095be3997d4b2eaaf", + "version": "git+ssh://git@github.com/supertokens/supertokens-web-js.git#ecc517a15511d2a2d20f0cdc33f31244b8115854", "from": "supertokens-web-js@github:supertokens/supertokens-web-js#0.12", "peer": true, "requires": { @@ -43379,7 +43379,7 @@ } }, "supertokens-website": { - "version": "git+ssh://git@github.com/supertokens/supertokens-website.git#87d91400db32dc6f9eb7d706e558f036c686cb07", + "version": "git+ssh://git@github.com/supertokens/supertokens-website.git#e8b03b341a9098d0b5119a978a1174c92d5060ae", "from": "supertokens-website@github:supertokens/supertokens-website#20.0", "peer": true, "requires": { diff --git a/test/end-to-end/signin-rrdv5.test.js b/test/end-to-end/signin-rrdv5.test.js index 060bc14cf..6061c1ef4 100644 --- a/test/end-to-end/signin-rrdv5.test.js +++ b/test/end-to-end/signin-rrdv5.test.js @@ -572,6 +572,7 @@ describe("SuperTokens SignIn with react router dom v5", function () { submitFormReturnRequestAndResponse(page, SIGN_IN_API), page.waitForNavigation({ waitUntil: "networkidle0" }), ]); + await page.waitForSelector(".sessionInfo-user-id"); const pathname = await page.evaluate(() => window.location.pathname); assert.deepStrictEqual(pathname, "/redirect-to-this-custom-path"); assert.deepStrictEqual(consoleLogs, [ @@ -611,6 +612,7 @@ describe("SuperTokens SignIn with react router dom v5", function () { submitFormReturnRequestAndResponse(page, SIGN_IN_API), page.waitForNavigation({ waitUntil: "networkidle0" }), ]); + await page.waitForSelector(".sessionInfo-user-id"); const pathname = await page.evaluate(() => window.location.pathname); assert.deepStrictEqual(pathname, "/CasE/Case-SensItive1-PAth"); assert.deepStrictEqual(consoleLogs, [ diff --git a/test/end-to-end/signin-rrdv6.test.js b/test/end-to-end/signin-rrdv6.test.js index 62bafd122..1af3e0a2d 100644 --- a/test/end-to-end/signin-rrdv6.test.js +++ b/test/end-to-end/signin-rrdv6.test.js @@ -720,6 +720,7 @@ describe("SuperTokens SignIn with react router dom v6", function () { submitFormReturnRequestAndResponse(page, SIGN_IN_API), page.waitForNavigation({ waitUntil: "networkidle0" }), ]); + await page.waitForSelector(".sessionInfo-user-id"); const pathname = await page.evaluate(() => window.location.pathname); assert.deepStrictEqual(pathname, "/redirect-to-this-custom-path"); assert.deepStrictEqual(consoleLogs, [ @@ -760,6 +761,7 @@ describe("SuperTokens SignIn with react router dom v6", function () { submitFormReturnRequestAndResponse(page, SIGN_IN_API), page.waitForNavigation({ waitUntil: "networkidle0" }), ]); + await page.waitForSelector(".sessionInfo-user-id"); const pathname = await page.evaluate(() => window.location.pathname); assert.deepStrictEqual(pathname, "/CasE/Case-SensItive1-PAth"); assert.deepStrictEqual(consoleLogs, [ diff --git a/test/end-to-end/signin.test.js b/test/end-to-end/signin.test.js index 36ad38dbb..6bcf1823a 100644 --- a/test/end-to-end/signin.test.js +++ b/test/end-to-end/signin.test.js @@ -102,6 +102,7 @@ describe("SuperTokens SignIn", function () { page = await browser.newPage(); page.on("console", (consoleObj) => { const log = consoleObj.text(); + // console.log(log); if (log.startsWith("ST_LOGS")) { consoleLogs.push(log); } @@ -660,6 +661,7 @@ describe("SuperTokens SignIn", function () { submitFormReturnRequestAndResponse(page, SIGN_IN_API), page.waitForNavigation({ waitUntil: "networkidle0" }), ]); + await page.waitForSelector(".sessionInfo-user-id"); const pathname = await page.evaluate(() => window.location.pathname); assert.deepStrictEqual(pathname, "/redirect-to-this-custom-path"); assert.deepStrictEqual(consoleLogs, [ @@ -700,6 +702,7 @@ describe("SuperTokens SignIn", function () { submitFormReturnRequestAndResponse(page, SIGN_IN_API), page.waitForNavigation({ waitUntil: "networkidle0" }), ]); + await page.waitForSelector(".sessionInfo-user-id"); const pathname = await page.evaluate(() => window.location.pathname); assert.deepStrictEqual(pathname, "/CasE/Case-SensItive1-PAth"); assert.deepStrictEqual(consoleLogs, [ diff --git a/test/end-to-end/thirdparty.test.js b/test/end-to-end/thirdparty.test.js index 5fb216652..8306a1259 100644 --- a/test/end-to-end/thirdparty.test.js +++ b/test/end-to-end/thirdparty.test.js @@ -109,6 +109,7 @@ export function getThirdPartyTestCases({ authRecipe, rid, signInUpPageLoadLogs, loginWithAuth0(page), page.waitForResponse((response) => response.url() === SIGN_IN_UP_API && response.status() === 200), ]); + await page.waitForSelector(".sessionInfo-user-id"); const pathname = await page.evaluate(() => window.location.pathname); assert.deepStrictEqual(pathname, "/dashboard"); assert.deepStrictEqual(consoleLogs, [ @@ -213,6 +214,7 @@ export function getThirdPartyTestCases({ authRecipe, rid, signInUpPageLoadLogs, loginWithAuth0(page), page.waitForResponse((response) => response.url() === SIGN_IN_UP_API && response.status() === 200), ]); + await page.waitForSelector(".sessionInfo-user-id"); const pathname = await page.evaluate(() => window.location.pathname); assert.deepStrictEqual(pathname, "/dashboard"); assert.deepStrictEqual(consoleLogs, [ diff --git a/test/end-to-end/thirdpartyemailpassword.test.js b/test/end-to-end/thirdpartyemailpassword.test.js index 0be4afaff..b1831751a 100644 --- a/test/end-to-end/thirdpartyemailpassword.test.js +++ b/test/end-to-end/thirdpartyemailpassword.test.js @@ -293,6 +293,7 @@ describe("SuperTokens Third Party Email Password", function () { loginWithAuth0(page), page.waitForResponse((response) => response.url() === SIGN_IN_UP_API && response.status() === 200), ]); + await page.waitForSelector(".sessionInfo-user-id"); const pathname = await page.evaluate(() => window.location.pathname); assert.deepStrictEqual(pathname, "/dashboard"); assert.deepStrictEqual(consoleLogs, [