diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-04-06 00:53:24 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-04-06 00:53:24 +0800 |
commit | fa8500e09ad599837f6ad1b2dfc3530195a03b33 (patch) | |
tree | c30d3610f2aa398bc350a875d46c74d4bfb0cb6a /test/integration | |
parent | 254cf975a648e8caa2531aef98313fc698f6c8c3 (diff) | |
download | tangerine-wallet-browser-fa8500e09ad599837f6ad1b2dfc3530195a03b33.tar tangerine-wallet-browser-fa8500e09ad599837f6ad1b2dfc3530195a03b33.tar.gz tangerine-wallet-browser-fa8500e09ad599837f6ad1b2dfc3530195a03b33.tar.bz2 tangerine-wallet-browser-fa8500e09ad599837f6ad1b2dfc3530195a03b33.tar.lz tangerine-wallet-browser-fa8500e09ad599837f6ad1b2dfc3530195a03b33.tar.xz tangerine-wallet-browser-fa8500e09ad599837f6ad1b2dfc3530195a03b33.tar.zst tangerine-wallet-browser-fa8500e09ad599837f6ad1b2dfc3530195a03b33.zip |
commit
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/lib/confirm-sig-requests.js | 18 | ||||
-rw-r--r-- | test/integration/lib/send-new-ui.js | 2 |
2 files changed, 15 insertions, 5 deletions
diff --git a/test/integration/lib/confirm-sig-requests.js b/test/integration/lib/confirm-sig-requests.js index 1576e317c..3936ac5fa 100644 --- a/test/integration/lib/confirm-sig-requests.js +++ b/test/integration/lib/confirm-sig-requests.js @@ -21,14 +21,22 @@ async function runConfirmSigRequestsTest(assert, done) { selectState.val('confirm sig requests') reactTriggerChange(selectState[0]) - const pendingRequestItem = await queryAsync($, '.tx-list-item.tx-list-pending-item-container.tx-list-clickable') - pendingRequestItem[0].click() + // await timeout(1000000) + + const pendingRequestItem = $.find('.tx-list-item.tx-list-pending-item-container.tx-list-clickable') + + if (pendingRequestItem[0]) { + pendingRequestItem[0].click() + } let confirmSigHeadline = await queryAsync($, '.request-signature__headline') assert.equal(confirmSigHeadline[0].textContent, 'Your signature is being requested') + let confirmSigMessage = await queryAsync($, '.request-signature__notice') + assert.ok(confirmSigMessage[0].textContent.match(/^Signing\sthis\smessage/)) + let confirmSigRowValue = await queryAsync($, '.request-signature__row-value') - assert.ok(confirmSigRowValue[0].textContent.match(/^\#\sTerms\sof\sUse/)) + assert.equal(confirmSigRowValue[0].textContent, '0x879a053d4800c6354e76c7985a865d2922c82fb5b3f4577b2fe08b998954f2e0') let confirmSigSignButton = await queryAsync($, 'button.btn-primary--lg') confirmSigSignButton[0].click() @@ -36,8 +44,8 @@ async function runConfirmSigRequestsTest(assert, done) { confirmSigHeadline = await queryAsync($, '.request-signature__headline') assert.equal(confirmSigHeadline[0].textContent, 'Your signature is being requested') - let confirmSigMessage = await queryAsync($, '.request-signature__notice') - assert.ok(confirmSigMessage[0].textContent.match(/^Signing\sthis\smessage/)) + confirmSigRowValue = await queryAsync($, '.request-signature__row-value') + assert.ok(confirmSigRowValue[0].textContent.match(/^\#\sTerms\sof\sUse/)) confirmSigSignButton = await queryAsync($, 'button.btn-primary--lg') confirmSigSignButton[0].click() diff --git a/test/integration/lib/send-new-ui.js b/test/integration/lib/send-new-ui.js index 163f3658c..fc3d7a5d1 100644 --- a/test/integration/lib/send-new-ui.js +++ b/test/integration/lib/send-new-ui.js @@ -173,6 +173,8 @@ async function runSendFlowTest(assert, done) { console.log(`+++++++++++++++++++++++++++++++= confirmScreenConfirmButton[0]`, confirmScreenConfirmButton[0]); confirmScreenConfirmButton[0].click() + await timeout(10000000) + const txView = await queryAsync($, '.tx-view') console.log(`++++++++++++++++++++++++++++++++ txView[0]`, txView[0]); |