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
1 changed files with 1 additions and 0 deletions

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)