@@ -28,11 +28,11 @@ const tests = {
28
28
. click ( 'button[data-id="script-config"]' )
29
29
. waitForElementVisible ( '[data-id="sr-loaded-default"]' )
30
30
. waitForElementVisible ( '[data-id="dependency-ethers-^5"]' )
31
- . waitForElementVisible ( '[data-id="sr-load -ethers6"]' )
31
+ . waitForElementVisible ( '[data-id="sr-notloaded -ethers6"]' )
32
32
} ,
33
33
'Should load script runner ethers6' : function ( browser : NightwatchBrowser ) {
34
34
browser
35
- . click ( '[data-id="sr-load -ethers6"]' )
35
+ . click ( '[data-id="sr-notloaded -ethers6"]' )
36
36
. waitForElementVisible ( '[data-id="sr-loaded-ethers6"]' )
37
37
. waitForElementPresent ( '[data-id="dependency-ethers-^6"]' )
38
38
} ,
@@ -74,6 +74,7 @@ const tests = {
74
74
. waitForElementPresent ( '*[data-id="create-semaphore"]' )
75
75
. scrollAndClick ( '*[data-id="create-semaphore"]' )
76
76
. modalFooterOKClick ( 'TemplatesSelection' )
77
+ . waitForElementVisible ( '*[data-id="treeViewLitreeViewItemcircuits/semaphore.circom"]' )
77
78
. waitForElementVisible ( {
78
79
locateStrategy : 'xpath' ,
79
80
selector : "//li[@data-id='UIScriptRunner' and @role='tab']"
@@ -82,9 +83,37 @@ const tests = {
82
83
locateStrategy : 'xpath' ,
83
84
selector : "//li[@data-id='UIScriptRunner' and @role='tab']"
84
85
} )
85
- . waitForElementVisible ( '[data-id="sr-load -default"]' )
86
+ . waitForElementVisible ( '[data-id="sr-loaded -default"]' )
86
87
. waitForElementVisible ( '[data-id="dependency-ethers-^5"]' )
87
- . waitForElementVisible ( '[data-id="sr-load-zksyncv6"]' )
88
+ . waitForElementVisible ( '[data-id="sr-notloaded-zksyncv6"]' )
89
+ } ,
90
+ 'open template that sets a config' : function ( browser : NightwatchBrowser ) {
91
+ browser
92
+ . waitForElementVisible ( '*[data-id="workspacesMenuDropdown"]' )
93
+ . click ( '*[data-id="workspacesMenuDropdown"]' )
94
+ . click ( '*[data-id="workspacecreate"]' )
95
+ . waitForElementPresent ( '*[data-id="create-introToEIP7702"]' )
96
+ . scrollAndClick ( '*[data-id="create-introToEIP7702"]' )
97
+ . modalFooterOKClick ( 'TemplatesSelection' )
98
+ . waitForElementVisible ( '*[data-id="treeViewLitreeViewItemcontracts/Example7702.sol"]' )
99
+ . waitForElementVisible ( {
100
+ locateStrategy : 'xpath' ,
101
+ selector : "//li[@data-id='UIScriptRunner' and @role='tab']"
102
+ } )
103
+ . click ( {
104
+ locateStrategy : 'xpath' ,
105
+ selector : "//li[@data-id='UIScriptRunner' and @role='tab']"
106
+ } )
107
+ . waitForElementVisible ( '[data-id="sr-notloaded-default"]' )
108
+ . waitForElementVisible ( '[data-id="sr-loaded-ethers6"]' )
109
+ } ,
110
+ 'reset to default after template' : function ( browser : NightwatchBrowser ) {
111
+ browser
112
+ . refreshPage ( )
113
+ . waitForElementVisible ( 'button[data-id="script-config"]' )
114
+ . click ( 'button[data-id="script-config"]' )
115
+ . waitForElementVisible ( '[data-id="sr-notloaded-default"]' )
116
+ . waitForElementVisible ( '[data-id="sr-loaded-ethers6"]' )
88
117
} ,
89
118
'switch to default workspace that should be on ethers6' : function ( browser : NightwatchBrowser ) {
90
119
browser
@@ -99,7 +128,9 @@ const tests = {
99
128
} )
100
129
. waitForElementVisible ( '[data-id="sr-loaded-ethers6"]' )
101
130
. waitForElementPresent ( '[data-id="dependency-ethers-^6"]' )
102
- }
131
+ } ,
132
+
133
+
103
134
}
104
135
105
136
module . exports = tests
0 commit comments