aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-07-11 08:09:22 +0800
committerDan <danjm.com@gmail.com>2018-07-11 19:05:15 +0800
commita7a66171c235a2c4f318d329b0d57ff5b87c83b8 (patch)
tree0e9f6993d4e0c495184a72403bacaa397aa687c0 /test
parentf81676fda141c4ea37b76c7adb545d4a7c0588e2 (diff)
downloadtangerine-wallet-browser-a7a66171c235a2c4f318d329b0d57ff5b87c83b8.tar
tangerine-wallet-browser-a7a66171c235a2c4f318d329b0d57ff5b87c83b8.tar.gz
tangerine-wallet-browser-a7a66171c235a2c4f318d329b0d57ff5b87c83b8.tar.bz2
tangerine-wallet-browser-a7a66171c235a2c4f318d329b0d57ff5b87c83b8.tar.lz
tangerine-wallet-browser-a7a66171c235a2c4f318d329b0d57ff5b87c83b8.tar.xz
tangerine-wallet-browser-a7a66171c235a2c4f318d329b0d57ff5b87c83b8.tar.zst
tangerine-wallet-browser-a7a66171c235a2c4f318d329b0d57ff5b87c83b8.zip
Fix signature request tests for compatability with confirm refactor.
Diffstat (limited to 'test')
-rw-r--r--test/integration/lib/confirm-sig-requests.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/integration/lib/confirm-sig-requests.js b/test/integration/lib/confirm-sig-requests.js
index 5613c0dcb..017f059b8 100644
--- a/test/integration/lib/confirm-sig-requests.js
+++ b/test/integration/lib/confirm-sig-requests.js
@@ -1,5 +1,6 @@
const reactTriggerChange = require('react-trigger-change')
const {
+ timeout,
queryAsync,
} = require('../../lib/util')
@@ -18,14 +19,14 @@ async function runConfirmSigRequestsTest (assert, done) {
selectState.val('confirm sig requests')
reactTriggerChange(selectState[0])
- // await timeout(1000000)
-
const pendingRequestItem = $.find('.tx-list-item.tx-list-pending-item-container.tx-list-clickable')
if (pendingRequestItem[0]) {
pendingRequestItem[0].click()
}
+ await timeout(1000)
+
let confirmSigHeadline = await queryAsync($, '.request-signature__headline')
assert.equal(confirmSigHeadline[0].textContent, 'Your signature is being requested')
@@ -37,7 +38,7 @@ async function runConfirmSigRequestsTest (assert, done) {
let confirmSigSignButton = await queryAsync($, 'button.btn-primary.btn--large')
confirmSigSignButton[0].click()
-
+ await timeout(1000)
confirmSigHeadline = await queryAsync($, '.request-signature__headline')
assert.equal(confirmSigHeadline[0].textContent, 'Your signature is being requested')
@@ -46,7 +47,7 @@ async function runConfirmSigRequestsTest (assert, done) {
confirmSigSignButton = await queryAsync($, 'button.btn-primary.btn--large')
confirmSigSignButton[0].click()
-
+ await timeout(1000)
confirmSigHeadline = await queryAsync($, '.request-signature__headline')
assert.equal(confirmSigHeadline[0].textContent, 'Your signature is being requested')
@@ -56,7 +57,4 @@ async function runConfirmSigRequestsTest (assert, done) {
confirmSigSignButton = await queryAsync($, 'button.btn-primary.btn--large')
confirmSigSignButton[0].click()
-
- const txView = await queryAsync($, '.tx-view')
- assert.ok(txView[0], 'Should return to the account details screen after confirming')
}