From d32acf4ff75d0b0ebc58e599c53b883f29677262 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 4 Mar 2021 14:19:45 +0100 Subject: [PATCH] fix e2e tests --- apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts | 2 ++ apps/remix-ide/src/app/tabs/test-tab.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts b/apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts index 8ed2635e1d..284adb9efa 100644 --- a/apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts +++ b/apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts @@ -149,12 +149,14 @@ module.exports = { .addFile('myTests/simple_storage_test.sol', sources[0]['tests/simple_storage_test.sol']) .clickLaunchIcon('solidityUnitTesting') .setValue('*[data-id="uiPathInput"]', 'myTests') + .click('*[data-id="testTabGenerateTestFolder"]') .clickElementAtPosition('.singleTestLabel', 0) .scrollAndClick('*[data-id="testTabRunTestsTabRunAction"]') .waitForElementPresent('*[data-id="testTabSolidityUnitTestsOutputheader"]', 40000) .waitForElementPresent('*[data-id="testTabSolidityUnitTestsOutput"]') .clearValue('*[data-id="uiPathInput"]') .setValue('*[data-id="uiPathInput"]', 'tests') + .click('*[data-id="testTabGenerateTestFolder"]') }, 'Solidity Unittests': function (browser: NightwatchBrowser) { diff --git a/apps/remix-ide/src/app/tabs/test-tab.js b/apps/remix-ide/src/app/tabs/test-tab.js index 36dcbed3a6..a7052c2a1a 100644 --- a/apps/remix-ide/src/app/tabs/test-tab.js +++ b/apps/remix-ide/src/app/tabs/test-tab.js @@ -578,7 +578,8 @@ module.exports = class TestTab extends ViewPlugin { data-id="uiPathInput" name="utPath" style="background-image: var(--primary);" - onkeydown=${(e) => { if (e.keyCode === 191) this.updateDirList() }}/>` + onkeydown=${(e) => { if (e.keyCode === 191) this.updateDirList() }} + onchange=${(e) => this.updateCurrentPath(e)}/>` const createTestFolder = yo`