aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Miller <danjm.com@gmail.com>2018-08-14 23:08:25 +0800
committerDan Miller <danjm.com@gmail.com>2018-08-14 23:20:26 +0800
commita59e47e7b0e862b5d490a77a4433093e299f8105 (patch)
tree54fb776ec43e8a78cb3f187f056d1144c1455f1c
parent860bf423469fce4d661d48055769fc93a54496c3 (diff)
downloadtangerine-wallet-browser-a59e47e7b0e862b5d490a77a4433093e299f8105.tar
tangerine-wallet-browser-a59e47e7b0e862b5d490a77a4433093e299f8105.tar.gz
tangerine-wallet-browser-a59e47e7b0e862b5d490a77a4433093e299f8105.tar.bz2
tangerine-wallet-browser-a59e47e7b0e862b5d490a77a4433093e299f8105.tar.lz
tangerine-wallet-browser-a59e47e7b0e862b5d490a77a4433093e299f8105.tar.xz
tangerine-wallet-browser-a59e47e7b0e862b5d490a77a4433093e299f8105.tar.zst
tangerine-wallet-browser-a59e47e7b0e862b5d490a77a4433093e299f8105.zip
Add missing awaits and/or missing wait timeouts in test/e2e/beta/metamask-beta-ui.spec.js
-rw-r--r--test/e2e/beta/metamask-beta-ui.spec.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js
index 3ad5c2d61..75e220c7f 100644
--- a/test/e2e/beta/metamask-beta-ui.spec.js
+++ b/test/e2e/beta/metamask-beta-ui.spec.js
@@ -345,8 +345,8 @@ describe('MetaMask', function () {
const passwordInputs = await driver.findElements(By.css('input'))
await delay(regularDelayMs)
- passwordInputs[0].sendKeys('correct horse battery staple')
- passwordInputs[1].sendKeys('correct horse battery staple')
+ await passwordInputs[0].sendKeys('correct horse battery staple')
+ await passwordInputs[1].sendKeys('correct horse battery staple')
await driver.findElement(By.css('.first-time-flow__button')).click()
await delay(regularDelayMs)
})
@@ -438,7 +438,7 @@ describe('MetaMask', function () {
await driver.switchTo().window(windowHandles[2])
await delay(regularDelayMs)
- assertElementNotPresent(webdriver, driver, By.xpath(`//li[contains(text(), 'Data')]`))
+ await assertElementNotPresent(webdriver, driver, By.xpath(`//li[contains(text(), 'Data')]`))
const confirmButton = await findElement(driver, By.xpath(`//button[contains(text(), 'Confirm')]`), 10000)
await confirmButton.click()
@@ -515,15 +515,15 @@ describe('MetaMask', function () {
await driver.switchTo().window(dapp)
await delay(regularDelayMs)
- let contractStatus = await driver.findElement(By.css('#contractStatus'))
- await driver.wait(until.elementTextMatches(contractStatus, /Deployed/))
+ let contractStatus = await findElement(driver, By.css('#contractStatus'))
+ await driver.wait(until.elementTextMatches(contractStatus, /Deployed/), 10000)
const depositButton = await findElement(driver, By.css('#depositButton'))
await depositButton.click()
await delay(largeDelayMs)
- contractStatus = await driver.findElement(By.css('#contractStatus'))
- await driver.wait(until.elementTextMatches(contractStatus, /Deposit\sinitiated/))
+ contractStatus = await findElement(driver, By.css('#contractStatus'))
+ await driver.wait(until.elementTextMatches(contractStatus, /Deposit\sinitiated/), 10000)
await driver.switchTo().window(extension)
await delay(largeDelayMs)
@@ -539,8 +539,8 @@ describe('MetaMask', function () {
await configureGas.click()
await delay(regularDelayMs)
- const gasModal = await driver.findElement(By.css('span .modal'))
- await driver.wait(until.elementLocated(By.css('.customize-gas__title')))
+ const gasModal = await findElement(driver, By.css('span .modal'))
+ await driver.wait(until.elementLocated(By.css('.customize-gas__title')), 10000)
const [gasPriceInput, gasLimitInput] = await findElements(driver, By.css('.customize-gas-input'))
await gasPriceInput.clear()