|
|
@ -72,18 +72,18 @@ module.exports = { |
|
|
|
.waitForElementPresent('[data-id="treeViewLitreeViewItemcircuits/.bin/simple.wasm"]') |
|
|
|
.waitForElementPresent('[data-id="treeViewLitreeViewItemcircuits/.bin/simple.wasm"]') |
|
|
|
.waitForElementVisible('[data-id="treeViewLitreeViewItemcircuits/.bin/simple.wasm"]') |
|
|
|
.waitForElementVisible('[data-id="treeViewLitreeViewItemcircuits/.bin/simple.wasm"]') |
|
|
|
}, |
|
|
|
}, |
|
|
|
'Should generate R1CS for a simple circuit #group2': function (browser: NightwatchBrowser) { |
|
|
|
// 'Should run setup and export for a simple circuit using the GUI #group2': function (browser: NightwatchBrowser) {
|
|
|
|
browser |
|
|
|
// browser
|
|
|
|
.clickLaunchIcon('circuit-compiler') |
|
|
|
// .clickLaunchIcon('circuit-compiler')
|
|
|
|
.frame(0) |
|
|
|
// .frame(0)
|
|
|
|
.waitForElementPresent('button[data-id="generate_r1cs_btn"]') |
|
|
|
// .waitForElementPresent('button[data-id="generate_r1cs_btn"]')
|
|
|
|
.waitForElementVisible('button[data-id="generate_r1cs_btn"]') |
|
|
|
// .waitForElementVisible('button[data-id="generate_r1cs_btn"]')
|
|
|
|
.click('button[data-id="generate_r1cs_btn"]') |
|
|
|
// .click('button[data-id="generate_r1cs_btn"]')
|
|
|
|
.frameParent() |
|
|
|
// .frameParent()
|
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
// .clickLaunchIcon('filePanel')
|
|
|
|
.waitForElementPresent('[data-id="treeViewLitreeViewItemcircuits/.bin/simple.r1cs"]') |
|
|
|
// .waitForElementPresent('[data-id="treeViewLitreeViewItemcircuits/.bin/simple.r1cs"]')
|
|
|
|
.waitForElementVisible('[data-id="treeViewLitreeViewItemcircuits/.bin/simple.r1cs"]') |
|
|
|
// .waitForElementVisible('[data-id="treeViewLitreeViewItemcircuits/.bin/simple.r1cs"]')
|
|
|
|
}, |
|
|
|
// },
|
|
|
|
'Should compile a simple circuit using CTRL + S from the editor #group3': function (browser: NightwatchBrowser) { |
|
|
|
'Should compile a simple circuit using CTRL + S from the editor #group3': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.click('[data-id="treeViewLitreeViewItemcircuits/simple.circom"]') |
|
|
|
.click('[data-id="treeViewLitreeViewItemcircuits/simple.circom"]') |
|
|
@ -214,10 +214,7 @@ module.exports = { |
|
|
|
.waitForElementPresent('[data-id="verticalIconsKindcircuit-compiler"]') |
|
|
|
.waitForElementPresent('[data-id="verticalIconsKindcircuit-compiler"]') |
|
|
|
.waitForElementVisible('[data-id="verticalIconsKindcircuit-compiler"]') |
|
|
|
.waitForElementVisible('[data-id="verticalIconsKindcircuit-compiler"]') |
|
|
|
.click('[data-id="play-editor"]') |
|
|
|
.click('[data-id="play-editor"]') |
|
|
|
.pause(2000) |
|
|
|
.pause(7000) |
|
|
|
.journalLastChildIncludes('Generating R1CS for circuits/calculate_hash.circom') |
|
|
|
|
|
|
|
.pause(5000) |
|
|
|
|
|
|
|
.journalLastChildIncludes('Everything went okay') |
|
|
|
|
|
|
|
.journalLastChildIncludes('plonk setup') |
|
|
|
.journalLastChildIncludes('plonk setup') |
|
|
|
.pause(10000) |
|
|
|
.pause(10000) |
|
|
|
.journalLastChildIncludes('setup done') |
|
|
|
.journalLastChildIncludes('setup done') |
|
|
|