@@ -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 #pr ' : 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 ( {
0 commit comments