From 8331b938375ed11002ee755cdec8ef3ed6f04455 Mon Sep 17 00:00:00 2001 From: David Disu Date: Tue, 4 Jan 2022 10:38:56 +0100 Subject: [PATCH] Fixed failing ballot test --- apps/remix-ide-e2e/src/tests/ballot.test.ts | 5 +++-- apps/remix-ide-e2e/src/tests/ballot_0_4_11.test.ts | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/ballot.test.ts b/apps/remix-ide-e2e/src/tests/ballot.test.ts index 1601336e57..61ecbdee16 100644 --- a/apps/remix-ide-e2e/src/tests/ballot.test.ts +++ b/apps/remix-ide-e2e/src/tests/ballot.test.ts @@ -84,13 +84,14 @@ module.exports = { .openFile('Untitled.sol') .clickLaunchIcon('udapp') .click('*[data-id="settingsWeb3Mode"]') - .modalFooterOKClick() + .waitForElementPresent('[data-id="fileSystem-modal-footer-ok-react"]') + .click('[data-id="fileSystem-modal-footer-ok-react"]') .pause(5000) .execute(function () { const env: any = document.getElementById('selectExEnvOptions') + return env.value }, [], function (result) { - console.log({ result }) browser.assert.ok(result.value === 'web3', 'Web3 Provider not selected') }) .clickLaunchIcon('solidity') diff --git a/apps/remix-ide-e2e/src/tests/ballot_0_4_11.test.ts b/apps/remix-ide-e2e/src/tests/ballot_0_4_11.test.ts index 108bf7c2c5..839841b51c 100644 --- a/apps/remix-ide-e2e/src/tests/ballot_0_4_11.test.ts +++ b/apps/remix-ide-e2e/src/tests/ballot_0_4_11.test.ts @@ -79,10 +79,12 @@ module.exports = { .openFile('Untitled.sol') .clickLaunchIcon('udapp') .click('*[data-id="settingsWeb3Mode"]') - .modalFooterOKClick() + .waitForElementPresent('[data-id="fileSystem-modal-footer-ok-react"]') + .click('[data-id="fileSystem-modal-footer-ok-react"]') .clickLaunchIcon('solidity') .clickLaunchIcon('udapp') .pause(2000) + .clearValue('input[placeholder="uint8 _numProposals"]') .setValue('input[placeholder="uint8 _numProposals"]', '2') .click('*[data-id="Deploy - transact (not payable)"]') .clickInstance(0)