Skip to content

Commit

Permalink
test: fix update otp element
Browse files Browse the repository at this point in the history
  • Loading branch information
LeVinhGithub committed Oct 25, 2024
1 parent ff09632 commit e14d671
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 e14d671

Please sign in to comment.