Commit b5ce812b authored by ioedeveloper's avatar ioedeveloper

Fixed broken writeFile function

parent 0488a4cb
......@@ -136,8 +136,12 @@ class FileManager extends Plugin {
* @returns {void}
*/
writeFile (path, data) {
if (this.exists(path)) {
this._handleIsFile(path, `Cannot write file ${path}`)
this.setFile(path, data)
} else {
this.setFile(path, data)
}
}
/**
......
......@@ -24,7 +24,7 @@ module.exports = function (browser, callback, url, preloadPlugins = true) {
}
function initModules (browser, callback) {
browser.pause(5000)
browser.pause(20000)
.click('#icon-panel div[plugin="pluginManager"]')
.scrollAndClick('#pluginManager article[id="remixPluginManagerListItem_solidity"] button')
.pause(5000)
......
......@@ -18,6 +18,7 @@ module.exports = {
browser.waitForElementVisible('div[data-id="remixIdeSidePanel"]')
.assert.containsText('h6[data-id="sidePanelSwapitTitle"]', 'FILE EXPLORERS')
.waitForElementVisible('div[data-id="filePanelFileExplorerTree"]')
.pause(1000000)
.waitForElementVisible('li[key="browser/4_Ballot_test.sol"]')
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment