test - integration - intercept reload attempts

feature/default_network_editable
kumavis 7 years ago
parent 4096ec9f69
commit d31c746210
  1. 3
      test/integration/lib/first-time.js

@ -3,6 +3,9 @@ const PASSWORD = 'password123'
QUnit.module('first time usage') QUnit.module('first time usage')
QUnit.test('render init screen', (assert) => { QUnit.test('render init screen', (assert) => {
// intercept reload attempts
window.onbeforeunload = () => true
const done = assert.async() const done = assert.async()
runFirstTimeUsageTest(assert).then(done).catch((err) => { runFirstTimeUsageTest(assert).then(done).catch((err) => {
assert.notOk(err, `Error was thrown: ${err.stack}`) assert.notOk(err, `Error was thrown: ${err.stack}`)

Loading…
Cancel
Save