From cc61372260ed8e2f6b22e3fc57a37289382d9ff9 Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 14 Jun 2018 15:42:04 -0230 Subject: [PATCH] Disable onbeforeunload alert on remix for contract integration tests. --- test/e2e/beta/metamask-beta-ui.spec.js | 1 + 1 file changed, 1 insertion(+) 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)