Debug rename folder

pull/1/head
ioedeveloper 5 years ago
parent c74697de39
commit fa111cc027
  1. 2
      src/app/files/fileManager.js
  2. 18
      test-browser/tests/fileExplorer.js

@ -282,7 +282,7 @@ class FileManager extends Plugin {
this.editor.open(file, content) this.editor.open(file, content)
} }
// TODO: Only keep `this.emit` (issue#2210) // TODO: Only keep `this.emit` (issue#2210)
this.emit('currentFileChanged', file) // this.emit('currentFileChanged', file)
this.events.emit('currentFileChanged', file) this.events.emit('currentFileChanged', file)
} }
}) })

@ -23,7 +23,7 @@ module.exports = {
browser browser
.moveToElement('*[data-id="treeViewLibrowser/1_Storage.sol"]', 5, 5) .moveToElement('*[data-id="treeViewLibrowser/1_Storage.sol"]', 5, 5)
.mouseButtonClick('right') .mouseButtonClick('right')
.click('#menuitemdelete') .click('*[id="menuitemdelete"]')
.waitForElementVisible('*[data-id="modalDialogContainer"]') .waitForElementVisible('*[data-id="modalDialogContainer"]')
.modalFooterOKClick() .modalFooterOKClick()
.waitForElementNotPresent('*[data-id="treeViewLibrowser/1_Storage.sol"') .waitForElementNotPresent('*[data-id="treeViewLibrowser/1_Storage.sol"')
@ -54,8 +54,24 @@ module.exports = {
.waitForElementVisible('*[data-id="treeViewLibrowser/Browser_Tests/1_Test.sol"]') .waitForElementVisible('*[data-id="treeViewLibrowser/Browser_Tests/1_Test.sol"]')
}, },
'Should rename Browser_Tests folder to Browser_E2E_Tests': function (browser) {
browser
.waitForElementVisible('*[data-id="treeViewLibrowser/Browser_Tests"]')
.moveToElement('*[data-id="treeViewLibrowser/Browser_Tests"]', 5, 5)
.mouseButtonClick('right')
.click('*[id="menuitemrename"]')
.keys('Browser_E2E_Tests')
.keys(browser.Keys.ENTER)
.pause(100000)
.waitForElementVisible('*[data-id="modalDialogContainer"]')
.click('*[data-id="modalDialogContainer"]')
.modalFooterOKClick()
.waitForElementVisible('*[data-id="treeViewLibrowser/Browser_E2E_Tests"]')
},
'Should delete Browser_Tests folder': function (browser) { 'Should delete Browser_Tests folder': function (browser) {
browser browser
.waitForElementVisible('*[data-id="treeViewLibrowser/Browser_Tests"]')
.moveToElement('*[data-id="treeViewLibrowser/Browser_Tests"]', 5, 5) .moveToElement('*[data-id="treeViewLibrowser/Browser_Tests"]', 5, 5)
.mouseButtonClick('right') .mouseButtonClick('right')
.click('*[id="menuitemdelete"]') .click('*[id="menuitemdelete"]')

Loading…
Cancel
Save