From 55d68f647d2f2ef5573ea6d3caf9bd7c59627fde Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Thu, 30 Sep 2021 01:53:57 +0100 Subject: [PATCH] Fix failing firefox test for solidity unit test --- apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts b/apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts index 248620d3c8..2d3b876225 100644 --- a/apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts +++ b/apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts @@ -194,8 +194,18 @@ module.exports = { }, 'Solidity Unit tests with hardhat console log': function (browser: NightwatchBrowser) { + const runtimeBrowser = browser.options.desiredCapabilities.browserName + browser .waitForElementPresent('*[data-id="verticalIconsKindfilePanel"]') + .perform((done) => { + if (runtimeBrowser !== 'chrome') { + browser.clickLaunchIcon('filePanel') + .waitForElementVisible('[data-id="treeViewLitreeViewItemtests"]') + .click('[data-id="treeViewLitreeViewItemtests"]') + } + done() + }) .addFile('tests/hhLogs_test.sol', sources[0]['tests/hhLogs_test.sol']) .clickLaunchIcon('solidityUnitTesting') .waitForElementVisible('*[id="singleTesttests/4_Ballot_test.sol"]', 60000)