From 49b5234f5f028836c86842a17a60177ad7f4cf45 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 15 Jul 2024 10:04:12 +0200 Subject: [PATCH] add more chsks --- apps/remix-ide-e2e/src/commands/setupMetamask.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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