diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-11-30 03:49:53 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-11-30 03:49:53 +0800 |
commit | e35cd77eee3212063703f42b37f51be80cdbdab1 (patch) | |
tree | 5824ba310591fe1e10ff1e89f97cee03fdd7a80c /test | |
parent | 45c5a26405e20a64fab16fa212fd4e5b21e49e68 (diff) | |
download | tangerine-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
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/lib/mascara-first-time.js | 21 |
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') |