From 9773c2e0d5a70656dea193d4021981f31f75813f Mon Sep 17 00:00:00 2001 From: Ivan Vershigora Date: Fri, 15 Nov 2024 20:59:16 +0000 Subject: [PATCH] fix: e2e import wallet tests --- tests/e2e/bluewallet.spec.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/e2e/bluewallet.spec.js b/tests/e2e/bluewallet.spec.js index 9dd2782e8..e6f319f36 100644 --- a/tests/e2e/bluewallet.spec.js +++ b/tests/e2e/bluewallet.spec.js @@ -698,13 +698,14 @@ describe('BlueWallet UI Tests - no wallets', () => { await element(by.id('DoImport')).tap(); await sleep(1000); await element(by.text('OK')).tap(); - await waitFor(element(by.id('Loading'))) // wait for discovery to be completed - .not.toExist() - .withTimeout(300 * 1000); + // wait for discovery to be completed + await waitFor(element(by.text("m/84'/0'/0'"))) + .toBeVisible() + .withTimeout(300 * 1000); await expect(element(by.text("m/44'/0'/1'"))).toBeVisible(); await expect(element(by.text("m/49'/0'/0'"))).toBeVisible(); - await expect(element(by.text("m/84'/0'/0'"))).toBeVisible(); + await expect(element(by.id('Loading'))).not.toBeVisible(); // open custom derivation path screen and import the wallet await element(by.id('CustomDerivationPathButton')).tap();