diff options
author | Dan Miller <danjm.com@gmail.com> | 2019-01-23 10:09:34 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-01-25 07:01:30 +0800 |
commit | 76f9bdec631ac490e409c8bf9cdb851570e91398 (patch) | |
tree | 522e49ffea3775686ed34afddf03a4688b5540b2 /test | |
parent | 7d18a47c22bc43053233c09e4d113a1bc17b1b71 (diff) | |
download | tangerine-wallet-browser-76f9bdec631ac490e409c8bf9cdb851570e91398.tar tangerine-wallet-browser-76f9bdec631ac490e409c8bf9cdb851570e91398.tar.gz tangerine-wallet-browser-76f9bdec631ac490e409c8bf9cdb851570e91398.tar.bz2 tangerine-wallet-browser-76f9bdec631ac490e409c8bf9cdb851570e91398.tar.lz tangerine-wallet-browser-76f9bdec631ac490e409c8bf9cdb851570e91398.tar.xz tangerine-wallet-browser-76f9bdec631ac490e409c8bf9cdb851570e91398.tar.zst tangerine-wallet-browser-76f9bdec631ac490e409c8bf9cdb851570e91398.zip |
Add integration test for ordering of shapeshift txs in history list.
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/lib/tx-list-items.js | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/test/integration/lib/tx-list-items.js b/test/integration/lib/tx-list-items.js index ac17a2a67..bf6f87937 100644 --- a/test/integration/lib/tx-list-items.js +++ b/test/integration/lib/tx-list-items.js @@ -30,7 +30,7 @@ async function runTxListItemsTest (assert, done) { metamaskLogo[0].click() const txListItems = await queryAsync($, '.transaction-list-item') - assert.equal(txListItems.length, 6, 'all tx list items are rendered') + assert.equal(txListItems.length, 8, 'all tx list items are rendered') const unapprovedMsg = txListItems[0] const unapprovedMsgDescription = await findAsync($(unapprovedMsg), '.transaction-list-item__action') @@ -40,11 +40,19 @@ async function runTxListItemsTest (assert, done) { const approvedTxRenderedStatus = await findAsync($(approvedTx), '.transaction-list-item__status') assert.equal(approvedTxRenderedStatus[0].textContent, 'pending', 'approvedTx has correct label') - const shapeShiftTx = txListItems[4] - const shapeShiftTxStatus = await findAsync($(shapeShiftTx), '.flex-column div:eq(1)') - assert.equal(shapeShiftTxStatus[0].textContent, 'No deposits received', 'shapeShiftTx has correct status') + const confirmedTokenTx1 = txListItems[4] + const confirmedTokenTx1Address = await findAsync($(confirmedTokenTx1), '.transaction-list-item__status') + assert.equal(confirmedTokenTx1Address[0].textContent, 'Confirmed', 'confirmedTokenTx has correct status') - const confirmedTokenTx = txListItems[5] - const confirmedTokenTxAddress = await findAsync($(confirmedTokenTx), '.transaction-list-item__status') - assert.equal(confirmedTokenTxAddress[0].textContent, 'Confirmed', 'confirmedTokenTx has correct address') + const shapeShiftTx1 = txListItems[5] + const shapeShiftTx1Status = await findAsync($(shapeShiftTx1), '.flex-column div:eq(1)') + assert.equal(shapeShiftTx1Status[0].textContent, 'No deposits received', 'shapeShiftTx has correct status') + + const confirmedTokenTx2 = txListItems[6] + const confirmedTokenTx2Address = await findAsync($(confirmedTokenTx2), '.transaction-list-item__status') + assert.equal(confirmedTokenTx2Address[0].textContent, 'Confirmed', 'confirmedTokenTx has correct status') + + const shapeShiftTx2 = txListItems[7] + const shapeShiftTx2Address = await findAsync($(shapeShiftTx2), '.flex-column div:eq(1)') + assert.equal(shapeShiftTx2Address[0].textContent, 'No deposits received', 'shapeShiftTx has correct status') } |