diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-05-11 07:51:26 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-05-12 03:49:17 +0800 |
commit | 2381c0e0f461304265279155176fa655e2eb97b4 (patch) | |
tree | c0053ef5a62ee246bf02bc2cf7cfe6dae50ed3c9 /test/integration/lib | |
parent | 76ab5c04fae20dc0fd2798ad8a336a0364032aff (diff) | |
download | tangerine-wallet-browser-2381c0e0f461304265279155176fa655e2eb97b4.tar tangerine-wallet-browser-2381c0e0f461304265279155176fa655e2eb97b4.tar.gz tangerine-wallet-browser-2381c0e0f461304265279155176fa655e2eb97b4.tar.bz2 tangerine-wallet-browser-2381c0e0f461304265279155176fa655e2eb97b4.tar.lz tangerine-wallet-browser-2381c0e0f461304265279155176fa655e2eb97b4.tar.xz tangerine-wallet-browser-2381c0e0f461304265279155176fa655e2eb97b4.tar.zst tangerine-wallet-browser-2381c0e0f461304265279155176fa655e2eb97b4.zip |
Add new unlock screen design
Diffstat (limited to 'test/integration/lib')
-rw-r--r-- | test/integration/lib/mascara-first-time.js | 19 | ||||
-rw-r--r-- | test/integration/lib/tx-list-items.js | 4 |
2 files changed, 18 insertions, 5 deletions
diff --git a/test/integration/lib/mascara-first-time.js b/test/integration/lib/mascara-first-time.js index 5e07ab0b4..d86703277 100644 --- a/test/integration/lib/mascara-first-time.js +++ b/test/integration/lib/mascara-first-time.js @@ -71,10 +71,23 @@ async function runFirstTimeUsageTest (assert, done) { assert.ok(lock, 'Lock menu item found') lock.click() - const pwBox2 = (await findAsync(app, '#password-box'))[0] - pwBox2.value = PASSWORD + await timeout(1000) - const createButton2 = (await findAsync(app, 'button.primary'))[0] + const pwBox2 = (await findAsync(app, '#password'))[0] + pwBox2.focus() + await timeout(1000) + + // Used to set values on TextField input component + const nativeInputValueSetter = Object.getOwnPropertyDescriptor( + window.HTMLInputElement.prototype, 'value' + ).set + + nativeInputValueSetter.call(pwBox2, PASSWORD) + + var ev2 = new Event('input', { bubbles: true}) + pwBox2.dispatchEvent(ev2) + + const createButton2 = (await findAsync(app, 'button[type="submit"]'))[0] createButton2.click() const detail2 = (await findAsync(app, '.wallet-view'))[0] diff --git a/test/integration/lib/tx-list-items.js b/test/integration/lib/tx-list-items.js index 0c0c5a77f..4856b3852 100644 --- a/test/integration/lib/tx-list-items.js +++ b/test/integration/lib/tx-list-items.js @@ -21,7 +21,7 @@ async function runTxListItemsTest(assert, done) { selectState.val('tx list items') reactTriggerChange(selectState[0]) - const metamaskLogo = await queryAsync($, '.left-menu-wrapper') + const metamaskLogo = await queryAsync($, '.app-header__logo-container') assert.ok(metamaskLogo[0], 'metamask logo present') metamaskLogo[0].click() @@ -46,7 +46,7 @@ async function runTxListItemsTest(assert, done) { const failedTx = txListItems[4] const failedTxRenderedStatus = await findAsync($(failedTx), '.tx-list-status') assert.equal(failedTxRenderedStatus[0].textContent, 'Failed', 'failedTx has correct label') - + const shapeShiftTx = txListItems[5] const shapeShiftTxStatus = await findAsync($(shapeShiftTx), '.flex-column div:eq(1)') assert.equal(shapeShiftTxStatus[0].textContent, 'No deposits received', 'shapeShiftTx has correct status') |