diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-05-15 00:27:19 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-05-15 00:27:19 +0800 |
commit | 6afd169e603fead364aa3608c90e6e8a20fcb0dc (patch) | |
tree | 3390de2e2918f0f09a5b3ac693c6a8adc16897e9 | |
parent | b5a445139d378a21397cfa84919f6f034b8a8974 (diff) | |
download | tangerine-wallet-browser-6afd169e603fead364aa3608c90e6e8a20fcb0dc.tar tangerine-wallet-browser-6afd169e603fead364aa3608c90e6e8a20fcb0dc.tar.gz tangerine-wallet-browser-6afd169e603fead364aa3608c90e6e8a20fcb0dc.tar.bz2 tangerine-wallet-browser-6afd169e603fead364aa3608c90e6e8a20fcb0dc.tar.lz tangerine-wallet-browser-6afd169e603fead364aa3608c90e6e8a20fcb0dc.tar.xz tangerine-wallet-browser-6afd169e603fead364aa3608c90e6e8a20fcb0dc.tar.zst tangerine-wallet-browser-6afd169e603fead364aa3608c90e6e8a20fcb0dc.zip |
e2e: Use newest window as MM tx confirm popup
-rw-r--r-- | test/e2e/chrome/metamask.spec.js | 2 | ||||
-rw-r--r-- | test/e2e/firefox/metamask.spec.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/e2e/chrome/metamask.spec.js b/test/e2e/chrome/metamask.spec.js index d72ebe1a9..87ccf8a83 100644 --- a/test/e2e/chrome/metamask.spec.js +++ b/test/e2e/chrome/metamask.spec.js @@ -237,7 +237,7 @@ describe('Metamask popup page', function () { it('confirms transaction in MetaMask popup', async function () { const windowHandles = await driver.getAllWindowHandles() - await driver.switchTo().window(windowHandles[2]) + await driver.switchTo().window(windowHandles[windowHandles.length - 1]) const metamaskSubmit = await driver.findElement(By.css('#pending-tx-form > div.flex-row.flex-space-around.conf-buttons > input')) await metamaskSubmit.click() await delay(1000) diff --git a/test/e2e/firefox/metamask.spec.js b/test/e2e/firefox/metamask.spec.js index 20b8a5092..26e5dfb40 100644 --- a/test/e2e/firefox/metamask.spec.js +++ b/test/e2e/firefox/metamask.spec.js @@ -238,7 +238,7 @@ describe('', function () { // There is an issue with blank confirmation window, but the button is still there and the driver is able to clicked (?.?) it('confirms transaction in MetaMask popup', async function () { const windowHandles = await driver.getAllWindowHandles() - await driver.switchTo().window(windowHandles[2]) + await driver.switchTo().window(windowHandles[windowHandles.length - 1]) const metamaskSubmit = await driver.findElement(By.css('#pending-tx-form > div.flex-row.flex-space-around.conf-buttons > input')) await metamaskSubmit.click() await delay(1000) |