Skip to content

Commit 370e4c0

Browse files
LianaHusAniket-Engg
authored andcommitted
e2e
1 parent e1c4618 commit 370e4c0

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

apps/remix-ide-e2e/src/commands/createContract.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ class CreateContract extends EventEmitter {
1616
function createContract (browser: NightwatchBrowser, inputParams: string, callback: VoidFunction) {
1717
if (inputParams) {
1818
browser.setValue('.udapp_contractActionsContainerSingle > input', inputParams, function () {
19-
browser.click('.udapp_contractActionsContainerSingle > button').pause(500).perform(function () { callback() })
19+
browser.click('.udapp_contractActionsContainerSingle > div').pause(500).perform(function () { callback() })
2020
})
2121
} else {
2222
browser
23-
.click('.udapp_contractActionsContainerSingle > button')
23+
.click('.udapp_contractActionsContainerSingle > div')
2424
.pause(500)
2525
.perform(function () { callback() })
2626
}

apps/remix-ide-e2e/src/tests/blockchain.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = {
2121
browser.testContracts('test.sol',{ content: code } , ['A'])
2222
.clickLaunchIcon('udapp')
2323
.selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c') // this account will be used for this test suite
24-
.click('.udapp_contractActionsContainerSingle > button')
24+
.click('.udapp_contractActionsContainerSingle > div')
2525
.clickInstance(0)
2626
.clickFunction('foo - call', { types: 'uint256 p', values: '0' })
2727
.perform((done) => {

apps/remix-ide-e2e/src/tests/transactionExecution.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
browser.testContracts('Untitled.sol', sources[0]['Untitled.sol'], ['TestContract'])
1616
.clickLaunchIcon('udapp')
1717
.selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c') // this account will be used for this test suite
18-
.click('.udapp_contractActionsContainerSingle > button')
18+
.click('.udapp_contractActionsContainerSingle > div')
1919
.clickInstance(0)
2020
.clickFunction('f - transact (not payable)')
2121
.testFunction('last',
@@ -40,7 +40,7 @@ module.exports = {
4040
'Test Complex Return Values #group1': function (browser: NightwatchBrowser) {
4141
browser.testContracts('returnValues.sol', sources[1]['returnValues.sol'], ['testReturnValues'])
4242
.clickLaunchIcon('udapp')
43-
.click('.udapp_contractActionsContainerSingle > button')
43+
.click('.udapp_contractActionsContainerSingle > div')
4444
.clickInstance(0)
4545
.clickFunction('retunValues1 - transact (not payable)')
4646
.testFunction('last',
@@ -84,7 +84,7 @@ module.exports = {
8484
'Test Complex Input Values #group2': function (browser: NightwatchBrowser) {
8585
browser.testContracts('inputValues.sol', sources[2]['inputValues.sol'], ['test'])
8686
.clickLaunchIcon('udapp')
87-
.click('.udapp_contractActionsContainerSingle > button')
87+
.click('.udapp_contractActionsContainerSingle > div')
8888
.clickInstance(0)
8989
.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 _"' })
9090
.testFunction('last',
@@ -129,15 +129,15 @@ module.exports = {
129129
browser.testContracts('eventFunctionInput.sol', sources[3]['eventFunctionInput.sol'], ['C'])
130130
.clickLaunchIcon('udapp')
131131
.selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c') // this account will be used for this test suite
132-
.click('.udapp_contractActionsContainerSingle > button')
132+
.click('.udapp_contractActionsContainerSingle > div')
133133
.clickInstance(0)
134134
.click('*[data-id="deployAndRunClearInstances"]')
135135
},
136136

137137
'Should use scientific notation as parameters #group2': function (browser: NightwatchBrowser) {
138138
browser.testContracts('scientific_notation.sol', sources[8]['scientific_notation.sol'], ['test'])
139139
.clickLaunchIcon('udapp')
140-
.click('.udapp_contractActionsContainerSingle > button')
140+
.click('.udapp_contractActionsContainerSingle > div')
141141
.clickInstance(0)
142142
.clickFunction('inputValue1 - transact (not payable)', { types: 'uint256 _u, int256 _i', values: '"101e3", "-1.13e4"' })
143143
.waitForElementContainsText('*[data-id="terminalJournal"]', '101000', 60000)
@@ -154,7 +154,7 @@ module.exports = {
154154
browser.testContracts('customError.sol', sources[4]['customError.sol'], ['C'])
155155
.clickLaunchIcon('udapp')
156156
.selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c') // this account will be used for this test suite
157-
.click('.udapp_contractActionsContainerSingle > button')
157+
.click('.udapp_contractActionsContainerSingle > div')
158158
.clickInstance(0)
159159
.clickFunction('g - transact (not payable)')
160160
.journalLastChildIncludes('Error provided by the contract:')
@@ -176,7 +176,7 @@ module.exports = {
176176
.clearTransactions()
177177
.switchEnvironment('vm-london') // switch to London fork
178178
.selectAccount('0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c') // this account will be used for this test suite
179-
.click('.udapp_contractActionsContainerSingle > button')
179+
.click('.udapp_contractActionsContainerSingle > div')
180180
.clickInstance(0)
181181
.clickFunction('g - transact (not payable)')
182182
.journalLastChildIncludes('Error provided by the contract:')
@@ -194,7 +194,7 @@ module.exports = {
194194
'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) {
195195
browser.testContracts('customErrorLib.sol', sources[5]['customErrorLib.sol'], ['D'])
196196
.clickLaunchIcon('udapp')
197-
.click('.udapp_contractActionsContainerSingle > button')
197+
.click('.udapp_contractActionsContainerSingle > div')
198198
.clickInstance(1)
199199
.clickFunction('h - transact (not payable)')
200200
.journalLastChildIncludes('Error provided by the contract:')

0 commit comments

Comments
 (0)