Changed id to data-attr*

pull/5370/head
ioedeveloper 5 years ago
parent 9b3fbc58a2
commit 93f7bf0944
  1. 2
      src/app/files/file-explorer.js
  2. 6
      test-browser/tests/fileExplorer.js

@ -627,7 +627,7 @@ fileExplorer.prototype.renderMenuItems = function () {
class="${icon} ${css.newFile}"
title="${title}"
>
<input id="fileUpload" type="file" onchange=${(event) => {
<input id="fileUpload" data-id="fileExplorerFileUpload" type="file" onchange=${(event) => {
event.stopPropagation()
this.uploadFile(event)
}} multiple />

@ -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"]')

Loading…
Cancel
Save