aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-06-20 01:30:32 +0800
committerDan <danjm.com@gmail.com>2018-06-27 21:31:26 +0800
commit7d5531d3e857780cf944437a309348421e5e78a3 (patch)
tree0e18e9d72e313e93620ff0d39cae04de52c7fe12
parenta2426688728e10ba660dea7ce1833794d7e9c90c (diff)
downloadtangerine-wallet-browser-7d5531d3e857780cf944437a309348421e5e78a3.tar
tangerine-wallet-browser-7d5531d3e857780cf944437a309348421e5e78a3.tar.gz
tangerine-wallet-browser-7d5531d3e857780cf944437a309348421e5e78a3.tar.bz2
tangerine-wallet-browser-7d5531d3e857780cf944437a309348421e5e78a3.tar.lz
tangerine-wallet-browser-7d5531d3e857780cf944437a309348421e5e78a3.tar.xz
tangerine-wallet-browser-7d5531d3e857780cf944437a309348421e5e78a3.tar.zst
tangerine-wallet-browser-7d5531d3e857780cf944437a309348421e5e78a3.zip
Improve wait for buy modal render after first time flow in beta e2e tests.
-rw-r--r--test/e2e/beta/metamask-beta-ui.spec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js
index a86881877..382aa4060 100644
--- a/test/e2e/beta/metamask-beta-ui.spec.js
+++ b/test/e2e/beta/metamask-beta-ui.spec.js
@@ -234,7 +234,8 @@ describe('MetaMask', function () {
})
it('clicks through the deposit modal', async () => {
- const buyModal = await findElement(driver, By.css('span .modal'))
+ const byBuyModal = By.css('span .modal')
+ const buyModal = await driver.wait(until.elementLocated(byBuyModal))
const closeModal = await findElement(driver, By.css('.page-container__header-close'))
await closeModal.click()
await driver.wait(until.stalenessOf(buyModal))