diff options
Disable onbeforeunload alert on remix for contract integration tests.
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/beta/metamask-beta-ui.spec.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js index 2b52e1e7c..451437ab1 100644 --- a/test/e2e/beta/metamask-beta-ui.spec.js +++ b/test/e2e/beta/metamask-beta-ui.spec.js @@ -510,6 +510,7 @@ describe('MetaMask', function () { assert(firstTxAddress.match(/^0x\w{8}\.{3}\w{4}$/)) await driver.switchTo().window(remix) + await driver.executeScript("window.onbeforeunload = function() {};") await driver.close() await driver.switchTo().window(extension) await delay(regularDelayMs) |