aboutsummaryrefslogtreecommitdiffstats
path: root/test/integration/lib/mascara-first-time.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-11-03 03:45:45 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-11-03 06:16:43 +0800
commitacc973d543ac65f8db980c0007c248c509345411 (patch)
treedabb5c79223900049ca2478d638824bc913bb41d /test/integration/lib/mascara-first-time.js
parentb7653e82079b60078b921776b169518d13c7e806 (diff)
downloadtangerine-wallet-browser-acc973d543ac65f8db980c0007c248c509345411.tar
tangerine-wallet-browser-acc973d543ac65f8db980c0007c248c509345411.tar.gz
tangerine-wallet-browser-acc973d543ac65f8db980c0007c248c509345411.tar.bz2
tangerine-wallet-browser-acc973d543ac65f8db980c0007c248c509345411.tar.lz
tangerine-wallet-browser-acc973d543ac65f8db980c0007c248c509345411.tar.xz
tangerine-wallet-browser-acc973d543ac65f8db980c0007c248c509345411.tar.zst
tangerine-wallet-browser-acc973d543ac65f8db980c0007c248c509345411.zip
Update classnames for integration tests and add output/index.css to integration test for ci
Diffstat (limited to 'test/integration/lib/mascara-first-time.js')
-rw-r--r--test/integration/lib/mascara-first-time.js26
1 files changed, 9 insertions, 17 deletions
diff --git a/test/integration/lib/mascara-first-time.js b/test/integration/lib/mascara-first-time.js
index 3398a5511..398ecea0e 100644
--- a/test/integration/lib/mascara-first-time.js
+++ b/test/integration/lib/mascara-first-time.js
@@ -102,14 +102,12 @@ async function runFirstTimeUsageTest (assert, done) {
app.find('.buy-ether__do-it-later').click()
await timeout(1000)
- const sandwich = app.find('.sandwich-expando')[0]
- sandwich.click()
+ const menu = app.find('.account-menu__icon')[0]
+ menu.click()
await timeout()
- const menu = app.find('.menu-droppo')[0]
- const children = menu.children
- const lock = children[children.length - 2]
+ const lock = app.find('.account-menu__logout-button')[0]
assert.ok(lock, 'Lock menu item found')
lock.click()
@@ -123,31 +121,25 @@ async function runFirstTimeUsageTest (assert, done) {
await timeout(1000)
- const detail2 = app.find('.account-detail-section')[0]
+ const detail2 = app.find('.wallet-view')[0]
assert.ok(detail2, 'Account detail section loaded again.')
await timeout()
// open account settings dropdown
- const qrButton = app.find('.fa.fa-ellipsis-h')[0]
+ const qrButton = app.find('.wallet-view__details-button')[0]
qrButton.click()
await timeout(1000)
- // qr code item
- const qrButton2 = app.find('.dropdown-menu-item')[1]
- qrButton2.click()
-
- await timeout(1000)
-
- const qrHeader = app.find('.qr-header')[0]
- const qrContainer = app.find('#qr-container')[0]
+ const qrHeader = app.find('.editable-label__value')[0]
+ const qrContainer = app.find('.qr-wrapper')[0]
assert.equal(qrHeader.textContent, 'Account 1', 'Should show account label.')
assert.ok(qrContainer, 'QR Container found')
await timeout()
- const networkMenu = app.find('.network-indicator')[0]
+ const networkMenu = app.find('.network-component')[0]
networkMenu.click()
await timeout()
@@ -164,4 +156,4 @@ function timeout (time) {
return new Promise((resolve, reject) => {
setTimeout(resolve, time || 1500)
})
-}
+} \ No newline at end of file