diff options
author | Dan Miller <danjm.com@gmail.com> | 2018-08-15 04:00:43 +0800 |
---|---|---|
committer | Dan Miller <danjm.com@gmail.com> | 2018-08-15 04:00:43 +0800 |
commit | ff7242349172bc3bedabdb4da3f1fae97c8edadf (patch) | |
tree | 65cfaa5bf4192806ea84d30c0430118204ac3b2d /test | |
parent | c4fe6aa9cfeddab231587359ef55ad80aa13efa0 (diff) | |
download | tangerine-wallet-browser-ff7242349172bc3bedabdb4da3f1fae97c8edadf.tar.gz tangerine-wallet-browser-ff7242349172bc3bedabdb4da3f1fae97c8edadf.tar.zst tangerine-wallet-browser-ff7242349172bc3bedabdb4da3f1fae97c8edadf.zip |
Add explicit waits for submitted status for some txs initiated from test dapp.
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/beta/metamask-beta-ui.spec.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js index 20040505a..43300bda6 100644 --- a/test/e2e/beta/metamask-beta-ui.spec.js +++ b/test/e2e/beta/metamask-beta-ui.spec.js @@ -460,6 +460,11 @@ describe('MetaMask', function () { const transactions = await findElements(driver, By.css('.tx-list-item')) assert.equal(transactions.length, 2) + await findElement(driver, By.xpath(`//span[contains(text(), 'Submitted')]`)) + + const txStatuses = await findElements(driver, By.css('.tx-list-status')) + await driver.wait(until.elementTextMatches(txStatuses[0], /Confirmed/)) + const txValues = await findElement(driver, By.css('.tx-list-value')) await driver.wait(until.elementTextMatches(txValues, /3\sETH/), 10000) }) @@ -510,6 +515,8 @@ describe('MetaMask', function () { await confirmButton.click() await delay(regularDelayMs) + await findElement(driver, By.xpath(`//span[contains(text(), 'Submitted')]`)) + const txStatuses = await findElements(driver, By.css('.tx-list-status')) await driver.wait(until.elementTextMatches(txStatuses[0], /Confirmed/)) |