aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-11-30 04:23:31 +0800
committerDan Finlay <dan@danfinlay.com>2017-11-30 04:23:31 +0800
commit119c0fdecf504fcaa84987639e8f3c031b1b8285 (patch)
tree512ff45f5167bfbe71ca48afae2d7ea8262a36bb /test
parent6d63720f872c67f083a321d3081e2792acf57453 (diff)
downloadtangerine-wallet-browser-119c0fdecf504fcaa84987639e8f3c031b1b8285.tar
tangerine-wallet-browser-119c0fdecf504fcaa84987639e8f3c031b1b8285.tar.gz
tangerine-wallet-browser-119c0fdecf504fcaa84987639e8f3c031b1b8285.tar.bz2
tangerine-wallet-browser-119c0fdecf504fcaa84987639e8f3c031b1b8285.tar.lz
tangerine-wallet-browser-119c0fdecf504fcaa84987639e8f3c031b1b8285.tar.xz
tangerine-wallet-browser-119c0fdecf504fcaa84987639e8f3c031b1b8285.tar.zst
tangerine-wallet-browser-119c0fdecf504fcaa84987639e8f3c031b1b8285.zip
Make test more resilient
Diffstat (limited to 'test')
-rw-r--r--test/integration/lib/mascara-first-time.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/integration/lib/mascara-first-time.js b/test/integration/lib/mascara-first-time.js
index 55b98765f..aebaef83c 100644
--- a/test/integration/lib/mascara-first-time.js
+++ b/test/integration/lib/mascara-first-time.js
@@ -9,7 +9,7 @@ async function runFirstTimeUsageTest (assert, done) {
// recurse notices
while (true) {
const button = app.find('button')
- if (button.html() === 'Accept') {
+ if (button && button.html() === 'Accept') {
// still notices to accept
const termsPage = app.find('.markdown')[0]
termsPage.scrollTop = termsPage.scrollHeight
@@ -59,8 +59,8 @@ async function runFirstTimeUsageTest (assert, done) {
// Skip notices:
let detail = app.find('.tou__title')[0]
- button = app.find('button')
- if (button.html() === 'Accept') {
+ button = app.find('button')[0]
+ if (button && button.html() === 'Accept') {
app.find('button').click()
await timeout(1000)
button = app.find('button')