diff --git a/packages/e2e-tests/src/features/MultiDelegationPageExtended.part1.feature b/packages/e2e-tests/src/features/MultiDelegationPageExtended.part1.feature index dd00212cf..cbb661289 100644 --- a/packages/e2e-tests/src/features/MultiDelegationPageExtended.part1.feature +++ b/packages/e2e-tests/src/features/MultiDelegationPageExtended.part1.feature @@ -37,8 +37,8 @@ Feature: Staking Page - Extended View And (if applicable) first stake pool search result has "" ticker Examples: | stake_pool_search_term | number_of_results | stake_pool_ticker | - | a Capital | 2 | ADACT | - | a capital | 2 | ADACT | + | a Capital | 1 | ADACT | + | a capital | 1 | ADACT | | ABC# | 0 | | | HUA | 2 | HUADA | | 123456 | 0 | | diff --git a/packages/e2e-tests/src/steps/commonSteps.ts b/packages/e2e-tests/src/steps/commonSteps.ts index 6c60ea6df..40d092113 100755 --- a/packages/e2e-tests/src/steps/commonSteps.ts +++ b/packages/e2e-tests/src/steps/commonSteps.ts @@ -203,13 +203,16 @@ Then(/^I open wallet: "([^"]*)" in: (extended|popup) mode$/, async (walletName: await clearWalletRepository(); // Quick fix for: "no such window: no such window: target window already closed from unknown error: web view not found" thrown by next line of code // TODO: recheck when LW-12520 (as it can be related) - await browser.switchWindow(/Lace/); + await browser.refresh(); + const handles = await browser.getWindowHandles(); + await browser.switchToWindow(handles[0]); await localStorageManager.cleanLocalStorage(); await (walletName === 'newCreatedWallet' ? addAndActivateWalletInRepository(String(testContext.load('newCreatedWallet'))) : addAndActivateWalletsInRepository([walletName as TestWalletName])); - + // Quick fix for: "no such window: no such window: target window already closed from unknown error: web view not found" thrown by the next lines of code + await browser.switchWindow(/Lace/); await localStorageInitializer.initialiseBasicLocalStorageData(walletName); await localStorageInitializer.initializeShowMultiAddressDiscoveryModal(false); if (mode === 'popup') {