aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-06-15 02:12:04 +0800
committerDan <danjm.com@gmail.com>2018-06-27 21:31:26 +0800
commitcc61372260ed8e2f6b22e3fc57a37289382d9ff9 (patch)
treeab354b53c3273682c776208a0d238a2285ed1e9a /test
parentbf32aeaef26907369ae52ac2e9fcde7336d6760d (diff)
downloadtangerine-wallet-browser-cc61372260ed8e2f6b22e3fc57a37289382d9ff9.tar
tangerine-wallet-browser-cc61372260ed8e2f6b22e3fc57a37289382d9ff9.tar.gz
tangerine-wallet-browser-cc61372260ed8e2f6b22e3fc57a37289382d9ff9.tar.bz2
tangerine-wallet-browser-cc61372260ed8e2f6b22e3fc57a37289382d9ff9.tar.lz
tangerine-wallet-browser-cc61372260ed8e2f6b22e3fc57a37289382d9ff9.tar.xz
tangerine-wallet-browser-cc61372260ed8e2f6b22e3fc57a37289382d9ff9.tar.zst
tangerine-wallet-browser-cc61372260ed8e2f6b22e3fc57a37289382d9ff9.zip
Disable onbeforeunload alert on remix for contract integration tests.
Diffstat (limited to 'test')
-rw-r--r--test/e2e/beta/metamask-beta-ui.spec.js1
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)