aboutsummaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-09-01 07:03:02 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-09-13 10:48:52 +0800
commitc18c0e1c30bd7b2800e66288e21ee724e7314b30 (patch)
treed77e78da9552f76c28f335e947ebe3d535847a9d /test/integration
parentc04d9095dd4e5ff38508059d0c1e55eabb7a39e4 (diff)
downloadtangerine-wallet-browser-c18c0e1c30bd7b2800e66288e21ee724e7314b30.tar
tangerine-wallet-browser-c18c0e1c30bd7b2800e66288e21ee724e7314b30.tar.gz
tangerine-wallet-browser-c18c0e1c30bd7b2800e66288e21ee724e7314b30.tar.bz2
tangerine-wallet-browser-c18c0e1c30bd7b2800e66288e21ee724e7314b30.tar.lz
tangerine-wallet-browser-c18c0e1c30bd7b2800e66288e21ee724e7314b30.tar.xz
tangerine-wallet-browser-c18c0e1c30bd7b2800e66288e21ee724e7314b30.tar.zst
tangerine-wallet-browser-c18c0e1c30bd7b2800e66288e21ee724e7314b30.zip
Fix tests. Add className to Identicon ethLogos.
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/lib/confirm-sig-requests.js2
-rw-r--r--test/integration/lib/tx-list-items.js8
2 files changed, 6 insertions, 4 deletions
diff --git a/test/integration/lib/confirm-sig-requests.js b/test/integration/lib/confirm-sig-requests.js
index 3539e97be..9c2ad7cf4 100644
--- a/test/integration/lib/confirm-sig-requests.js
+++ b/test/integration/lib/confirm-sig-requests.js
@@ -19,7 +19,7 @@ async function runConfirmSigRequestsTest (assert, done) {
selectState.val('confirm sig requests')
reactTriggerChange(selectState[0])
- const pendingRequestItem = $.find('.transaction-list-item')
+ const pendingRequestItem = $.find('.transaction-list-item .transaction-list-item__grid')
if (pendingRequestItem[0]) {
pendingRequestItem[0].click()
diff --git a/test/integration/lib/tx-list-items.js b/test/integration/lib/tx-list-items.js
index 7572d1629..8f291c7b4 100644
--- a/test/integration/lib/tx-list-items.js
+++ b/test/integration/lib/tx-list-items.js
@@ -32,9 +32,11 @@ async function runTxListItemsTest (assert, done) {
const txListItems = await queryAsync($, '.transaction-list-item')
assert.equal(txListItems.length, 8, 'all tx list items are rendered')
- const retryTx = txListItems[1]
- const retryTxLink = await findAsync($(retryTx), '.transaction-list-item__retry')
- assert.equal(retryTxLink[0].textContent, 'Taking too long? Increase the gas price on your transaction', 'retryTx has expected link')
+ const retryTxGrid = await findAsync($(txListItems[1]), '.transaction-list-item__grid')
+ retryTxGrid[0].click()
+ const retryTxDetails = await findAsync($(txListItems[1]), '.transaction-list-item-details')
+ const headerButtons = await findAsync($(retryTxDetails[0]), '.transaction-list-item-details__header-button')
+ assert.equal(headerButtons[0].textContent, 'speed up')
const approvedTx = txListItems[2]
const approvedTxRenderedStatus = await findAsync($(approvedTx), '.transaction-list-item__status')