Disable onbeforeunload alert on remix for contract integration tests.
This commit is contained in:
parent
bf32aeaef2
commit
cc61372260
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue