Skip to content

Commit 8787eca

Browse files
ci-botAniket-Engg
authored andcommitted
fix settings in e2e
1 parent de11f0d commit 8787eca

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ module.exports = {
3939
'Test Manual Deploy Lib': function (browser: NightwatchBrowser) {
4040
browser.click('*[data-id="deployAndRunClearInstances"]')
4141
.pause(5000)
42-
.clickLaunchIcon('settings')
42+
.waitForElementVisible('*[data-id="topbar-settingsIcon"]')
43+
.click('*[data-id="topbar-settingsIcon"]')
4344
.click('*[data-id="settingsTabGenerateContractMetadataLabel"]')
4445
.clickLaunchIcon('solidity')
4546
.click('#compileTabView button[data-id="compilerContainerCompileBtn"]') // that should generate the JSON artefact

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ module.exports = {
112112

113113
'Should ensure that save environment state is checked by default #group4 #group5': function (browser: NightwatchBrowser) {
114114
browser.waitForElementPresent('*[data-id="remixIdeSidePanel"]')
115-
.clickLaunchIcon('settings')
115+
.waitForElementVisible('*[data-id="topbar-settingsIcon"]')
116+
.click('*[data-id="topbar-settingsIcon"]')
116117
.waitForElementPresent('[data-id="settingsEnableSaveEnvStateLabel"]')
117118
.scrollInto('[data-id="settingsEnableSaveEnvStateLabel"]')
118119
.verify.elementPresent('[data-id="settingsEnableSaveEnvState"]:checked')
@@ -153,7 +154,8 @@ module.exports = {
153154

154155
'Should save state after running web3 script #group4': function (browser: NightwatchBrowser) {
155156
browser
156-
.clickLaunchIcon('settings')
157+
.waitForElementVisible('*[data-id="topbar-settingsIcon"]')
158+
.click('*[data-id="topbar-settingsIcon"]')
157159
.waitForElementPresent('[data-id="settingsTabGenerateContractMetadataLabel"]')
158160
.click('[data-id="settingsTabGenerateContractMetadataLabel"]')
159161
.verify.elementPresent('[data-id="settingsTabGenerateContractMetadata"]:checked')
@@ -182,7 +184,8 @@ module.exports = {
182184

183185
'Should ensure that .states is not updated when save env option is unchecked #group5': function (browser: NightwatchBrowser) {
184186
browser
185-
.clickLaunchIcon('settings')
187+
.waitForElementVisible('*[data-id="topbar-settingsIcon"]')
188+
.click('*[data-id="topbar-settingsIcon"]')
186189
.waitForElementPresent('[data-id="settingsEnableSaveEnvStateLabel"]')
187190
.click('[data-id="settingsEnableSaveEnvStateLabel"]')
188191
.verify.elementNotPresent('[data-id="settingsEnableSaveEnvState"]:checked')

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ module.exports = {
169169
'Changing current path when workspace changed and checking test files creation #group4': function (browser: NightwatchBrowser) {
170170
browser
171171
.waitForElementPresent('*[data-id="verticalIconsKindfilePanel"]')
172-
.clickLaunchIcon('settings')
172+
.waitForElementVisible('*[data-id="topbar-settingsIcon"]')
173+
.click('*[data-id="topbar-settingsIcon"]')
173174
.clickLaunchIcon('solidityUnitTesting')
174175
.waitForElementPresent('*[data-id="uiPathInput"]', 3000)
175176
.clearValue('*[data-id="uiPathInput"]')

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ module.exports = {
9999
.clickLaunchIcon('solidity')
100100
.click('.remixui_compilerConfigSection')
101101
.setValue('#evmVersionSelector', 'london') // Set EVM version as fork version
102-
.clickLaunchIcon('settings')
102+
.waitForElementVisible('*[data-id="topbar-settingsIcon"]')
103+
.click('*[data-id="topbar-settingsIcon"]')
103104
.clickLaunchIcon('udapp')
104105
.switchEnvironment('vm-london')
105106
.click('*[data-id="terminalClearConsole"]') // clear the terminal

0 commit comments

Comments
 (0)