diff --git a/apps/remix-ide-e2e/src/commands/createContract.ts b/apps/remix-ide-e2e/src/commands/createContract.ts index 015a4f2012..046f747c83 100644 --- a/apps/remix-ide-e2e/src/commands/createContract.ts +++ b/apps/remix-ide-e2e/src/commands/createContract.ts @@ -16,11 +16,11 @@ class CreateContract extends EventEmitter { function createContract (browser: NightwatchBrowser, inputParams: string, callback: VoidFunction) { if (inputParams) { browser.setValue('.udapp_contractActionsContainerSingle > input', inputParams, function () { - browser.click('.udapp_contractActionsContainerSingle > button').pause(500).perform(function () { callback() }) + browser.click('.udapp_contractActionsContainerSingle > div').pause(500).perform(function () { callback() }) }) } else { browser - .click('.udapp_contractActionsContainerSingle > button') + .click('.udapp_contractActionsContainerSingle > div') .pause(500) .perform(function () { callback() }) } diff --git a/apps/remix-ide-e2e/src/tests/blockchain.test.ts b/apps/remix-ide-e2e/src/tests/blockchain.test.ts index c44463ee30..7567543d6c 100644 --- a/apps/remix-ide-e2e/src/tests/blockchain.test.ts +++ b/apps/remix-ide-e2e/src/tests/blockchain.test.ts @@ -21,7 +21,7 @@ module.exports = { browser.testContracts('test.sol',{ content: code } , ['A']) .clickLaunchIcon('udapp') .selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c') // this account will be used for this test suite - .click('.udapp_contractActionsContainerSingle > button') + .click('.udapp_contractActionsContainerSingle > div') .clickInstance(0) .clickFunction('foo - call', { types: 'uint256 p', values: '0' }) .perform((done) => { diff --git a/apps/remix-ide-e2e/src/tests/transactionExecution.test.ts b/apps/remix-ide-e2e/src/tests/transactionExecution.test.ts index a4ebf83709..c5fc0d8815 100644 --- a/apps/remix-ide-e2e/src/tests/transactionExecution.test.ts +++ b/apps/remix-ide-e2e/src/tests/transactionExecution.test.ts @@ -15,7 +15,7 @@ module.exports = { browser.testContracts('Untitled.sol', sources[0]['Untitled.sol'], ['TestContract']) .clickLaunchIcon('udapp') .selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c') // this account will be used for this test suite - .click('.udapp_contractActionsContainerSingle > button') + .click('.udapp_contractActionsContainerSingle > div') .clickInstance(0) .clickFunction('f - transact (not payable)') .testFunction('last', @@ -40,7 +40,7 @@ module.exports = { 'Test Complex Return Values #group1': function (browser: NightwatchBrowser) { browser.testContracts('returnValues.sol', sources[1]['returnValues.sol'], ['testReturnValues']) .clickLaunchIcon('udapp') - .click('.udapp_contractActionsContainerSingle > button') + .click('.udapp_contractActionsContainerSingle > div') .clickInstance(0) .clickFunction('retunValues1 - transact (not payable)') .testFunction('last', @@ -84,7 +84,7 @@ module.exports = { 'Test Complex Input Values #group2': function (browser: NightwatchBrowser) { browser.testContracts('inputValues.sol', sources[2]['inputValues.sol'], ['test']) .clickLaunchIcon('udapp') - .click('.udapp_contractActionsContainerSingle > button') + .click('.udapp_contractActionsContainerSingle > div') .clickInstance(0) .clickFunction('inputValue1 - transact (not payable)', { types: 'uint256 _u, int256 _i, string _str', values: '"2343242", "-4324324", "string _ string _ string _ string _ string _ string _ string _ string _ string _ string _"' }) .testFunction('last', @@ -129,7 +129,7 @@ module.exports = { browser.testContracts('eventFunctionInput.sol', sources[3]['eventFunctionInput.sol'], ['C']) .clickLaunchIcon('udapp') .selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c') // this account will be used for this test suite - .click('.udapp_contractActionsContainerSingle > button') + .click('.udapp_contractActionsContainerSingle > div') .clickInstance(0) .click('*[data-id="deployAndRunClearInstances"]') }, @@ -137,7 +137,7 @@ module.exports = { 'Should use scientific notation as parameters #group2': function (browser: NightwatchBrowser) { browser.testContracts('scientific_notation.sol', sources[8]['scientific_notation.sol'], ['test']) .clickLaunchIcon('udapp') - .click('.udapp_contractActionsContainerSingle > button') + .click('.udapp_contractActionsContainerSingle > div') .clickInstance(0) .clickFunction('inputValue1 - transact (not payable)', { types: 'uint256 _u, int256 _i', values: '"101e3", "-1.13e4"' }) .waitForElementContainsText('*[data-id="terminalJournal"]', '101000', 60000) @@ -154,7 +154,7 @@ module.exports = { browser.testContracts('customError.sol', sources[4]['customError.sol'], ['C']) .clickLaunchIcon('udapp') .selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c') // this account will be used for this test suite - .click('.udapp_contractActionsContainerSingle > button') + .click('.udapp_contractActionsContainerSingle > div') .clickInstance(0) .clickFunction('g - transact (not payable)') .journalLastChildIncludes('Error provided by the contract:') @@ -176,7 +176,7 @@ module.exports = { .clearTransactions() .switchEnvironment('vm-london') // switch to London fork .selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c') // this account will be used for this test suite - .click('.udapp_contractActionsContainerSingle > button') + .click('.udapp_contractActionsContainerSingle > div') .clickInstance(0) .clickFunction('g - transact (not payable)') .journalLastChildIncludes('Error provided by the contract:') @@ -194,7 +194,7 @@ module.exports = { 'Should Compile and Deploy a contract which define a custom error in a library, the error should be logged in the terminal #group3': function (browser: NightwatchBrowser) { browser.testContracts('customErrorLib.sol', sources[5]['customErrorLib.sol'], ['D']) .clickLaunchIcon('udapp') - .click('.udapp_contractActionsContainerSingle > button') + .click('.udapp_contractActionsContainerSingle > div') .clickInstance(1) .clickFunction('h - transact (not payable)') .journalLastChildIncludes('Error provided by the contract:')