|
|
@ -72,18 +72,39 @@ 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 run setup and export for a simple circuit using the GUI #group2': function (browser: NightwatchBrowser) {
|
|
|
|
'Should run Groth16 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"]')
|
|
|
|
.waitForElementVisible('[data-id="setup_exports_toggler"]') |
|
|
|
// .waitForElementVisible('button[data-id="generate_r1cs_btn"]')
|
|
|
|
.waitForElementPresent('[data-id="groth16ProvingScheme"]') |
|
|
|
// .click('button[data-id="generate_r1cs_btn"]')
|
|
|
|
.click('[data-id="groth16ProvingScheme"]') |
|
|
|
// .frameParent()
|
|
|
|
.waitForElementVisible('[data-id="circuitPtauSelect"]') |
|
|
|
// .clickLaunchIcon('filePanel')
|
|
|
|
.click('[data-id="circuitPtauSelect"]') |
|
|
|
// .waitForElementPresent('[data-id="treeViewLitreeViewItemcircuits/.bin/simple.r1cs"]')
|
|
|
|
.waitForElementVisible('[data-id="dropdown-item-final_8.ptau"]') |
|
|
|
// .waitForElementVisible('[data-id="treeViewLitreeViewItemcircuits/.bin/simple.r1cs"]')
|
|
|
|
.click('[data-id="dropdown-item-final_8.ptau"]') |
|
|
|
// },
|
|
|
|
.click('[data-id="runSetupBtn"]') |
|
|
|
|
|
|
|
.waitForElementVisible('[data-id="setup_exports_toggler"] .fa-check-circle') |
|
|
|
|
|
|
|
.frameParent() |
|
|
|
|
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcircuits/groth16/zk/keys/verification_key.json"]') |
|
|
|
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcircuits/groth16/zk/keys/zkey_final.txt"]') |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
'Should run Plonk setup and export for a simple circuit using the GUI #group2': function (browser: NightwatchBrowser) { |
|
|
|
|
|
|
|
browser |
|
|
|
|
|
|
|
.clickLaunchIcon('circuit-compiler') |
|
|
|
|
|
|
|
.frame(0) |
|
|
|
|
|
|
|
.waitForElementVisible('[data-id="setup_exports_toggler"]') |
|
|
|
|
|
|
|
.click('[data-id="setup_exports_toggler"]') |
|
|
|
|
|
|
|
.waitForElementPresent('[data-id="plonkProvingScheme"]') |
|
|
|
|
|
|
|
.click('[data-id="plonkProvingScheme"]') |
|
|
|
|
|
|
|
.click('[data-id="runSetupBtn"]') |
|
|
|
|
|
|
|
.waitForElementVisible('[data-id="setup_exports_toggler"] .fa-check-circle') |
|
|
|
|
|
|
|
.frameParent() |
|
|
|
|
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcircuits/plonk/zk/keys/verification_key.json"]') |
|
|
|
|
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcircuits/plonk/zk/keys/zkey_final.txt"]') |
|
|
|
|
|
|
|
}, |
|
|
|
'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"]') |
|
|
|