diff --git a/apps/remix-ide-e2e/src/commands/setupMetamask.ts b/apps/remix-ide-e2e/src/commands/setupMetamask.ts index c92e98d42c..0cc00f61b4 100644 --- a/apps/remix-ide-e2e/src/commands/setupMetamask.ts +++ b/apps/remix-ide-e2e/src/commands/setupMetamask.ts @@ -71,6 +71,13 @@ function setupMetaMask(browser: NightwatchBrowser, passphrase: string, password: browser.click('button[data-testid="popover-close"]') } }) + .waitForElementNotPresent({ + selector: 'button[data-testid="popover-close"]', + locateStrategy: 'css selector', + suppressNotFoundErrors: true, + abortOnFailure: false, + timeout: 10000 + }) .saveScreenshot('./reports/screenshot/metamask.png') .click('[data-testid="network-display"]') .click('.mm-modal-content label.toggle-button--off') // show test networks