diff --git a/src/app/files/file-explorer.js b/src/app/files/file-explorer.js index 65e1418d2e..eb624c01e4 100644 --- a/src/app/files/file-explorer.js +++ b/src/app/files/file-explorer.js @@ -627,7 +627,7 @@ fileExplorer.prototype.renderMenuItems = function () { class="${icon} ${css.newFile}" title="${title}" > - { + { event.stopPropagation() this.uploadFile(event) }} multiple /> diff --git a/test-browser/tests/fileExplorer.js b/test-browser/tests/fileExplorer.js index 3e9c906577..c2e6bca891 100644 --- a/test-browser/tests/fileExplorer.js +++ b/test-browser/tests/fileExplorer.js @@ -102,9 +102,9 @@ module.exports = { 'Should open local filesystem explorer': function (browser) { browser.waitForElementVisible('*[data-id="filePanelFileExplorerTree"]') - .setValue('input#fileUpload', testData.testFile1) - .setValue('input#fileUpload', testData.testFile2) - .setValue('input#fileUpload', testData.testFile3) + .setValue('*[data-id="fileExplorerFileUpload"]', testData.testFile1) + .setValue('*[data-id="fileExplorerFileUpload"]', testData.testFile2) + .setValue('*[data-id="fileExplorerFileUpload"]', testData.testFile3) .waitForElementVisible('*[key="browser/editor.js"]') .waitForElementVisible('*[key="browser/fileExplorer.js"]') .waitForElementVisible('*[key="browser/generalSettings.js"]')