From ee3fbdb1b65c30836788a34a171434d8d0a3f220 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Mon, 26 Sep 2022 11:59:37 +0100 Subject: [PATCH] fix failing e2e test --- apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts b/apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts index 5dc4dfafaa..a536a5fe6c 100644 --- a/apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts +++ b/apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts @@ -152,9 +152,13 @@ module.exports = { .waitForElementPresent('*[data-id="verticalIconsKindfilePanel"]') .addFile('myTests/simple_storage_test.sol', sources[0]['tests/simple_storage_test.sol']) .clickLaunchIcon('solidityUnitTesting') - .clearValue('*[data-id="uiPathInput"]') - // .setValue('*[data-id="uiPathInput"]', 'myTests') - .updateValue('*[data-id="uiPathInput"]','myTests') + .execute(() => { + const myQuery: any = document.getElementById('utPath') + console.log({ myQuery }) + + myQuery.value = 'myTests' + console.log('reset input') + }) .click('*[data-id="testTabGenerateTestFolder"]') .saveScreenshot('./reports/screenshots/changeCurrentPathg3.png') .clickElementAtPosition('.singleTest', 0, { forceSelectIfUnselected: true })