From dd67c07fbc629b9de3657352bce5723ab559b6e5 Mon Sep 17 00:00:00 2001 From: lianahus Date: Thu, 7 Sep 2023 10:38:06 +0200 Subject: [PATCH] e2e --- .../src/tests/solidityUnittests.test.ts | 12 ++++++------ .../src/lib/solidity-unit-testing.tsx | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts b/apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts index 18295838cd..fc3253614d 100644 --- a/apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts +++ b/apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts @@ -238,8 +238,8 @@ module.exports = { }) .addFile('tests/hhLogs_test.sol', sources[0]['tests/hhLogs_test.sol']) .clickLaunchIcon('solidityUnitTesting') - .waitForElementVisible('*[id="singleTesttests/Ballot_test.sol"]', 60000) - .click('*[id="singleTesttests/Ballot_test.sol"]') + .waitForElementVisible('*[id="idsingleTesttests/Ballot_test.sol"]', 60000) + .click('*[id="idsingleTesttests/Ballot_test.sol"]') .click('#runTestsTabRunAction') .pause(2000) .waitForElementVisible('*[data-id="testTabSolidityUnitTestsOutputheader"]', 120000) @@ -261,8 +261,8 @@ module.exports = { .waitForElementPresent('*[data-id="verticalIconsKindfilePanel"]') .addFile('tests/ballotFailedLog_test.sol', sources[0]['tests/ballotFailedLog_test.sol']) .clickLaunchIcon('solidityUnitTesting') - .waitForElementVisible('*[id="singleTesttests/Ballot_test.sol"]', 60000) - .click('*[id="singleTesttests/Ballot_test.sol"]') + .waitForElementVisible('*[id="idsingleTesttests/Ballot_test.sol"]', 60000) + .click('*[id="idsingleTesttests/Ballot_test.sol"]') .click('#runTestsTabRunAction') .pause(2000) .waitForElementVisible('*[data-id="testTabSolidityUnitTestsOutputheader"]', 120000) @@ -278,8 +278,8 @@ module.exports = { .waitForElementPresent('*[data-id="verticalIconsKindfilePanel"]') .addFile('tests/ballotFailedDebug_test.sol', sources[0]['tests/ballotFailedDebug_test.sol']) .clickLaunchIcon('solidityUnitTesting') - .waitForElementVisible('*[id="singleTesttests/Ballot_test.sol"]', 60000) - .click('*[id="singleTesttests/Ballot_test.sol"]') + .waitForElementVisible('*[id="idsingleTesttests/Ballot_test.sol"]', 60000) + .click('*[id="idsingleTesttests/Ballot_test.sol"]') .click('#runTestsTabRunAction') .waitForElementVisible('*[data-id="testTabSolidityUnitTestsOutputheader"]', 120000) .waitForElementContainsText('#solidityUnittestsOutput', 'tests/ballotFailedDebug_test.sol', 60000) diff --git a/libs/remix-ui/solidity-unit-testing/src/lib/solidity-unit-testing.tsx b/libs/remix-ui/solidity-unit-testing/src/lib/solidity-unit-testing.tsx index 2c61f1fc8a..18da0366ba 100644 --- a/libs/remix-ui/solidity-unit-testing/src/lib/solidity-unit-testing.tsx +++ b/libs/remix-ui/solidity-unit-testing/src/lib/solidity-unit-testing.tsx @@ -872,6 +872,7 @@ export const SolidityUnitTesting = (props: Record) => { />