Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions test/e2e/tests/vault-corruption/vault-corruption.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,8 @@
* @param driver - The WebDriver instance.
*/
async function waitForVaultRestorePage(driver: Driver) {
await driver.waitUntil(
async () => {
await driver.navigate(PAGES.HOME, { waitForControllers: false });
const title = await driver.driver.getTitle();
// the browser will return an error message for our UI's HOME page until
// the extension has restarted
return title === WINDOW_TITLES.ExtensionInFullScreenView;
},
// reload and check title as quickly a possible
{ interval: 100, timeout: 10000 },
);
await driver.delay(10000)

Check failure on line 123 in test/e2e/tests/vault-corruption/vault-corruption.spec.ts

View workflow job for this annotation

GitHub Actions / test-lint / Test lint

Insert `;`
await driver.navigate(PAGES.HOME, { waitForControllers: false });
await driver.assertElementNotPresent('.loading-logo', { timeout: 10000 });
}

Expand Down
Loading