Skip to content

Commit cc67589

Browse files
authored
Merge pull request #5146 from ethereum/vypertest2
fix flaky vyper test
2 parents 74057bd + 4c0d1be commit cc67589

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,24 @@ module.exports = {
1717
browser.clickLaunchIcon('pluginManager')
1818
.scrollAndClick('[data-id="pluginManagerComponentActivateButtonvyper"]')
1919
.clickLaunchIcon('vyper')
20-
.pause(5000)
21-
// @ts-ignore
2220
.frame(0)
2321
},
2422

2523
'Should clone the Vyper repo #group1': function (browser: NightwatchBrowser) {
26-
browser.click('button[data-id="add-repository"]')
24+
browser
25+
.waitForElementVisible('button[data-id="add-repository"]')
26+
.click('button[data-id="add-repository"]')
2727
.frameParent()
2828
.clickLaunchIcon('filePanel')
2929
.waitForElementVisible({
3030
selector: "//*[@data-id='workspacesSelect' and contains(.,'snekmate')]",
3131
locateStrategy: 'xpath',
3232
timeout: 120000
3333
})
34-
.currentWorkspaceIs('snekmate')
3534
.waitForElementVisible({
36-
selector: "//*[@data-id='treeViewLitreeViewItemsrc' and contains(.,'src')]",
35+
selector: "//*[contains(., 'Vyper repository cloned')]",
3736
locateStrategy: 'xpath',
38-
timeout: 1200000
37+
timeout: 120000
3938
})
4039
},
4140
// 'Add vyper file to run tests #group1': function (browser: NightwatchBrowser) {
@@ -123,6 +122,7 @@ module.exports = {
123122
.clickLaunchIcon('vyper')
124123
// @ts-ignore
125124
.frame(0)
125+
.waitForElementVisible('[data-id="compile"]')
126126
.click('[data-id="compile"]')
127127
.waitForElementVisible({
128128
selector:'[data-id="compilation-details"]',

0 commit comments

Comments
 (0)