@@ -13,10 +13,16 @@ module.exports = {
1313 browser
1414 . clickLaunchIcon ( 'filePanel' )
1515 . click ( '*[data-id="workspacesSelect"]' )
16+ . pause ( 2000 )
1617 . click ( '*[data-id="workspacecreate"]' )
17- . waitForElementPresent ( '*[data-id="create-semaphore"]' )
18- . scrollAndClick ( '*[data-id="create-semaphore"]' )
19- . modalFooterOKClick ( 'TemplatesSelection' )
18+ . waitForElementVisible ( '*[data-id="template-explorer-modal-react"]' )
19+ . waitForElementVisible ( '*[data-id="template-explorer-template-container"]' )
20+ . click ( '*[data-id="template-explorer-template-container"]' )
21+ . waitForElementVisible ( '*[data-id="template-explorer-template-container"]' )
22+ . scrollInto ( '*[data-id="template-category-Circom ZKP"]' )
23+ . waitForElementVisible ( '*[data-id="template-card-semaphore-0"]' )
24+ . click ( '*[data-id="template-card-semaphore-0"]' )
25+ . click ( '*[data-id="validate-semaphoreworkspace-button"]' )
2026 . waitForElementVisible ( '*[data-id="treeViewLitreeViewItemcircuits"]' )
2127 . waitForElementVisible ( '*[data-id="treeViewLitreeViewItemcircuits/semaphore.circom"]' )
2228 . waitForElementVisible ( '*[data-id="treeViewLitreeViewItemscripts"]' )
@@ -33,8 +39,8 @@ module.exports = {
3339 'Should compile a simple circuit using editor play button #group1' : function ( browser : NightwatchBrowser ) {
3440 browser
3541 . click ( '[data-id="treeViewLitreeViewItemcircuits/simple.circom"]' )
36- . waitForElementPresent ( '[data-path="Semaphore - 1/ circuits/simple.circom"]' )
37- . waitForElementVisible ( '[data-path="Semaphore - 1/ circuits/simple.circom"]' )
42+ . waitForElementPresent ( '[data-path="circuits/simple.circom"]' )
43+ . waitForElementVisible ( '[data-path="circuits/simple.circom"]' )
3844 . waitForElementPresent ( '[data-id="verticalIconsKindcircuit-compiler"]' )
3945 . waitForElementVisible ( '[data-id="verticalIconsKindcircuit-compiler"]' )
4046 . click ( '[data-id="compile-action"]' )
@@ -65,8 +71,8 @@ module.exports = {
6571 'Should compile a simple circuit using compile button in circom plugin #group2' : function ( browser : NightwatchBrowser ) {
6672 browser
6773 . click ( '[data-id="treeViewLitreeViewItemcircuits/simple.circom"]' )
68- . waitForElementPresent ( '[data-path="Semaphore - 1/ circuits/simple.circom"]' )
69- . waitForElementVisible ( '[data-path="Semaphore - 1/ circuits/simple.circom"]' )
74+ . waitForElementPresent ( '[data-path="circuits/simple.circom"]' )
75+ . waitForElementVisible ( '[data-path="circuits/simple.circom"]' )
7076 . clickLaunchIcon ( 'circuit-compiler' )
7177 . frame ( 0 )
7278 . waitForElementPresent ( 'button[data-id="compile_circuit_btn"]' )
@@ -114,8 +120,8 @@ module.exports = {
114120 'Should compile a simple circuit using CTRL + S from the editor #group3' : function ( browser : NightwatchBrowser ) {
115121 browser
116122 . click ( '[data-id="treeViewLitreeViewItemcircuits/simple.circom"]' )
117- . waitForElementPresent ( '[data-path="Semaphore - 1/ circuits/simple.circom"]' )
118- . waitForElementVisible ( '[data-path="Semaphore - 1/ circuits/simple.circom"]' )
123+ . waitForElementPresent ( '[data-path="circuits/simple.circom"]' )
124+ . waitForElementVisible ( '[data-path="circuits/simple.circom"]' )
119125 . waitForElementPresent ( '[data-id="verticalIconsKindcircuit-compiler"]' )
120126 . waitForElementVisible ( '[data-id="verticalIconsKindcircuit-compiler"]' )
121127 . perform ( function ( ) {
@@ -134,8 +140,8 @@ module.exports = {
134140 'Should display warnings for compiled circuit without pragma version #group4' : function ( browser : NightwatchBrowser ) {
135141 browser
136142 . click ( '[data-id="treeViewLitreeViewItemcircuits/simple.circom"]' )
137- . waitForElementPresent ( '[data-path="Semaphore - 1/ circuits/simple.circom"]' )
138- . waitForElementVisible ( '[data-path="Semaphore - 1/ circuits/simple.circom"]' )
143+ . waitForElementPresent ( '[data-path="circuits/simple.circom"]' )
144+ . waitForElementVisible ( '[data-path="circuits/simple.circom"]' )
139145 . setEditorValue ( warningCircuit )
140146 . clickLaunchIcon ( 'circuit-compiler' )
141147 . frame ( 0 )
@@ -184,9 +190,9 @@ module.exports = {
184190 . clickLaunchIcon ( 'filePanel' )
185191 . click ( '*[data-id="workspacesSelect"]' )
186192 . click ( '*[data-id="workspacecreate"]' )
187- . waitForElementPresent ( '*[data-id="create- hashchecker"]' )
188- . scrollAndClick ( '*[data-id="create- hashchecker"]' )
189- . modalFooterOKClick ( 'TemplatesSelection ')
193+ . waitForElementPresent ( '*[data-id="template-card- hashchecker-1 "]' )
194+ . click ( '*[data-id="template-card- hashchecker-1 "]' )
195+ . click ( '*[data-id="validate-hashcheckerworkspace-button"] ')
190196 . pause ( 100 )
191197 . waitForElementVisible ( '*[data-id="treeViewLitreeViewItemcircuits"]' )
192198 . waitForElementVisible ( '*[data-id="treeViewLitreeViewItemcircuits/calculate_hash.circom"]' )
@@ -204,8 +210,8 @@ module.exports = {
204210 'Should run groth16 trusted setup script for hash checker #group5' : function ( browser : NightwatchBrowser ) {
205211 browser
206212 . click ( '[data-id="treeViewLitreeViewItemscripts/groth16/groth16_trusted_setup.ts"]' )
207- . waitForElementPresent ( '[data-path="Hash Checker - 1/ scripts/groth16/groth16_trusted_setup.ts"]' )
208- . waitForElementVisible ( '[data-path="Hash Checker - 1/ scripts/groth16/groth16_trusted_setup.ts"]' )
213+ . waitForElementPresent ( '[data-path="scripts/groth16/groth16_trusted_setup.ts"]' )
214+ . waitForElementVisible ( '[data-path="scripts/groth16/groth16_trusted_setup.ts"]' )
209215 . waitForElementPresent ( '[data-id="verticalIconsKindcircuit-compiler"]' )
210216 . waitForElementVisible ( '[data-id="verticalIconsKindcircuit-compiler"]' )
211217 . click ( '[data-id="compile-action"]' )
@@ -218,8 +224,8 @@ module.exports = {
218224 'Should run groth16 zkproof script for hash checker #group5' : function ( browser : NightwatchBrowser ) {
219225 browser
220226 . click ( '[data-id="treeViewLitreeViewItemscripts/groth16/groth16_zkproof.ts"]' )
221- . waitForElementPresent ( '[data-path="Hash Checker - 1/ scripts/groth16/groth16_zkproof.ts"]' )
222- . waitForElementVisible ( '[data-path="Hash Checker - 1/ scripts/groth16/groth16_zkproof.ts"]' )
227+ . waitForElementPresent ( '[data-path="scripts/groth16/groth16_zkproof.ts"]' )
228+ . waitForElementVisible ( '[data-path="scripts/groth16/groth16_zkproof.ts"]' )
223229 . waitForElementPresent ( '[data-id="verticalIconsKindcircuit-compiler"]' )
224230 . waitForElementVisible ( '[data-id="verticalIconsKindcircuit-compiler"]' )
225231 . click ( '[data-id="compile-action"]' )
@@ -238,8 +244,8 @@ module.exports = {
238244 'Should run plonk trusted setup script for hash checker #group6' : function ( browser : NightwatchBrowser ) {
239245 browser
240246 . click ( '[data-id="treeViewLitreeViewItemscripts/plonk/plonk_trusted_setup.ts"]' )
241- . waitForElementPresent ( '[data-path="Hash Checker - 1/ scripts/plonk/plonk_trusted_setup.ts"]' )
242- . waitForElementVisible ( '[data-path="Hash Checker - 1/ scripts/plonk/plonk_trusted_setup.ts"]' )
247+ . waitForElementPresent ( '[data-path="scripts/plonk/plonk_trusted_setup.ts"]' )
248+ . waitForElementVisible ( '[data-path="scripts/plonk/plonk_trusted_setup.ts"]' )
243249 . waitForElementPresent ( '[data-id="verticalIconsKindcircuit-compiler"]' )
244250 . waitForElementVisible ( '[data-id="verticalIconsKindcircuit-compiler"]' )
245251 . click ( '[data-id="compile-action"]' )
@@ -252,8 +258,8 @@ module.exports = {
252258 'Should run plonk zkproof script for hash checker #group6' : function ( browser : NightwatchBrowser ) {
253259 browser
254260 . click ( '[data-id="treeViewLitreeViewItemscripts/plonk/plonk_zkproof.ts"]' )
255- . waitForElementPresent ( '[data-path="Hash Checker - 1/ scripts/plonk/plonk_zkproof.ts"]' )
256- . waitForElementVisible ( '[data-path="Hash Checker - 1/ scripts/plonk/plonk_zkproof.ts"]' )
261+ . waitForElementPresent ( '[data-path="scripts/plonk/plonk_zkproof.ts"]' )
262+ . waitForElementVisible ( '[data-path="scripts/plonk/plonk_zkproof.ts"]' )
257263 . waitForElementPresent ( '[data-id="verticalIconsKindcircuit-compiler"]' )
258264 . waitForElementVisible ( '[data-id="verticalIconsKindcircuit-compiler"]' )
259265 . click ( '[data-id="compile-action"]' )
0 commit comments