Skip to content

Commit bf91aa8

Browse files
author
ci-bot
committed
fix_tests
1 parent 6b63973 commit bf91aa8

File tree

4 files changed

+21
-17
lines changed

4 files changed

+21
-17
lines changed

apps/remix-ide-e2e/src/commands/verifyLoad.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import EventEmitter from 'events'
33

44
class VerifyLoad extends EventEmitter {
55
command(this: NightwatchBrowser) {
6-
browser.saveScreenshot('./reports/screenshots/verifyLoad.png').waitForElementPresent({
6+
browser.waitForElementPresent({
77
selector: "//span[@data-id='typesloaded']",
88
locateStrategy: 'xpath',
99
timeout: 60000

apps/remix-ide-e2e/src/tests/script-runner.test.ts

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const tests = {
77
before: function (browser: NightwatchBrowser, done: VoidFunction) {
88
init(browser, done, 'http://127.0.0.1:8080', false)
99
},
10-
'Should activate plugins': function (browser: NightwatchBrowser) {
10+
'Should activate plugins #group1': function (browser: NightwatchBrowser) {
1111
browser
1212
.waitForElementVisible('*[data-id="remixIdeSidePanel"]')
1313
.waitForElementVisible('*[plugin="pluginManager"]')
@@ -16,7 +16,7 @@ const tests = {
1616
.click('*[data-id="pluginManagerComponentPluginManager"]')
1717
.scrollAndClick('*[data-id="pluginManagerComponentActivateButtonUIScriptRunner"]')
1818
},
19-
'Should load default script runner': function (browser: NightwatchBrowser) {
19+
'Should load default script runner #group1': function (browser: NightwatchBrowser) {
2020
browser
2121
.waitForElementVisible('*[data-id="verticalIconsKindfilePanel"]')
2222
.click('*[data-id="verticalIconsKindfilePanel"]')
@@ -33,29 +33,29 @@ const tests = {
3333
.waitForElementVisible('[data-id="dependency-ethers-^5"]')
3434
.waitForElementVisible('[data-id="sr-notloaded-ethers6"]')
3535
},
36-
'Should load script runner ethers6': function (browser: NightwatchBrowser) {
36+
'Should load script runner ethers6 #group1': function (browser: NightwatchBrowser) {
3737
browser
3838
.click('[data-id="sr-notloaded-ethers6"]')
39-
.waitForElementVisible('label[data-id="sr-loaded-ethers6"]', 60000)
39+
.waitForElementVisible('label[data-id="sr-loaded-ethers6"]', 120000)
4040
.waitForElementPresent('[data-id="dependency-ethers-^6"]', 60000)
4141
},
42-
'Should have config file in .remix/script.config.json': function (browser: NightwatchBrowser) {
42+
'Should have config file in .remix/script.config.json #group1': function (browser: NightwatchBrowser) {
4343
browser
4444
.frameParent()
4545
// .clickLaunchIcon('filePanel')
4646
.waitForElementVisible('[data-path=".remix"]')
4747
.waitForElementVisible('[data-id="treeViewDivDraggableItem.remix/script.config.json"]')
4848
.openFile('.remix/script.config.json')
4949
},
50-
'check config file content': function (browser: NightwatchBrowser) {
50+
'check config file content #group1': function (browser: NightwatchBrowser) {
5151
browser
5252
.getEditorValue((content) => {
5353
console.log(JSON.parse(content))
5454
const parsed = JSON.parse(content)
5555
browser.assert.ok(parsed.defaultConfig === 'ethers6', 'config file content is correct')
5656
})
5757
},
58-
'execute ethers6 script': function (browser: NightwatchBrowser) {
58+
'execute ethers6 script #group1': function (browser: NightwatchBrowser) {
5959
browser
6060
.click('*[data-id="treeViewUltreeViewMenu"]') // make sure we create the file at the root folder
6161
.addFile('deployWithEthersJs.js', { content: deployWithEthersJs })
@@ -67,7 +67,7 @@ const tests = {
6767
.executeScriptInTerminal('remix.execute(\'deployWithEthersJs.js\')')
6868
.waitForElementContainsText('*[data-id="terminalJournal"]', '0xd9145CCE52D386f254917e481eB44e9943F39138', 60000)
6969
},
70-
'switch workspace it should be default again': function (browser: NightwatchBrowser) {
70+
'switch workspace it should be default again #group1': function (browser: NightwatchBrowser) {
7171
browser
7272
.clickLaunchIcon('filePanel')
7373
.pause(2000)
@@ -90,7 +90,7 @@ const tests = {
9090
.waitForElementVisible('[data-id="dependency-ethers-^5"]')
9191
.waitForElementVisible('[data-id="sr-notloaded-zksyncv6"]')
9292
},
93-
'open template that sets a config': function (browser: NightwatchBrowser) {
93+
'open template that sets a config #group1': function (browser: NightwatchBrowser) {
9494
browser
9595
.waitForElementVisible('*[data-id="workspacesSelect"]')
9696
.click('*[data-id="workspacesSelect"]')
@@ -108,10 +108,11 @@ const tests = {
108108
locateStrategy: 'xpath',
109109
selector: "//li[@data-id='UIScriptRunner' and @role='tab']"
110110
})
111-
.waitForElementVisible('[data-id="sr-notloaded-default"]')
112-
.waitForElementVisible('[data-id="sr-loaded-ethers6"]')
111+
.waitForElementVisible('[data-id="sr-notloaded-default"]', 60000)
112+
.waitForElementVisible('[data-id="sr-loaded-ethers6"]', 60000)
113+
.waitForElementPresent('*[data-id="treeViewLitreeViewItemcontracts"]', 60000)
113114
},
114-
'reset to default after template': function (browser: NightwatchBrowser) {
115+
'reset to default after template #group1': function (browser: NightwatchBrowser) {
115116
browser
116117
.refreshPage()
117118
.waitForElementVisible('*[data-id="treeViewLitreeViewItemscripts"', 60000)
@@ -134,10 +135,13 @@ const tests = {
134135
.click('*[data-id="run-script-dropdown-trigger"]')
135136
.pause(1000)
136137
.click('*[data-id="open-script-configuration-menu-item"]')
137-
.waitForElementVisible('label[data-id="sr-loaded-default"]', 60000)
138+
.waitForElementVisible('label[data-id="sr-notloaded-default"]', 60000)
139+
.waitForElementVisible('label[data-id="sr-loaded-ethers6"]', 60000)
140+
.click('label[data-id="sr-notloaded-default"]')
138141
.waitForElementVisible('label[data-id="sr-notloaded-ethers6"]', 60000)
142+
.waitForElementVisible('label[data-id="sr-loaded-default"]', 60000)
139143
},
140-
'switch to default workspace that should be on ethers6': function (browser: NightwatchBrowser) {
144+
'switch to default workspace that should be on ethers6 #group1': function (browser: NightwatchBrowser) {
141145
browser
142146
.switchWorkspace('default_workspace')
143147
.waitForElementVisible({

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ module.exports = {
131131
.click('*[data-id="testTabCheckAllTests"]')
132132
.clickElementAtPosition('.singleTestLabel', 1)
133133
.scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]')
134-
.waitForElementContainsText('*[data-id="testTabSolidityUnitTestsOutput"]', 'contract deployment failed: revert', 60000)
134+
.waitForElementContainsText('*[data-id="testTabSolidityUnitTestsOutput"]', 'contract deployment failed: revert', 120000)
135135
},
136136

137137
'Should fail when parameters are passed to method in test contract #group3': function (browser: NightwatchBrowser) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ module.exports = {
214214
.pause(1000)
215215
.waitForElementContainsText('*[data-id="terminalJournal"]', '1', 60000)
216216
.waitForElementContainsText('*[data-id="terminalJournal"]', 'true')
217-
.executeScriptInTerminal('remix.execute(\'scripts/test_filtering_event.ts\')', 60000) // re-emit the event
217+
.executeScriptInTerminal('remix.execute(\'scripts/test_filtering_event.ts\')') // re-emit the event
218218
.waitForElementContainsText('*[data-id="terminalJournal"]', '2', 60000)
219219
.waitForElementContainsText('*[data-id="terminalJournal"]', 'false')
220220
})

0 commit comments

Comments
 (0)