Skip to content

Commit 922c577

Browse files
author
ci-bot
committed
fix flaky test
1 parent 90d162f commit 922c577

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ module.exports = {
111111
.click('*[data-id="treeViewDivDraggableItemsrc/main.nr"]')
112112
.waitForElementVisible('*[data-id="compile-action"]')
113113
},
114-
'Create OpenZeppelin ERC20 template with Contract Wizard': function (browser: NightwatchBrowser) {
114+
'Create OpenZeppelin ERC20 template with Contract Wizard #pr': function (browser: NightwatchBrowser) {
115115
browser
116116
.click('*[data-id="workspacesSelect"]')
117117
.pause(2000)
@@ -130,9 +130,9 @@ module.exports = {
130130
.click('*[data-id="contract-wizard-pausable-checkbox"]')
131131
.assert.selected('*[data-id="contract-wizard-access-ownable-radio"]', 'checked')
132132
.click('*[data-id="contract-wizard-validate-workspace-button"]')
133-
.isVisible('*[data-id="treeViewDivDraggableItemremix.config.json"]')
133+
.waitForElementVisible('*[data-id="treeViewDivDraggableItemremix.config.json"]')
134134
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcontracts"]')
135-
.isVisible('*[data-id="treeViewLitreeViewItemcontracts/TestToken.sol"]')
135+
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcontracts/TestToken.sol"]')
136136
.click('*[data-id="treeViewLitreeViewItemcontracts/TestToken.sol"]')
137137
.getEditorValue((content) => {
138138
browser.assert.ok(content.indexOf(`contract TestToken is ERC20, ERC20Burnable, ERC20Pausable, Ownable {`) !== -1,
@@ -173,9 +173,9 @@ module.exports = {
173173
}
174174
})
175175
})
176-
.isVisible('*[data-id="treeViewLitreeViewItemremix.config.json"]')
176+
.waitForElementVisible('*[data-id="treeViewLitreeViewItemremix.config.json"]')
177177
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcontracts"]')
178-
.isVisible('*[data-id="treeViewLitreeViewItemcontracts/Test721Token.sol"]')
178+
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcontracts/Test721Token.sol"]')
179179
.click('*[data-id="treeViewLitreeViewItemcontracts/Test721Token.sol"]')
180180
.pause(2000)
181181
.getEditorValue((content) => {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = {
3838
.click('[data-id="settingsTabSavegithub-config"]')
3939
},
4040

41-
'Should create and initialize a GIT repository #group1': function (browser: NightwatchBrowser) {
41+
'Should create and initialize a GIT repository #group1 #pr': function (browser: NightwatchBrowser) {
4242
browser
4343
// .waitForElementNotVisible('[data-id="workspaceGitPanel"]')
4444
.click('*[data-id="workspacesSelect"]')
@@ -53,13 +53,13 @@ module.exports = {
5353
.click('*[data-id="workspace-name-blank-input"]')
5454
.setValue('*[data-id="workspace-name-blank-input"]', 'workspace_blank_git')
5555
.click('[data-id="initializeAsGitRepo-blank"]')
56-
.click('*[data-id="validateWorkspaceButton"]')
56+
.click('*[data-id="validate-blankworkspace-button"]')
5757
// eslint-disable-next-line dot-notation
5858
.pause(100)
5959
.waitForElementVisible('[data-id="workspaceGitPanel"]')
6060
.waitForElementContainsText('[data-id="workspaceGitBranchesDropdown"]', 'main')
6161
},
62-
'check git for the commit #group1': function (browser: NightwatchBrowser) {
62+
'check git for the commit #group1 #pr': function (browser: NightwatchBrowser) {
6363
browser.
6464
clickLaunchIcon('dgit')
6565
.click('*[data-id="commits-panel"]')

0 commit comments

Comments
 (0)