aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-07-11 18:55:52 +0800
committerDan <danjm.com@gmail.com>2018-07-11 19:05:15 +0800
commit91eca558f0f82e096251bebdc34136c864e224fe (patch)
treea2c931ff849ce09a167ed9b3ff22457795281643 /test
parenta7a66171c235a2c4f318d329b0d57ff5b87c83b8 (diff)
downloadtangerine-wallet-browser-91eca558f0f82e096251bebdc34136c864e224fe.tar
tangerine-wallet-browser-91eca558f0f82e096251bebdc34136c864e224fe.tar.gz
tangerine-wallet-browser-91eca558f0f82e096251bebdc34136c864e224fe.tar.bz2
tangerine-wallet-browser-91eca558f0f82e096251bebdc34136c864e224fe.tar.lz
tangerine-wallet-browser-91eca558f0f82e096251bebdc34136c864e224fe.tar.xz
tangerine-wallet-browser-91eca558f0f82e096251bebdc34136c864e224fe.tar.zst
tangerine-wallet-browser-91eca558f0f82e096251bebdc34136c864e224fe.zip
Fix send integration tests for compatability with confirm refactor.
Diffstat (limited to 'test')
-rw-r--r--test/integration/lib/send-new-ui.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/integration/lib/send-new-ui.js b/test/integration/lib/send-new-ui.js
index d5e80151c..406863ca6 100644
--- a/test/integration/lib/send-new-ui.js
+++ b/test/integration/lib/send-new-ui.js
@@ -125,18 +125,18 @@ async function runSendFlowTest (assert, done) {
reactTriggerChange(selectState[0])
const confirmFromName = (await queryAsync($, '.sender-to-recipient__sender-name')).first()
- assert.equal(confirmFromName[0].textContent, 'Send Account 2', 'confirm screen should show correct from name')
+ assert.equal(confirmFromName[0].textContent, 'Send Account 4', 'confirm screen should show correct from name')
const confirmToName = (await queryAsync($, '.sender-to-recipient__recipient-name')).last()
assert.equal(confirmToName[0].textContent, 'Send Account 3', 'confirm screen should show correct to name')
- const confirmScreenRows = await queryAsync($, '.confirm-screen-rows')
- const confirmScreenGas = confirmScreenRows.find('.currency-display__converted-value')[0]
- assert.equal(confirmScreenGas.textContent, '$3.60 USD', 'confirm screen should show correct gas')
- const confirmScreenTotal = confirmScreenRows.find('.confirm-screen-row-info')[2]
- assert.equal(confirmScreenTotal.textContent, '$2,405.36 USD', 'confirm screen should show correct total')
+ const confirmScreenRowFiats = await queryAsync($, '.confirm-detail-row__fiat')
+ const confirmScreenGas = confirmScreenRowFiats[0]
+ assert.equal(confirmScreenGas.textContent, '$3.60', 'confirm screen should show correct gas')
+ const confirmScreenTotal = confirmScreenRowFiats[1]
+ assert.equal(confirmScreenTotal.textContent, '$2,405.36', 'confirm screen should show correct total')
- const confirmScreenBackButton = await queryAsync($, '.page-container__back-button')
+ const confirmScreenBackButton = await queryAsync($, '.confirm-page-container-header__back-button')
confirmScreenBackButton[0].click()
const sendFromFieldItemInEdit = await queryAsync($, '.account-list-item')