Skip to content

Commit

Permalink
adds delay in test to make it more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Oct 2, 2024
1 parent f3b46d1 commit 7501c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/end-to-end/mfa.helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export async function tryPasswordlessSignInUp(page, contactInfo, queryParams, is
}
export async function goToFactorChooser(page, waitForList = true) {
const ele = await page.waitForSelector(".goToFactorChooser");
await waitFor(100);
await waitFor(500);
await Promise.all([page.waitForNavigation({ waitUntil: "networkidle0" }), ele.click()]);
if (waitForList) {
await waitForSTElement(page, "[data-supertokens~=factorChooserList]");
Expand Down

0 comments on commit 7501c03

Please sign in to comment.