confirms a deplay contract tx in the popup

feature/default_network_editable
Thomas 6 years ago
parent 562764ccb2
commit 66120c627f
  1. 9
      test/e2e/beta/metamask-beta-ui.spec.js

@ -511,6 +511,15 @@ describe('MetaMask', function () {
await delay(regularDelayMs) 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 () => { it('calls and confirms a contract method where ETH is sent', async () => {
await driver.switchTo().window(dapp) await driver.switchTo().window(dapp)
await delay(regularDelayMs) await delay(regularDelayMs)

Loading…
Cancel
Save