From eeb1183a777531a2e9ebbf8c38f0c90f5aaa6708 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Fri, 3 Nov 2023 11:27:58 +0100 Subject: [PATCH] Ensure circuit is compiled even with warnings --- apps/remix-ide-e2e/src/tests/circom.test.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide-e2e/src/tests/circom.test.ts b/apps/remix-ide-e2e/src/tests/circom.test.ts index e748e2e48d..60e3cebcec 100644 --- a/apps/remix-ide-e2e/src/tests/circom.test.ts +++ b/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)')