Ensure circuit is compiled even with warnings

circuitcompiler2
ioedeveloper 1 year ago
parent c9c3a0c0bd
commit 6c76df1894
  1. 8
      apps/remix-ide-e2e/src/tests/circom.test.ts

@ -104,7 +104,13 @@ module.exports = {
.waitForElementPresent('button[data-id="compile_circuit_btn"]')
.waitForElementVisible('button[data-id="compile_circuit_btn"]')
.click('button[data-id="compile_circuit_btn"]')
.pause(1000)
.frameParent()
.clickLaunchIcon('filePanel')
.waitForElementPresent('[data-id="treeViewLitreeViewItemcircuits/.bin/warning.wasm"]')
.waitForElementVisible('[data-id="treeViewLitreeViewItemcircuits/.bin/warning.wasm"]')
.clickLaunchIcon('circuit-compiler')
.frame(0)
.waitForElementPresent('[data-id="circuit_feedback"]')
.waitForElementVisible('[data-id="circuit_feedback"]')
.assert.hasClass('[data-id="circuit_feedback"]', 'alert-warning')
.waitForElementContainsText('[data-id="circuit_feedback"]', 'File circuits/warning.circom does not include pragma version. Assuming pragma version (2, 1, 5)')

Loading…
Cancel
Save