@@ -7,7 +7,7 @@ const tests = {
7
7
before : function ( browser : NightwatchBrowser , done : VoidFunction ) {
8
8
init ( browser , done , 'http://127.0.0.1:8080' , false )
9
9
} ,
10
- 'Should activate plugins' : function ( browser : NightwatchBrowser ) {
10
+ 'Should activate plugins #group1 ' : function ( browser : NightwatchBrowser ) {
11
11
browser
12
12
. waitForElementVisible ( '*[data-id="remixIdeSidePanel"]' )
13
13
. waitForElementVisible ( '*[plugin="pluginManager"]' )
@@ -16,7 +16,7 @@ const tests = {
16
16
. click ( '*[data-id="pluginManagerComponentPluginManager"]' )
17
17
. scrollAndClick ( '*[data-id="pluginManagerComponentActivateButtonUIScriptRunner"]' )
18
18
} ,
19
- 'Should load default script runner' : function ( browser : NightwatchBrowser ) {
19
+ 'Should load default script runner #group1 ' : function ( browser : NightwatchBrowser ) {
20
20
browser
21
21
. waitForElementVisible ( '*[data-id="verticalIconsKindfilePanel"]' )
22
22
. click ( '*[data-id="verticalIconsKindfilePanel"]' )
@@ -33,29 +33,29 @@ const tests = {
33
33
. waitForElementVisible ( '[data-id="dependency-ethers-^5"]' )
34
34
. waitForElementVisible ( '[data-id="sr-notloaded-ethers6"]' )
35
35
} ,
36
- 'Should load script runner ethers6' : function ( browser : NightwatchBrowser ) {
36
+ 'Should load script runner ethers6 #group1 ' : function ( browser : NightwatchBrowser ) {
37
37
browser
38
38
. click ( '[data-id="sr-notloaded-ethers6"]' )
39
- . waitForElementVisible ( 'label[data-id="sr-loaded-ethers6"]' , 60000 )
39
+ . waitForElementVisible ( 'label[data-id="sr-loaded-ethers6"]' , 120000 )
40
40
. waitForElementPresent ( '[data-id="dependency-ethers-^6"]' , 60000 )
41
41
} ,
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 ) {
43
43
browser
44
44
. frameParent ( )
45
45
// .clickLaunchIcon('filePanel')
46
46
. waitForElementVisible ( '[data-path=".remix"]' )
47
47
. waitForElementVisible ( '[data-id="treeViewDivDraggableItem.remix/script.config.json"]' )
48
48
. openFile ( '.remix/script.config.json' )
49
49
} ,
50
- 'check config file content' : function ( browser : NightwatchBrowser ) {
50
+ 'check config file content #group1 ' : function ( browser : NightwatchBrowser ) {
51
51
browser
52
52
. getEditorValue ( ( content ) => {
53
53
console . log ( JSON . parse ( content ) )
54
54
const parsed = JSON . parse ( content )
55
55
browser . assert . ok ( parsed . defaultConfig === 'ethers6' , 'config file content is correct' )
56
56
} )
57
57
} ,
58
- 'execute ethers6 script' : function ( browser : NightwatchBrowser ) {
58
+ 'execute ethers6 script #group1 ' : function ( browser : NightwatchBrowser ) {
59
59
browser
60
60
. click ( '*[data-id="treeViewUltreeViewMenu"]' ) // make sure we create the file at the root folder
61
61
. addFile ( 'deployWithEthersJs.js' , { content : deployWithEthersJs } )
@@ -67,7 +67,7 @@ const tests = {
67
67
. executeScriptInTerminal ( 'remix.execute(\'deployWithEthersJs.js\')' )
68
68
. waitForElementContainsText ( '*[data-id="terminalJournal"]' , '0xd9145CCE52D386f254917e481eB44e9943F39138' , 60000 )
69
69
} ,
70
- 'switch workspace it should be default again' : function ( browser : NightwatchBrowser ) {
70
+ 'switch workspace it should be default again #group1 ' : function ( browser : NightwatchBrowser ) {
71
71
browser
72
72
. clickLaunchIcon ( 'filePanel' )
73
73
. pause ( 2000 )
@@ -90,7 +90,7 @@ const tests = {
90
90
. waitForElementVisible ( '[data-id="dependency-ethers-^5"]' )
91
91
. waitForElementVisible ( '[data-id="sr-notloaded-zksyncv6"]' )
92
92
} ,
93
- 'open template that sets a config' : function ( browser : NightwatchBrowser ) {
93
+ 'open template that sets a config #group1 ' : function ( browser : NightwatchBrowser ) {
94
94
browser
95
95
. waitForElementVisible ( '*[data-id="workspacesSelect"]' )
96
96
. click ( '*[data-id="workspacesSelect"]' )
@@ -108,10 +108,11 @@ const tests = {
108
108
locateStrategy : 'xpath' ,
109
109
selector : "//li[@data-id='UIScriptRunner' and @role='tab']"
110
110
} )
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 )
113
114
} ,
114
- 'reset to default after template' : function ( browser : NightwatchBrowser ) {
115
+ 'reset to default after template #group1 ' : function ( browser : NightwatchBrowser ) {
115
116
browser
116
117
. refreshPage ( )
117
118
. waitForElementVisible ( '*[data-id="treeViewLitreeViewItemscripts"' , 60000 )
@@ -134,10 +135,13 @@ const tests = {
134
135
. click ( '*[data-id="run-script-dropdown-trigger"]' )
135
136
. pause ( 1000 )
136
137
. 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"]' )
138
141
. waitForElementVisible ( 'label[data-id="sr-notloaded-ethers6"]' , 60000 )
142
+ . waitForElementVisible ( 'label[data-id="sr-loaded-default"]' , 60000 )
139
143
} ,
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 ) {
141
145
browser
142
146
. switchWorkspace ( 'default_workspace' )
143
147
. waitForElementVisible ( {
0 commit comments