aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-11-30 03:49:53 +0800
committerDan Finlay <dan@danfinlay.com>2017-11-30 03:49:53 +0800
commite35cd77eee3212063703f42b37f51be80cdbdab1 (patch)
tree5824ba310591fe1e10ff1e89f97cee03fdd7a80c
parent45c5a26405e20a64fab16fa212fd4e5b21e49e68 (diff)
downloadtangerine-wallet-browser-e35cd77eee3212063703f42b37f51be80cdbdab1.tar
tangerine-wallet-browser-e35cd77eee3212063703f42b37f51be80cdbdab1.tar.gz
tangerine-wallet-browser-e35cd77eee3212063703f42b37f51be80cdbdab1.tar.bz2
tangerine-wallet-browser-e35cd77eee3212063703f42b37f51be80cdbdab1.tar.lz
tangerine-wallet-browser-e35cd77eee3212063703f42b37f51be80cdbdab1.tar.xz
tangerine-wallet-browser-e35cd77eee3212063703f42b37f51be80cdbdab1.tar.zst
tangerine-wallet-browser-e35cd77eee3212063703f42b37f51be80cdbdab1.zip
Accept all notices in integration tests
-rw-r--r--test/integration/lib/mascara-first-time.js21
1 files changed, 3 insertions, 18 deletions
diff --git a/test/integration/lib/mascara-first-time.js b/test/integration/lib/mascara-first-time.js
index 9141b68d2..42ef83f4f 100644
--- a/test/integration/lib/mascara-first-time.js
+++ b/test/integration/lib/mascara-first-time.js
@@ -57,29 +57,14 @@ async function runFirstTimeUsageTest (assert, done) {
await timeout(1000)
- // Skip things before Privacy:
+ // Skip notices:
let detail = app.find('.tou__title')[0]
- while (detail !== 'Privacy Notice') {
+ let button = app.find('button')
+ if (button.html() === 'Accept') {
app.find('button').click()
await timeout(1000)
}
- // Privacy Screen
- assert.equal(detail.textContent, 'Privacy Notice', 'privacy notice screen')
- app.find('button').click()
-
- await timeout(1000)
-
-
- // terms of service screen
- const tou = app.find('.tou__title')[0]
- assert.equal(tou.textContent, 'Terms of Use', 'terms of use screen')
- app.find('.tou__body').scrollTop(100000)
- await timeout(1000)
-
- app.find('.first-time-flow__button').click()
- await timeout(1000)
-
// secret backup phrase
const seedTitle = app.find('.backup-phrase__title')[0]
assert.equal(seedTitle.textContent, 'Secret Backup Phrase', 'seed phrase screen')