1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix bug in test mock signature request methods.

This commit is contained in:
Dan 2018-07-11 13:37:26 -02:30
parent 91eca558f0
commit e91d87efd9
5 changed files with 42 additions and 3 deletions

View File

@ -10,7 +10,7 @@ module.exports = {
signPersonalMessage: (msgData, cb) => { signPersonalMessage: (msgData, cb) => {
const stateUpdate = { const stateUpdate = {
unapprovedPersonalMsgs: {}, unapprovedPersonalMsgs: {},
unapprovedPersonalMsgsCount: 0, unapprovedPersonalMsgCount: 0,
} }
return cb(null, stateUpdate) return cb(null, stateUpdate)
}, },

View File

@ -130,5 +130,23 @@
"scrollToBottom": false, "scrollToBottom": false,
"forgottenPassword": null "forgottenPassword": null
}, },
"identities": {} "identities": {},
"confirmTransaction": {
"txData": {},
"tokenData": {},
"methodData": {},
"tokenProps": {
"tokenDecimals": "",
"tokenSymbol": ""
},
"fiatTransactionAmount": "",
"fiatTransactionFee": "",
"fiatTransactionTotal": "",
"ethTransactionAmount": "",
"ethTransactionFee": "",
"ethTransactionTotal": "",
"hexGasTotal": "",
"nonce": "",
"fetchingMethodData": false
}
} }

View File

@ -58,5 +58,23 @@
} }
}, },
"identities": {}, "identities": {},
"computedBalances": {} "computedBalances": {},
"confirmTransaction": {
"txData": {},
"tokenData": {},
"methodData": {},
"tokenProps": {
"tokenDecimals": "",
"tokenSymbol": ""
},
"fiatTransactionAmount": "",
"fiatTransactionFee": "",
"fiatTransactionTotal": "",
"ethTransactionAmount": "",
"ethTransactionFee": "",
"ethTransactionTotal": "",
"hexGasTotal": "",
"nonce": "",
"fetchingMethodData": false
}
} }

View File

@ -57,4 +57,6 @@ async function runConfirmSigRequestsTest (assert, done) {
confirmSigSignButton = await queryAsync($, 'button.btn-primary.btn--large') confirmSigSignButton = await queryAsync($, 'button.btn-primary.btn--large')
confirmSigSignButton[0].click() confirmSigSignButton[0].click()
await timeout(2000)
} }

View File

@ -19,6 +19,7 @@ async function runCurrencyLocalizationTest (assert, done) {
console.log('*** start runCurrencyLocalizationTest') console.log('*** start runCurrencyLocalizationTest')
const selectState = await queryAsync($, 'select') const selectState = await queryAsync($, 'select')
selectState.val('currency localization') selectState.val('currency localization')
await timeout(1000)
reactTriggerChange(selectState[0]) reactTriggerChange(selectState[0])
await timeout(1000) await timeout(1000)
const txView = await queryAsync($, '.tx-view') const txView = await queryAsync($, '.tx-view')