aboutsummaryrefslogtreecommitdiffstats
path: root/test/e2e/beta/metamask-beta-ui.spec.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-06-06 23:38:37 +0800
committerDan <danjm.com@gmail.com>2018-06-07 00:15:08 +0800
commit72649a0b59a0a1909c16f3bc993112625ff817a8 (patch)
treec3f7cae7aa8d0022ad8fbb98eec5254c8eb00b29 /test/e2e/beta/metamask-beta-ui.spec.js
parent12e75085844d645afc08b40cf574057a20704386 (diff)
downloadtangerine-wallet-browser-72649a0b59a0a1909c16f3bc993112625ff817a8.tar
tangerine-wallet-browser-72649a0b59a0a1909c16f3bc993112625ff817a8.tar.gz
tangerine-wallet-browser-72649a0b59a0a1909c16f3bc993112625ff817a8.tar.bz2
tangerine-wallet-browser-72649a0b59a0a1909c16f3bc993112625ff817a8.tar.lz
tangerine-wallet-browser-72649a0b59a0a1909c16f3bc993112625ff817a8.tar.xz
tangerine-wallet-browser-72649a0b59a0a1909c16f3bc993112625ff817a8.tar.zst
tangerine-wallet-browser-72649a0b59a0a1909c16f3bc993112625ff817a8.zip
Improve e2e beta tests by adding appropriate waits.
Diffstat (limited to 'test/e2e/beta/metamask-beta-ui.spec.js')
-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 f66f4a618..526fa389c 100644
--- a/test/e2e/beta/metamask-beta-ui.spec.js
+++ b/test/e2e/beta/metamask-beta-ui.spec.js
@@ -217,8 +217,10 @@ describe('MetaMask', function () {
})
it('clicks through the deposit modal', async () => {
+ const buyModal = await driver.findElement(By.css('span .modal'))
const closeModal = await findElement(driver, By.css('.page-container__header-close'))
await closeModal.click()
+ await driver.wait(until.stalenessOf(buyModal))
await delay(regularDelayMs)
})
})
@@ -316,7 +318,6 @@ describe('MetaMask', function () {
describe('Send ETH from inside MetaMask', () => {
it('starts to send a transaction', async function () {
-
const sendButton = await findElement(driver, By.xpath(`//button[contains(text(), 'Send')]`))
await sendButton.click()
await delay(regularDelayMs)