Fixed failing chrome test

yann300-patch-36
David Disu 3 years ago committed by yann300
parent 85f51575bf
commit 33b9d2a23f
  1. 6
      apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts
  2. 6
      apps/remix-ide-e2e/src/tests/ballot.test.ts
  3. 6
      apps/remix-ide-e2e/src/tests/ballot_0_4_11.test.ts

@ -19,7 +19,11 @@ function addInstance (browser: NightwatchBrowser, address: string, isValidFormat
else if (isAbi) {
browser.click('button[id^="runAndDeployAtAdressButton"]')
.waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]')
.click('[data-id="udappNotify-modal-footer-ok-react"]')
.execute(function () {
const modal = document.querySelector('[data-id="udappNotify-modal-footer-ok-react"]') as any
modal.click()
})
} else {
browser.click('button[id^="runAndDeployAtAdressButton"]')
}

@ -85,7 +85,11 @@ module.exports = {
.clickLaunchIcon('udapp')
.click('*[data-id="settingsWeb3Mode"]')
.waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]')
.click('[data-id="udappNotify-modal-footer-ok-react"]')
.execute(function () {
const modal = document.querySelector('[data-id="udappNotify-modal-footer-ok-react"]') as any
modal.click()
})
.pause(5000)
.execute(function () {
const env: any = document.getElementById('selectExEnvOptions')

@ -80,7 +80,11 @@ module.exports = {
.clickLaunchIcon('udapp')
.click('*[data-id="settingsWeb3Mode"]')
.waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]')
.click('[data-id="udappNotify-modal-footer-ok-react"]')
.execute(function () {
const modal = document.querySelector('[data-id="udappNotify-modal-footer-ok-react"]') as any
modal.click()
})
.clickLaunchIcon('solidity')
.clickLaunchIcon('udapp')
.pause(2000)

Loading…
Cancel
Save