mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix tests.
This commit is contained in:
parent
106ce091a9
commit
f8e13fd793
@ -116,7 +116,7 @@
|
|||||||
"send": {
|
"send": {
|
||||||
"gasLimit": "0xea60",
|
"gasLimit": "0xea60",
|
||||||
"gasPrice": "0xba43b7400",
|
"gasPrice": "0xba43b7400",
|
||||||
"gasTotal": "0xb451dc41b578",
|
"gasTotal": "0xaa87bee538000",
|
||||||
"tokenBalance": null,
|
"tokenBalance": null,
|
||||||
"from": {
|
"from": {
|
||||||
"address": "0xc5b8dbac4c1d3f152cdeb400e2313f309c410acb",
|
"address": "0xc5b8dbac4c1d3f152cdeb400e2313f309c410acb",
|
||||||
|
@ -116,7 +116,7 @@
|
|||||||
"send": {
|
"send": {
|
||||||
"gasLimit": "0xea60",
|
"gasLimit": "0xea60",
|
||||||
"gasPrice": "0xba43b7400",
|
"gasPrice": "0xba43b7400",
|
||||||
"gasTotal": "0xb451dc41b578",
|
"gasTotal": "0xaa87bee538000",
|
||||||
"tokenBalance": null,
|
"tokenBalance": null,
|
||||||
"from": {
|
"from": {
|
||||||
"address": "0xc5b8dbac4c1d3f152cdeb400e2313f309c410acb",
|
"address": "0xc5b8dbac4c1d3f152cdeb400e2313f309c410acb",
|
||||||
|
@ -93,7 +93,7 @@ async function runSendFlowTest(assert, done) {
|
|||||||
'send gas field should show estimated gas total converted to USD'
|
'send gas field should show estimated gas total converted to USD'
|
||||||
)
|
)
|
||||||
|
|
||||||
const sendGasOpenCustomizeModalButton = await queryAsync($, '.send-v2__sliders-icon-container')
|
const sendGasOpenCustomizeModalButton = await queryAsync($, '.sliders-icon-container')
|
||||||
sendGasOpenCustomizeModalButton[0].click()
|
sendGasOpenCustomizeModalButton[0].click()
|
||||||
|
|
||||||
const customizeGasModal = await queryAsync($, '.send-v2__customize-gas')
|
const customizeGasModal = await queryAsync($, '.send-v2__customize-gas')
|
||||||
@ -135,9 +135,9 @@ async function runSendFlowTest(assert, done) {
|
|||||||
assert.equal(confirmToName[0].textContent, 'Send Account 3', 'confirm screen should show correct to name')
|
assert.equal(confirmToName[0].textContent, 'Send Account 3', 'confirm screen should show correct to name')
|
||||||
|
|
||||||
const confirmScreenRows = await queryAsync($, '.confirm-screen-rows')
|
const confirmScreenRows = await queryAsync($, '.confirm-screen-rows')
|
||||||
const confirmScreenGas = confirmScreenRows.find('.confirm-screen-row-info')[2]
|
const confirmScreenGas = confirmScreenRows.find('.currency-display__converted-value')[0]
|
||||||
assert.equal(confirmScreenGas.textContent, '3.6 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')[3]
|
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, '2405.36 USD', 'confirm screen should show correct total')
|
||||||
|
|
||||||
const confirmScreenBackButton = await queryAsync($, '.confirm-screen-back-button')
|
const confirmScreenBackButton = await queryAsync($, '.confirm-screen-back-button')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user