Skip to content

Commit

Permalink
Merge branch 'master' into demo_wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayaktorus committed Oct 26, 2024
2 parents df87b78 + e14d671 commit e493260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions authservice/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,8 @@ async function verifyEmailPasswordlessWithVerificationCode(
if (!config.redirectMode) {
const pages = browser.contexts()[0].pages();
await pages[1].bringToFront();
await pages[1].locator(`xpath=.//input[@data-test='single-input'][@class='otp-input']`).first().type(verificationCode);
} else await page.locator(`xpath=.//input[@data-test='single-input'][@class='otp-input']`).first().type(verificationCode);
await pages[1].locator(`xpath=.//input[@autocomplete="one-time-code"]`).first().type(verificationCode);
} else await page.locator(`xpath=.//input[@autocomplete="one-time-code"]`).first().type(verificationCode);

return verificationCode;
}
Expand Down

0 comments on commit e493260

Please sign in to comment.