diff options
author | Thomas Huang <tmashuang@users.noreply.github.com> | 2018-03-27 05:55:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-27 05:55:30 +0800 |
commit | b0fae2ca392f38952cd01f26bfc4886b601baf17 (patch) | |
tree | 6fd66408298259d3c47d1730d3de60ddc842bb43 /test | |
parent | ec3cca03fe68e9ddd7c0e326b916eb8e91087db4 (diff) | |
parent | d4047ccf42b3590e98ee638ec71e353351e848ec (diff) | |
download | tangerine-wallet-browser-b0fae2ca392f38952cd01f26bfc4886b601baf17.tar tangerine-wallet-browser-b0fae2ca392f38952cd01f26bfc4886b601baf17.tar.gz tangerine-wallet-browser-b0fae2ca392f38952cd01f26bfc4886b601baf17.tar.bz2 tangerine-wallet-browser-b0fae2ca392f38952cd01f26bfc4886b601baf17.tar.lz tangerine-wallet-browser-b0fae2ca392f38952cd01f26bfc4886b601baf17.tar.xz tangerine-wallet-browser-b0fae2ca392f38952cd01f26bfc4886b601baf17.tar.zst tangerine-wallet-browser-b0fae2ca392f38952cd01f26bfc4886b601baf17.zip |
Merge pull request #3710 from danjm/i3326-addtokenscreendesignupdate
Updates Add token screen to latest design.
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/lib/add-token.js | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/test/integration/lib/add-token.js b/test/integration/lib/add-token.js index 228192e7b..cc04beb21 100644 --- a/test/integration/lib/add-token.js +++ b/test/integration/lib/add-token.js @@ -34,8 +34,8 @@ async function runAddTokenFlowTest (assert, done) { let addTokenWrapper = await queryAsync($, '.add-token__wrapper') assert.ok(addTokenWrapper[0], 'add token wrapper renders') - let addTokenTitle = await queryAsync($, '.add-token__title') - assert.equal(addTokenTitle[0].textContent, 'Add Token', 'add token title is correct') + let addTokenTitle = await queryAsync($, '.add-token__header__title') + assert.equal(addTokenTitle[0].textContent, 'Add Tokens', 'add token title is correct') // Cancel Add Token const cancelAddTokenButton = await queryAsync($, 'button.btn-secondary--lg.add-token__cancel-button') @@ -51,9 +51,9 @@ async function runAddTokenFlowTest (assert, done) { // Verify Add Token Screen addTokenWrapper = await queryAsync($, '.add-token__wrapper') - addTokenTitle = await queryAsync($, '.add-token__title') + addTokenTitle = await queryAsync($, '.add-token__header__title') assert.ok(addTokenWrapper[0], 'add token wrapper renders') - assert.equal(addTokenTitle[0].textContent, 'Add Token', 'add token title is correct') + assert.equal(addTokenTitle[0].textContent, 'Add Tokens', 'add token title is correct') // Search for token const searchInput = await queryAsync($, 'input.add-token__input') @@ -91,9 +91,11 @@ async function runAddTokenFlowTest (assert, done) { assert.ok(addTokenButton[0], 'add token button present') addTokenButton[0].click() - const addCustom = await queryAsync($, '.add-token__add-custom') - assert.ok(addCustom[0], 'add custom token button present') - addCustom[0].click() + const addTokenTabs = await queryAsync($, '.add-token__header__tabs__tab') + assert.equal(addTokenTabs.length, 2, 'expected number of tabs') + assert.equal(addTokenTabs[1].textContent, 'Custom Token', 'Custom Token tab present') + assert.ok(addTokenTabs[1], 'add custom token tab present') + addTokenTabs[1].click() // Input token contract address const customInput = await queryAsync($, 'input.add-token__add-custom-input') @@ -108,6 +110,7 @@ async function runAddTokenFlowTest (assert, done) { // Verify symbol length error since contract address won't return symbol const errorMessage = await queryAsync($, '.add-token__add-custom-error-message') assert.ok(errorMessage[0], 'error rendered') + $('button.btn-secondary--lg')[0].click() // // Confirm Add token |