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:
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
Block a user