Fixed failing ballot test

pull/5370/head
David Disu 3 years ago committed by yann300
parent 1cd69cabac
commit 229ebbc210
  1. 5
      apps/remix-ide-e2e/src/tests/ballot.test.ts
  2. 4
      apps/remix-ide-e2e/src/tests/ballot_0_4_11.test.ts

@ -84,13 +84,14 @@ module.exports = {
.openFile('Untitled.sol') .openFile('Untitled.sol')
.clickLaunchIcon('udapp') .clickLaunchIcon('udapp')
.click('*[data-id="settingsWeb3Mode"]') .click('*[data-id="settingsWeb3Mode"]')
.modalFooterOKClick() .waitForElementPresent('[data-id="fileSystem-modal-footer-ok-react"]')
.click('[data-id="fileSystem-modal-footer-ok-react"]')
.pause(5000) .pause(5000)
.execute(function () { .execute(function () {
const env: any = document.getElementById('selectExEnvOptions') const env: any = document.getElementById('selectExEnvOptions')
return env.value return env.value
}, [], function (result) { }, [], function (result) {
console.log({ result })
browser.assert.ok(result.value === 'web3', 'Web3 Provider not selected') browser.assert.ok(result.value === 'web3', 'Web3 Provider not selected')
}) })
.clickLaunchIcon('solidity') .clickLaunchIcon('solidity')

@ -79,10 +79,12 @@ module.exports = {
.openFile('Untitled.sol') .openFile('Untitled.sol')
.clickLaunchIcon('udapp') .clickLaunchIcon('udapp')
.click('*[data-id="settingsWeb3Mode"]') .click('*[data-id="settingsWeb3Mode"]')
.modalFooterOKClick() .waitForElementPresent('[data-id="fileSystem-modal-footer-ok-react"]')
.click('[data-id="fileSystem-modal-footer-ok-react"]')
.clickLaunchIcon('solidity') .clickLaunchIcon('solidity')
.clickLaunchIcon('udapp') .clickLaunchIcon('udapp')
.pause(2000) .pause(2000)
.clearValue('input[placeholder="uint8 _numProposals"]')
.setValue('input[placeholder="uint8 _numProposals"]', '2') .setValue('input[placeholder="uint8 _numProposals"]', '2')
.click('*[data-id="Deploy - transact (not payable)"]') .click('*[data-id="Deploy - transact (not payable)"]')
.clickInstance(0) .clickInstance(0)

Loading…
Cancel
Save