aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorThomas <thomas.b.huang@gmail.com>2018-08-09 09:04:48 +0800
committerThomas <thomas.b.huang@gmail.com>2018-08-09 09:04:48 +0800
commit66120c627f2aeebf369efdb47963eaa9c3569752 (patch)
tree9d457eede236fb571d16d6b44a134fc5ab0003a8 /test
parent562764ccb2b0c3f39670390425f74ad9d88df647 (diff)
downloadtangerine-wallet-browser-66120c627f2aeebf369efdb47963eaa9c3569752.tar
tangerine-wallet-browser-66120c627f2aeebf369efdb47963eaa9c3569752.tar.gz
tangerine-wallet-browser-66120c627f2aeebf369efdb47963eaa9c3569752.tar.bz2
tangerine-wallet-browser-66120c627f2aeebf369efdb47963eaa9c3569752.tar.lz
tangerine-wallet-browser-66120c627f2aeebf369efdb47963eaa9c3569752.tar.xz
tangerine-wallet-browser-66120c627f2aeebf369efdb47963eaa9c3569752.tar.zst
tangerine-wallet-browser-66120c627f2aeebf369efdb47963eaa9c3569752.zip
confirms a deplay contract tx in the popup
Diffstat (limited to 'test')
-rw-r--r--test/e2e/beta/metamask-beta-ui.spec.js9
1 files changed, 9 insertions, 0 deletions
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)