aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-04-10 05:52:07 +0800
committerDan <danjm.com@gmail.com>2018-04-10 05:52:07 +0800
commit4e6c0574dd70ea216636eb07612c6e568428c510 (patch)
treece68677db03f7b6bb8b3bc2df5d832e5e6783e6a /test
parentd8adc527f131d2eedaacea19b400db5a627d73a0 (diff)
downloadtangerine-wallet-browser-4e6c0574dd70ea216636eb07612c6e568428c510.tar
tangerine-wallet-browser-4e6c0574dd70ea216636eb07612c6e568428c510.tar.gz
tangerine-wallet-browser-4e6c0574dd70ea216636eb07612c6e568428c510.tar.bz2
tangerine-wallet-browser-4e6c0574dd70ea216636eb07612c6e568428c510.tar.lz
tangerine-wallet-browser-4e6c0574dd70ea216636eb07612c6e568428c510.tar.xz
tangerine-wallet-browser-4e6c0574dd70ea216636eb07612c6e568428c510.tar.zst
tangerine-wallet-browser-4e6c0574dd70ea216636eb07612c6e568428c510.zip
Fix integration tests so that they check for localize currency.
Diffstat (limited to 'test')
-rw-r--r--test/integration/lib/send-new-ui.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/integration/lib/send-new-ui.js b/test/integration/lib/send-new-ui.js
index 4731117d7..09a074750 100644
--- a/test/integration/lib/send-new-ui.js
+++ b/test/integration/lib/send-new-ui.js
@@ -91,7 +91,7 @@ async function runSendFlowTest(assert, done) {
)
assert.equal(
sendGasField.find('.currency-display__converted-value')[0].textContent,
- '0.24 USD',
+ '$0.24 USD',
'send gas field should show estimated gas total converted to USD'
)
@@ -118,7 +118,7 @@ async function runSendFlowTest(assert, done) {
)
assert.equal(
(await findAsync(sendGasField, '.currency-display__converted-value'))[0].textContent,
- '3.60 USD',
+ '$3.60 USD',
'send gas field should show customized gas total converted to USD'
)
@@ -138,9 +138,9 @@ async function runSendFlowTest(assert, done) {
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')
+ 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, '2405.36 USD', 'confirm screen should show correct total')
+ assert.equal(confirmScreenTotal.textContent, '$2,405.36 USD', 'confirm screen should show correct total')
const confirmScreenBackButton = await queryAsync($, '.page-container__back-button')
confirmScreenBackButton[0].click()