Skip to content

Commit e82e824

Browse files
ci-botAniket-Engg
authored andcommitted
fix more tests
1 parent fdcd66e commit e82e824

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
.waitForElementVisible('div[data-id="verticalIconsHomeIcon"]')
1313
.waitForElementVisible('div[plugin="filePanel"]')
1414
.waitForElementVisible('div[plugin="pluginManager"]')
15-
.waitForElementVisible('div[plugin="settings"]')
15+
.waitForElementVisible('*[data-id="topbar-settingsIcon"]')
1616
},
1717

1818
'Loads Side Panel': function (browser: NightwatchBrowser) {

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ module.exports = {
1515
},
1616

1717
'Import from GitHub Modal #group1': function (browser: NightwatchBrowser) {
18-
browser.clickLaunchIcon('home')
18+
browser
19+
.clickLaunchIcon('filePanel')
1920
.waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000)
2021
.clickLaunchIcon('filePanel')
2122
.waitForElementVisible('*[data-id="verticalIconsHomeIcon"]')
@@ -37,8 +38,9 @@ module.exports = {
3738
(document.querySelector('input[data-id="modalDialogCustomPromptTextClone"]') as any).focus()
3839
}, [], () => { })
3940
.setValue('input[data-id="modalDialogCustomPromptTextClone"]', testData.invalidURL)
40-
.waitForElementVisible('*[data-id="fileSystemModalDialogModalFooter-react"]')
41-
.click('[data-id="fileSystem-modal-footer-ok-react"]') // submitted
41+
.pause()
42+
.waitForElementVisible('*[data-id="topbarModalModalDialogModalFooter-react"]')
43+
.click('[data-id="topbarModal-modal-footer-ok-react"]') // submitted
4244
//.waitForElementVisible('*[data-shared="tooltipPopup"]')
4345
//.waitForElementContainsText('*[data-shared="tooltipPopup"] span', 'not found ' + testData.invalidURL)
4446
},

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ module.exports = {
155155
.click('[data-id="github-dropdown-toggle"]')
156156
.waitForElementVisible('[data-id="github-dropdown-item-clone"]')
157157
.click('[data-id="github-dropdown-item-clone"]')
158-
.waitForElementVisible('[data-id="topbarModalDialogModalBody-react"]')
159-
.click('[data-id="topbarModalDialogModalBody-react"]')
158+
.waitForElementVisible('[data-id="topbarModalModalDialogModalBody-react"]')
159+
.click('[data-id="topbarModalModalDialogModalBody-react"]')
160160
.waitForElementVisible('[data-id="modalDialogCustomPromptTextClone"]')
161161
.setValue('[data-id="modalDialogCustomPromptTextClone"]', 'https://github.com/remix-project-org/remix-reward')
162-
.click('[data-id="fileSystem-modal-footer-ok-react"]')
162+
.click('[data-id="topbarModal-modal-footer-ok-react"]')
163163
.waitForElementPresent('.fa-spinner')
164164
.waitForElementNotPresent('.fa-spinner', 120000)
165165
.waitForElementVisible('*[data-id="treeViewLitreeViewItem.git"]')

0 commit comments

Comments
 (0)