Skip to content

Commit

Permalink
Fix unreliable authenticator registration/removal with pause.
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-snake committed Jan 20, 2025
1 parent 5558ed5 commit 7ab5b28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/frontend/src/test-e2e/recovery/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ test("Recover with phrase", async () => {
const _userNumber = await FLOWS.registerNewIdentityWelcomeView(browser);
const mainView = new MainView(browser);
await mainView.waitForDeviceDisplay(DEVICE_NAME1);

const seedPhrase = await FLOWS.addRecoveryMechanismSeedPhrase(browser);
await mainView.waitForDisplay();
await mainView.logout();
Expand All @@ -33,6 +34,7 @@ test("Recover with device", async () => {
const mainView = new MainView(browser);
await mainView.waitForDeviceDisplay(DEVICE_NAME1);
await removeVirtualAuthenticator(browser, loginAuthenticator);
await browser.pause(10000);

await addVirtualAuthenticator(browser);
await FLOWS.addRecoveryMechanismDevice(browser);
Expand All @@ -53,6 +55,7 @@ test("Recover with both phrase and device", async () => {
const mainView = new MainView(browser);
await mainView.waitForDeviceDisplay(DEVICE_NAME1);
await removeVirtualAuthenticator(browser, loginAuthenticator);
await browser.pause(10000);

await addVirtualAuthenticator(browser);
const seedPhrase = await FLOWS.addRecoveryMechanismSeedPhrase(browser);
Expand Down

0 comments on commit 7ab5b28

Please sign in to comment.