Skip to content

Commit

Permalink
Merge pull request #5103 from ethereum/flakygittest
Browse files Browse the repository at this point in the history
Flaky git test
  • Loading branch information
bunsenstraat authored Aug 22, 2024
2 parents a098264 + 4cc2515 commit cbe8fef
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion apps/remix-ide-e2e/src/tests/dgit_local.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ module.exports = {
'check if the branch is in the filePanel #group2': function (browser: NightwatchBrowser) {
browser
.clickLaunchIcon('filePanel')
.waitForElementVisible('*[data-id="workspaceGitBranchesDropdown"]')
.pause(1000)
.click('[data-id="workspaceGitBranchesDropdown"]')
.expect.element('[data-id="workspaceGit-testbranch"]').text.to.contain('✓ ')
},
Expand Down Expand Up @@ -314,18 +316,30 @@ module.exports = {
},
'switch back to master #group2': function (browser: NightwatchBrowser) {
browser
.waitForElementVisible({
selector: "//*[@data-id='branches-panel-content']//*[@data-id='branches-toggle-branch-master']",
locateStrategy: 'xpath',
})
.click({
selector: "//*[@data-id='branches-panel-content']//*[@data-id='branches-toggle-branch-master']",
locateStrategy: 'xpath',
})
.pause(1000)
.click({
selector: "//*[@data-id='branches-panel-content']//*[@data-id='branches-toggle-branch-master']",
locateStrategy: 'xpath',
abortOnFailure: false,
suppressNotFoundErrors: true
})
.waitForElementVisible({
selector: "//*[@data-id='branches-panel-content']//*[@data-id='branches-toggle-current-branch-master']",
locateStrategy: 'xpath',
timeout: 60000
})
},
'check if test file is gone #group2': function (browser: NightwatchBrowser) {
browser
.pause()
.pause(2000)
.clickLaunchIcon('filePanel')
.waitForElementNotPresent('*[data-id="treeViewLitreeViewItemtest.txt"]')
},
Expand Down

0 comments on commit cbe8fef

Please sign in to comment.