From b05586f6da7c24560928c847962c77609a0c6047 Mon Sep 17 00:00:00 2001 From: Ankit Tiwari Date: Mon, 11 Dec 2023 14:47:58 +0530 Subject: [PATCH] fix: flaky e2e tests (#777) * fix: breaking e2e tests due to removal of success screen * fix: breaking e2e tests --- test/end-to-end/passwordless.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/end-to-end/passwordless.test.js b/test/end-to-end/passwordless.test.js index 9b63c2ec4..38b1d35a6 100644 --- a/test/end-to-end/passwordless.test.js +++ b/test/end-to-end/passwordless.test.js @@ -1767,6 +1767,8 @@ export function getPasswordlessTestCases({ authRecipe, logId, generalErrorRecipe await setInputValues(anotherTab, [{ name: "userInputCode", value: device.codes[0].userInputCode }]); await submitForm(anotherTab); + await anotherTab.waitForSelector(".sessionInfo-user-id"); + await page.reload({ waitUntil: ["networkidle0"] }); await page.waitForSelector(".sessionInfo-user-id");