1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Improve wait for buy modal render after first time flow in beta e2e tests.

This commit is contained in:
Dan 2018-06-19 15:00:32 -02:30
parent a242668872
commit 7d5531d3e8

View File

@ -234,7 +234,8 @@ describe('MetaMask', function () {
}) })
it('clicks through the deposit modal', async () => { 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')) const closeModal = await findElement(driver, By.css('.page-container__header-close'))
await closeModal.click() await closeModal.click()
await driver.wait(until.stalenessOf(buyModal)) await driver.wait(until.stalenessOf(buyModal))