aboutsummaryrefslogtreecommitdiffstats
path: root/test/e2e/firefox/metamask.spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/e2e/firefox/metamask.spec.js')
-rw-r--r--test/e2e/firefox/metamask.spec.js2
1 files changed, 1 insertions, 1 deletions
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)