From b066e666e5ffa47fbc4cc250fba66eb7cb76ae8a Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 15 Apr 2024 14:36:51 +0200 Subject: [PATCH] fix test --- apps/remix-ide-e2e/src/commands/setupMetamask.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/remix-ide-e2e/src/commands/setupMetamask.ts b/apps/remix-ide-e2e/src/commands/setupMetamask.ts index afabe2ad95..140cb615e5 100644 --- a/apps/remix-ide-e2e/src/commands/setupMetamask.ts +++ b/apps/remix-ide-e2e/src/commands/setupMetamask.ts @@ -52,6 +52,9 @@ function setupMetaMask (browser: NightwatchBrowser, passphrase: string, password .waitForElementVisible('button[data-testid="popover-close"]') .click('button[data-testid="popover-close"]') .pause(1000) + .isPresent('button[data-testid="popover-close"]', () => { + browser.click('button[data-testid="popover-close"]') + }) .click('[data-testid="network-display"]') .click('.mm-modal-content label.toggle-button--off') // show test networks .click('div[data-testid="Sepolia"]') // switch to sepolia