1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Disable onbeforeunload alert on remix for contract integration tests.

This commit is contained in:
Dan 2018-06-14 15:42:04 -02:30
parent bf32aeaef2
commit cc61372260

View File

@ -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)