mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
test - integration - intercept reload attempts
This commit is contained in:
parent
4096ec9f69
commit
d31c746210
@ -3,6 +3,9 @@ const PASSWORD = 'password123'
|
||||
QUnit.module('first time usage')
|
||||
|
||||
QUnit.test('render init screen', (assert) => {
|
||||
// intercept reload attempts
|
||||
window.onbeforeunload = () => true
|
||||
|
||||
const done = assert.async()
|
||||
runFirstTimeUsageTest(assert).then(done).catch((err) => {
|
||||
assert.notOk(err, `Error was thrown: ${err.stack}`)
|
||||
|
Loading…
Reference in New Issue
Block a user