diff --git a/src/app/files/file-explorer.js b/src/app/files/file-explorer.js index 68ef0cbb6b..dd11cd5f4f 100644 --- a/src/app/files/file-explorer.js +++ b/src/app/files/file-explorer.js @@ -288,7 +288,7 @@ function fileExplorer (localRegistry, files, menuItems) { tooltip(`failed to remove file ${key}.`) } else { const { type } = fileManager.currentFileProvider() - + console.log('file deleted!') self.updatePath(type) } }, @@ -399,6 +399,8 @@ function fileExplorer (localRegistry, files, menuItems) { fileExplorer.prototype.updatePath = function (path) { this.files.resolveDirectory(path, (error, fileTree) => { + console.log('path: ', path) + console.log('fileTree: ', fileTree) if (error) console.error(error) if (!fileTree) return var newTree = normalize(path, fileTree) diff --git a/test-browser/tests/remixd.test.js b/test-browser/tests/remixd.test.js index f9bb048b72..79142bc39c 100644 --- a/test-browser/tests/remixd.test.js +++ b/test-browser/tests/remixd.test.js @@ -115,6 +115,8 @@ function runTests (browser, testData) { }) .clickLaunchIcon('fileExplorers') .waitForElementVisible('[data-path="localhost/folder1"]') + .click('[data-path="localhost/folder1"]') + .click('[data-path="localhost/folder1"]') // click twice because remixd does not return nested folder details after update .waitForElementVisible('[data-path="localhost/folder1/contract1.sol"]') .waitForElementVisible('[data-path="localhost/folder1/renamed_contract_' + browserName + '.sol"]') // check if renamed file is preset .waitForElementNotPresent('[data-path="localhost/folder1/contract_' + browserName + '.sol"]') // check if renamed (old) file is not present