Disable onbeforeunload alert on remix for contract integration tests.

feature/default_network_editable
Dan 7 years ago
parent bf32aeaef2
commit cc61372260
  1. 1
      test/e2e/beta/metamask-beta-ui.spec.js

@ -510,6 +510,7 @@ describe('MetaMask', function () {
assert(firstTxAddress.match(/^0x\w{8}\.{3}\w{4}$/)) assert(firstTxAddress.match(/^0x\w{8}\.{3}\w{4}$/))
await driver.switchTo().window(remix) await driver.switchTo().window(remix)
await driver.executeScript("window.onbeforeunload = function() {};")
await driver.close() await driver.close()
await driver.switchTo().window(extension) await driver.switchTo().window(extension)
await delay(regularDelayMs) await delay(regularDelayMs)

Loading…
Cancel
Save