diff --git a/src/app/tabs/test-tab.js b/src/app/tabs/test-tab.js index 50242d07bb..68e41672aa 100644 --- a/src/app/tabs/test-tab.js +++ b/src/app/tabs/test-tab.js @@ -486,13 +486,13 @@ module.exports = class TestTab extends ViewPlugin { } updateDirList () { - for (var o of this.uiPathList.querySelectorAll('option')) o.remove() + for (var o of this.uiPathList.querySelectorAll('option')) o.remove() this.uiPathList.appendChild(yo``) if (this.testTabLogic.isRemixDActive()) this.uiPathList.appendChild(yo``) if (!this._view.el) return - options.forEach((path) => this.uiPathList.appendChild(yo``)) - }) - } + this.testTabLogic.dirList(this.inputPath.value).then((options) => { + options.forEach((path) => this.uiPathList.appendChild(yo``)) + }) } render () { @@ -501,18 +501,20 @@ module.exports = class TestTab extends ViewPlugin { this.testsExecutionStopped = yo`` this.testsExecutionStoppedError = yo`` this.uiPathList = yo`` - const availablePaths = yo` -
- { if (e.keyCode === 191) this.updateDirList() }} onchange=${(e) => this.updateCurrentPath(e)}/>` + + const availablePaths = yo` +
+ ${this.inputPath} ${this.uiPathList}
`