|
|
|
@ -38,8 +38,8 @@ module.exports = { |
|
|
|
|
.waitForElementPresent('[data-id="verticalIconsKindcircuit-compiler"]') |
|
|
|
|
.waitForElementVisible('[data-id="verticalIconsKindcircuit-compiler"]') |
|
|
|
|
.click('[data-id="play-editor"]') |
|
|
|
|
.waitForElementPresent('[data-id="treeViewLitreeViewItemcircuits/.bin/simple.wasm"]') |
|
|
|
|
.waitForElementVisible('[data-id="treeViewLitreeViewItemcircuits/.bin/simple.wasm"]') |
|
|
|
|
.waitForElementPresent('[data-id="treeViewLitreeViewItemcircuits/.bin/simple_js/simple.wasm"]') |
|
|
|
|
.waitForElementVisible('[data-id="treeViewLitreeViewItemcircuits/.bin/simple_js/simple.wasm"]') |
|
|
|
|
}, |
|
|
|
|
'Should compute a witness for a simple circuit #group1': function (browser: NightwatchBrowser) { |
|
|
|
|
browser |
|
|
|
@ -70,8 +70,8 @@ module.exports = { |
|
|
|
|
.click('button[data-id="compile_circuit_btn"]') |
|
|
|
|
.frameParent() |
|
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
|
.waitForElementPresent('[data-id="treeViewLitreeViewItemcircuits/.bin/simple.wasm"]') |
|
|
|
|
.waitForElementVisible('[data-id="treeViewLitreeViewItemcircuits/.bin/simple.wasm"]') |
|
|
|
|
.waitForElementPresent('[data-id="treeViewLitreeViewItemcircuits/.bin/simple_js/simple.wasm"]') |
|
|
|
|
.waitForElementVisible('[data-id="treeViewLitreeViewItemcircuits/.bin/simple_js/simple.wasm"]') |
|
|
|
|
}, |
|
|
|
|
'Should run Groth16 setup and export for a simple circuit using the GUI #group2': function (browser: NightwatchBrowser) { |
|
|
|
|
browser |
|
|
|
@ -116,8 +116,8 @@ module.exports = { |
|
|
|
|
|
|
|
|
|
return actions.keyDown(this.Keys.CONTROL).sendKeys('s') |
|
|
|
|
}) |
|
|
|
|
.waitForElementPresent('[data-id="treeViewLitreeViewItemcircuits/.bin/simple.wasm"]') |
|
|
|
|
.waitForElementVisible('[data-id="treeViewLitreeViewItemcircuits/.bin/simple.wasm"]') |
|
|
|
|
.waitForElementPresent('[data-id="treeViewLitreeViewItemcircuits/.bin/simple_js/simple.wasm"]') |
|
|
|
|
.waitForElementVisible('[data-id="treeViewLitreeViewItemcircuits/.bin/simple_js/simple.wasm"]') |
|
|
|
|
}, |
|
|
|
|
'Should display warnings for compiled circuit without pragma version #group4': function (browser: NightwatchBrowser) { |
|
|
|
|
browser |
|
|
|
@ -164,7 +164,7 @@ module.exports = { |
|
|
|
|
.waitForElementNotPresent('[data-id="circuit_feedback"]') |
|
|
|
|
.frameParent() |
|
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
|
.waitForElementPresent('[data-id="treeViewLitreeViewItemcircuits/.bin/simple.wasm"]') |
|
|
|
|
.waitForElementPresent('[data-id="treeViewLitreeViewItemcircuits/.bin/simple_js/simple.wasm"]') |
|
|
|
|
}, |
|
|
|
|
'Should create a new workspace using hash checker template #group5 #group6': function (browser: NightwatchBrowser) { |
|
|
|
|
browser |
|
|
|
|