aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-10-11 12:10:35 +0800
committerkumavis <aaron@kumavis.me>2017-10-11 12:10:35 +0800
commitd31c746210cd3130e3fee467f925987eb9578a73 (patch)
tree8a68f8b62c4357f0c7ddcc6490fd20ae264ee7cc /test
parent4096ec9f693f668edfba73a98e91a4d0ef3f3e98 (diff)
downloadtangerine-wallet-browser-d31c746210cd3130e3fee467f925987eb9578a73.tar
tangerine-wallet-browser-d31c746210cd3130e3fee467f925987eb9578a73.tar.gz
tangerine-wallet-browser-d31c746210cd3130e3fee467f925987eb9578a73.tar.bz2
tangerine-wallet-browser-d31c746210cd3130e3fee467f925987eb9578a73.tar.lz
tangerine-wallet-browser-d31c746210cd3130e3fee467f925987eb9578a73.tar.xz
tangerine-wallet-browser-d31c746210cd3130e3fee467f925987eb9578a73.tar.zst
tangerine-wallet-browser-d31c746210cd3130e3fee467f925987eb9578a73.zip
test - integration - intercept reload attempts
Diffstat (limited to 'test')
-rw-r--r--test/integration/lib/first-time.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/integration/lib/first-time.js b/test/integration/lib/first-time.js
index cedb14f6e..ee49d0901 100644
--- a/test/integration/lib/first-time.js
+++ b/test/integration/lib/first-time.js
@@ -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}`)