hide popups

pull/4978/head
Your Name 7 months ago committed by Aniket
parent a3b8f9f6a3
commit c7c111d533
  1. 6
      apps/remix-ide-e2e/src/commands/hideMetaMaskPopup.ts

@ -9,13 +9,13 @@ class HideMetaMaskPopup extends EventEmitter {
locateStrategy: 'css selector', locateStrategy: 'css selector',
suppressNotFoundErrors: true, suppressNotFoundErrors: true,
abortOnFailure: false, abortOnFailure: false,
timeout: 10000 timeout: 2000
}) })
.isVisible({ .isVisible({
selector: 'button[data-testid="popover-close"]', selector: 'button[data-testid="popover-close"]',
locateStrategy: 'css selector', locateStrategy: 'css selector',
suppressNotFoundErrors: true, suppressNotFoundErrors: true,
timeout: 3000 timeout: 2000
}, (okVisible) => { }, (okVisible) => {
console.log('okVisible', okVisible) console.log('okVisible', okVisible)
if (!okVisible.value) { if (!okVisible.value) {
@ -28,7 +28,7 @@ class HideMetaMaskPopup extends EventEmitter {
.waitForElementNotPresent({ .waitForElementNotPresent({
selector: 'button[data-testid="popover-close"]', selector: 'button[data-testid="popover-close"]',
locateStrategy: 'css selector', locateStrategy: 'css selector',
timeout: 3000 timeout: 2000
}) })
} }
} }

Loading…
Cancel
Save