From 66120c627f2aeebf369efdb47963eaa9c3569752 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 8 Aug 2018 18:04:48 -0700 Subject: [PATCH] confirms a deplay contract tx in the popup --- test/e2e/beta/metamask-beta-ui.spec.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/e2e/beta/metamask-beta-ui.spec.js b/test/e2e/beta/metamask-beta-ui.spec.js index ef83b69c6..99f95f7aa 100644 --- a/test/e2e/beta/metamask-beta-ui.spec.js +++ b/test/e2e/beta/metamask-beta-ui.spec.js @@ -511,6 +511,15 @@ describe('MetaMask', function () { await delay(regularDelayMs) }) + it('confirms a deploy contract transaction in the popup', async () => { + const windowHandles = await driver.getAllWindowHandles() + extension = windowHandles[0] + const popup = windowHandles[2] + await driver.switchTo().window(popup) + const confirmButton = await findElement(driver, By.xpath(`//button[contains(text(), 'Confirm')]`)) + await confirmButton.click() + }) + it('calls and confirms a contract method where ETH is sent', async () => { await driver.switchTo().window(dapp) await delay(regularDelayMs)