Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ Feature: Staking Page - Extended View
And (if applicable) first stake pool search result has "<stake_pool_ticker>" 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 | |
Expand Down
7 changes: 5 additions & 2 deletions packages/e2e-tests/src/steps/commonSteps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
Loading