diff --git a/apps/remix-ide-e2e/src/commands/selectAccount.ts b/apps/remix-ide-e2e/src/commands/selectAccount.ts index 9d05e7ae779..d82fdf35ed5 100644 --- a/apps/remix-ide-e2e/src/commands/selectAccount.ts +++ b/apps/remix-ide-e2e/src/commands/selectAccount.ts @@ -6,7 +6,7 @@ class SelectAccount extends EventEmitter { if (account) { this.api .click(`*[data-id="runTabSelectAccount"]`) //open the dropdown - .waitForElementVisible(`*[data-id="custom-dropdown-items"]`) + // .waitForElementVisible(`*[data-id="custom-dropdown-items"]`) .waitForElementVisible(`*[data-id="${account}"]`) .click(`*[data-id="${account}"]`) //close the dropdown .perform(() => { diff --git a/apps/remix-ide-e2e/src/tests/ballot_0_4_14.test.ts b/apps/remix-ide-e2e/src/tests/ballot_0_4_14.test.ts index 61d08b5735f..4f03f48505b 100644 --- a/apps/remix-ide-e2e/src/tests/ballot_0_4_14.test.ts +++ b/apps/remix-ide-e2e/src/tests/ballot_0_4_14.test.ts @@ -36,6 +36,7 @@ module.exports = { browser.pause(500) .clickLaunchIcon('udapp') .selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c') + .pause() .setValue('input[placeholder="uint8 _numProposals"]', '2') .click('*[data-id="Deploy - transact (not payable)"]') .waitForElementPresent('*[data-id="universalDappUiContractActionWrapper"]', 60000) diff --git a/apps/remix-ide-e2e/src/tests/terminal.test.ts b/apps/remix-ide-e2e/src/tests/terminal.test.ts index 65bae97180e..c403d1aad93 100644 --- a/apps/remix-ide-e2e/src/tests/terminal.test.ts +++ b/apps/remix-ide-e2e/src/tests/terminal.test.ts @@ -300,9 +300,10 @@ module.exports = { browser .clickLaunchIcon('udapp') .switchEnvironment('vm-mainnet-fork') + .click('*[data-id="runTabSelectAccount"]') .waitForElementPresent({ locateStrategy: 'css selector', - selector: `*[data-id="runTabSelectAccount"] *[data-id="dropdown-content"]:contains('0xdD870fA1b7C4700F2BD7f44238821C26f7392148')`, + selector: '*[data-id="0xdD870fA1b7C4700F2BD7f44238821C26f7392148"]', timeout: 240000 }) .executeScriptInTerminal(`web3.eth.getCode('0x180587b00c8642e2c7ac3a758712d97e6f7bdcc7')`) // mainnet contract @@ -332,7 +333,7 @@ module.exports = { .modalFooterOKClick('vm-custom-fork') .waitForElementPresent({ locateStrategy: 'css selector', - selector: `*[data-id="runTabSelectAccount"] *[data-id="dropdown-content"]:contains('0xdD870fA1b7C4700F2BD7f44238821C26f7392148')`, + selector: 'select[data-id="runTabSelectAccount"] option[value="0xdD870fA1b7C4700F2BD7f44238821C26f7392148"]', timeout: 240000 }) .pause(5000) diff --git a/apps/remix-ide-e2e/src/tests/transactionExecution.test.ts b/apps/remix-ide-e2e/src/tests/transactionExecution.test.ts index c5a57343696..3e47b2b1e8d 100644 --- a/apps/remix-ide-e2e/src/tests/transactionExecution.test.ts +++ b/apps/remix-ide-e2e/src/tests/transactionExecution.test.ts @@ -245,9 +245,10 @@ module.exports = { .setSolidityCompilerVersion('soljson-v0.8.17+commit.8df45f5f.js') .clickLaunchIcon('udapp') .switchEnvironment('vm-mainnet-fork') + .click('*[data-id="runTabSelectAccount"]') .waitForElementPresent({ locateStrategy: 'css selector', - selector: `*[data-id="runTabSelectAccount"] *[data-id="dropdown-content"]:contains('0xdD870fA1b7C4700F2BD7f44238821C26f7392148')`, + selector: `*[data-id="0xdD870fA1b7C4700F2BD7f44238821C26f7392148"]`, timeout: 250000 }) // wait for the udapp to load the list of accounts .selectContract('MyResolver')