diff --git a/apps/remix-ide/src/app/tabs/test-tab.js b/apps/remix-ide/src/app/tabs/test-tab.js index 801f69e120..fdeb287c0b 100644 --- a/apps/remix-ide/src/app/tabs/test-tab.js +++ b/apps/remix-ide/src/app/tabs/test-tab.js @@ -626,9 +626,7 @@ module.exports = class TestTab extends ViewPlugin { style="background-image: var(--primary);" onkeyup=${(e) => this.handleTestDirInput(e)} onchange=${(e) => { - console.log("onchange") - if (!this.createTestFolder.disabled) return // this.handleCreateFolder() - else { + if (this.createTestFolder.disabled) { this.inputPath.value = this.trimTestDirInput(this.inputPath.value) if (this.testTabLogic.pathExists(this.inputPath.value)) { this.inputPath.value = this.trimTestDirInput(this.inputPath.value) diff --git a/apps/remix-ide/src/app/tabs/testTab/testTab.js b/apps/remix-ide/src/app/tabs/testTab/testTab.js index 4d9a1a19d7..1cfdff91be 100644 --- a/apps/remix-ide/src/app/tabs/testTab/testTab.js +++ b/apps/remix-ide/src/app/tabs/testTab/testTab.js @@ -21,7 +21,7 @@ class TestTabLogic { fileProvider.exists(path, (e, res) => { if (!res) fileProvider.createDir(path) }) } - pathExists(path) { + pathExists (path) { // Checking to ignore the value which contains only whitespaces if (!path || !(/\S/.test(path))) return const fileProvider = this.fileManager.fileProviderOf(path.split('/')[0])