aboutsummaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorThomas <tmashuang@gmail.com>2018-01-23 08:10:07 +0800
committerThomas <tmashuang@gmail.com>2018-01-23 08:10:07 +0800
commitb62ec394f55b7bf3209cf5e1dc4721648dfc15dc (patch)
tree8a5407e6e0cd9d2e99ecce80786eb2cc9c9d53ef /test/integration
parentce0de5feed223a1c02b3b76dfff3f4c3fd392734 (diff)
downloadtangerine-wallet-browser-b62ec394f55b7bf3209cf5e1dc4721648dfc15dc.tar
tangerine-wallet-browser-b62ec394f55b7bf3209cf5e1dc4721648dfc15dc.tar.gz
tangerine-wallet-browser-b62ec394f55b7bf3209cf5e1dc4721648dfc15dc.tar.bz2
tangerine-wallet-browser-b62ec394f55b7bf3209cf5e1dc4721648dfc15dc.tar.lz
tangerine-wallet-browser-b62ec394f55b7bf3209cf5e1dc4721648dfc15dc.tar.xz
tangerine-wallet-browser-b62ec394f55b7bf3209cf5e1dc4721648dfc15dc.tar.zst
tangerine-wallet-browser-b62ec394f55b7bf3209cf5e1dc4721648dfc15dc.zip
Revert integration to oldUi
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/lib/first-time.js41
1 files changed, 23 insertions, 18 deletions
diff --git a/test/integration/lib/first-time.js b/test/integration/lib/first-time.js
index e59897713..06325ab98 100644
--- a/test/integration/lib/first-time.js
+++ b/test/integration/lib/first-time.js
@@ -39,9 +39,8 @@ async function runFirstTimeUsageTest(assert, done) {
await timeout()
// Scroll through terms
- const title = app.find('h1').text()
- // TODO Find where Metamask is getting added twice in the title
- assert.equal(title, 'MetaMaskMetaMask', 'title screen')
+ const title = app.find('h1')[1]
+ assert.equal(title.textContent, 'MetaMask', 'title screen')
// enter password
const pwBox = app.find('#password-box')[0]
@@ -67,19 +66,19 @@ async function runFirstTimeUsageTest(assert, done) {
await timeout(1000)
- const detail = app.find('.wallet-view')[0]
+ const detail = app.find('.account-detail-section')[0]
assert.ok(detail, 'Account detail section loaded.')
- await timeout(1000)
-
- const menu = app.find('.account-menu__icon')[0]
- menu.click()
+ const sandwich = app.find('.sandwich-expando')[0]
+ sandwich.click()
- await timeout(1000)
+ await timeout()
- const lock = app.find('.account-menu__logout-button')[0]
- assert.ok(lock, 'Lock menu item found')
- lock.click()
+ const menu = app.find('.menu-droppo')[0]
+ const children = menu.children
+ const logout = children[2]
+ assert.ok(logout, 'Lock menu item found')
+ logout.click()
await timeout(1000)
@@ -91,30 +90,36 @@ async function runFirstTimeUsageTest(assert, done) {
await timeout(1000)
- const detail2 = app.find('.wallet-view')[0]
+ const detail2 = app.find('.account-detail-section')[0]
assert.ok(detail2, 'Account detail section loaded again.')
await timeout()
// open account settings dropdown
- const qrButton = app.find('.wallet-view__details-button')[0]
+ const qrButton = app.find('.fa.fa-ellipsis-h')[0]
qrButton.click()
await timeout(1000)
- const qrHeader = app.find('.editable-label__value')[0]
- const qrContainer = app.find('.qr-wrapper')[0]
+ // 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]
assert.equal(qrHeader.textContent, 'Account 1', 'Should show account label.')
assert.ok(qrContainer, 'QR Container found')
await timeout()
- const networkMenu = app.find('.network-component')[0]
+ const networkMenu = app.find('.network-indicator')[0]
networkMenu.click()
await timeout()
- const networkMenu2 = app.find('.menu-droppo')[0]
+ const networkMenu2 = app.find('.network-indicator')[0]
const children2 = networkMenu2.children
children2.length[3]
assert.ok(children2, 'All network options present')