diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-08-07 13:39:54 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-08-24 07:45:27 +0800 |
commit | 9adf0c4b60c863a820af7b20ff66a8b29f7bdbe7 (patch) | |
tree | 37166e258a95f82f8ff592c30cd9cc07ca5b44a7 /test/integration/lib/tx-list-items.js | |
parent | c9ec5ed38d0e2475778ca6eb18d29b3389f67190 (diff) | |
download | tangerine-wallet-browser-9adf0c4b60c863a820af7b20ff66a8b29f7bdbe7.tar tangerine-wallet-browser-9adf0c4b60c863a820af7b20ff66a8b29f7bdbe7.tar.gz tangerine-wallet-browser-9adf0c4b60c863a820af7b20ff66a8b29f7bdbe7.tar.bz2 tangerine-wallet-browser-9adf0c4b60c863a820af7b20ff66a8b29f7bdbe7.tar.lz tangerine-wallet-browser-9adf0c4b60c863a820af7b20ff66a8b29f7bdbe7.tar.xz tangerine-wallet-browser-9adf0c4b60c863a820af7b20ff66a8b29f7bdbe7.tar.zst tangerine-wallet-browser-9adf0c4b60c863a820af7b20ff66a8b29f7bdbe7.zip |
Fix integration tests
Diffstat (limited to 'test/integration/lib/tx-list-items.js')
-rw-r--r-- | test/integration/lib/tx-list-items.js | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/test/integration/lib/tx-list-items.js b/test/integration/lib/tx-list-items.js index 9075efe03..ca0dd76ab 100644 --- a/test/integration/lib/tx-list-items.js +++ b/test/integration/lib/tx-list-items.js @@ -29,37 +29,34 @@ async function runTxListItemsTest (assert, done) { assert.ok(metamaskLogo[0], 'metamask logo present') metamaskLogo[0].click() - const txListItems = await queryAsync($, '.tx-list-item') + const txListItems = await queryAsync($, '.transaction-list-item') assert.equal(txListItems.length, 8, 'all tx list items are rendered') - const unapprovedTx = txListItems[0] - assert.equal($(unapprovedTx).hasClass('tx-list-pending-item-container'), true, 'unapprovedTx has the correct class') - const retryTx = txListItems[1] - const retryTxLink = await findAsync($(retryTx), '.tx-list-item-retry-container span') + 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 approvedTx = txListItems[2] - const approvedTxRenderedStatus = await findAsync($(approvedTx), '.tx-list-status') - assert.equal(approvedTxRenderedStatus[0].textContent, 'Approved', 'approvedTx has correct label') + const approvedTxRenderedStatus = await findAsync($(approvedTx), '.transaction-list-item__status') + assert.equal(approvedTxRenderedStatus[0].textContent, 'pending', 'approvedTx has correct label') const unapprovedMsg = txListItems[3] - const unapprovedMsgDescription = await findAsync($(unapprovedMsg), '.tx-list-account') + const unapprovedMsgDescription = await findAsync($(unapprovedMsg), '.transaction-list-item__action') assert.equal(unapprovedMsgDescription[0].textContent, 'Signature Request', 'unapprovedMsg has correct description') const failedTx = txListItems[4] - const failedTxRenderedStatus = await findAsync($(failedTx), '.tx-list-status') - assert.equal(failedTxRenderedStatus[0].textContent, 'Failed', 'failedTx has correct label') + const failedTxRenderedStatus = await findAsync($(failedTx), '.transaction-list-item__status') + assert.equal(failedTxRenderedStatus[0].textContent, 'failed', 'failedTx has correct label') const shapeShiftTx = txListItems[5] const shapeShiftTxStatus = await findAsync($(shapeShiftTx), '.flex-column div:eq(1)') assert.equal(shapeShiftTxStatus[0].textContent, 'No deposits received', 'shapeShiftTx has correct status') const confirmedTokenTx = txListItems[6] - const confirmedTokenTxAddress = await findAsync($(confirmedTokenTx), '.tx-list-account') - assert.equal(confirmedTokenTxAddress[0].textContent, '0xE7884118...81a9', 'confirmedTokenTx has correct address') + const confirmedTokenTxAddress = await findAsync($(confirmedTokenTx), '.transaction-list-item__status') + assert.equal(confirmedTokenTxAddress[0].textContent, 'confirmed', 'confirmedTokenTx has correct address') const rejectedTx = txListItems[7] - const rejectedTxRenderedStatus = await findAsync($(rejectedTx), '.tx-list-status') - assert.equal(rejectedTxRenderedStatus[0].textContent, 'Rejected', 'rejectedTx has correct label') + const rejectedTxRenderedStatus = await findAsync($(rejectedTx), '.transaction-list-item__status') + assert.equal(rejectedTxRenderedStatus[0].textContent, 'rejected', 'rejectedTx has correct label') } |