aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-06-27 03:10:41 +0800
committerDan <danjm.com@gmail.com>2018-06-27 21:38:17 +0800
commit12266b064eff7aa42978a4414c18237a2c28dd45 (patch)
treef13abd9d8592b04224c374681f9a5d07776ea7c6 /test
parenta25f5483d84c160586029d1fda7e06374ab923bc (diff)
downloadtangerine-wallet-browser-12266b064eff7aa42978a4414c18237a2c28dd45.tar
tangerine-wallet-browser-12266b064eff7aa42978a4414c18237a2c28dd45.tar.gz
tangerine-wallet-browser-12266b064eff7aa42978a4414c18237a2c28dd45.tar.bz2
tangerine-wallet-browser-12266b064eff7aa42978a4414c18237a2c28dd45.tar.lz
tangerine-wallet-browser-12266b064eff7aa42978a4414c18237a2c28dd45.tar.xz
tangerine-wallet-browser-12266b064eff7aa42978a4414c18237a2c28dd45.tar.zst
tangerine-wallet-browser-12266b064eff7aa42978a4414c18237a2c28dd45.zip
Close popup window for e2e beta token factory send test.
Diffstat (limited to 'test')
-rw-r--r--test/e2e/beta/metamask-beta-ui.spec.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js
index 36295adac..9233b9c60 100644
--- a/test/e2e/beta/metamask-beta-ui.spec.js
+++ b/test/e2e/beta/metamask-beta-ui.spec.js
@@ -720,8 +720,10 @@ describe('MetaMask', function () {
await transferAmountButton.click()
await delay(regularDelayMs)
+ const [,, popup] = await driver.getAllWindowHandles()
+ await driver.switchTo().window(popup)
+ await driver.close()
await driver.switchTo().window(extension)
- await loadExtension(driver, extensionId)
await delay(regularDelayMs)
// Set the gas limit
@@ -748,7 +750,6 @@ describe('MetaMask', function () {
if (process.env.SELENIUM_BROWSER === 'firefox') {
await gasLimitInput.sendKeys(Key.BACK_SPACE)
}
- await delay(tinyDelayMs)
const save = await findElement(driver, By.css('.send-v2__customize-gas__save'))
await save.click()