Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
b5ce812b
Commit
b5ce812b
authored
Apr 20, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed broken writeFile function
parent
0488a4cb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
fileManager.js
src/app/files/fileManager.js
+6
-2
init.js
test-browser/helpers/init.js
+1
-1
defaultLayout.test.js
test-browser/tests/defaultLayout.test.js
+1
-0
No files found.
src/app/files/fileManager.js
View file @
b5ce812b
...
@@ -136,8 +136,12 @@ class FileManager extends Plugin {
...
@@ -136,8 +136,12 @@ class FileManager extends Plugin {
* @returns {void}
* @returns {void}
*/
*/
writeFile
(
path
,
data
)
{
writeFile
(
path
,
data
)
{
this
.
_handleIsFile
(
path
,
`Cannot write file
${
path
}
`
)
if
(
this
.
exists
(
path
))
{
this
.
setFile
(
path
,
data
)
this
.
_handleIsFile
(
path
,
`Cannot write file
${
path
}
`
)
this
.
setFile
(
path
,
data
)
}
else
{
this
.
setFile
(
path
,
data
)
}
}
}
/**
/**
...
...
test-browser/helpers/init.js
View file @
b5ce812b
...
@@ -24,7 +24,7 @@ module.exports = function (browser, callback, url, preloadPlugins = true) {
...
@@ -24,7 +24,7 @@ module.exports = function (browser, callback, url, preloadPlugins = true) {
}
}
function
initModules
(
browser
,
callback
)
{
function
initModules
(
browser
,
callback
)
{
browser
.
pause
(
5
000
)
browser
.
pause
(
20
000
)
.
click
(
'#icon-panel div[plugin="pluginManager"]'
)
.
click
(
'#icon-panel div[plugin="pluginManager"]'
)
.
scrollAndClick
(
'#pluginManager article[id="remixPluginManagerListItem_solidity"] button'
)
.
scrollAndClick
(
'#pluginManager article[id="remixPluginManagerListItem_solidity"] button'
)
.
pause
(
5000
)
.
pause
(
5000
)
...
...
test-browser/tests/defaultLayout.test.js
View file @
b5ce812b
...
@@ -18,6 +18,7 @@ module.exports = {
...
@@ -18,6 +18,7 @@ module.exports = {
browser
.
waitForElementVisible
(
'div[data-id="remixIdeSidePanel"]'
)
browser
.
waitForElementVisible
(
'div[data-id="remixIdeSidePanel"]'
)
.
assert
.
containsText
(
'h6[data-id="sidePanelSwapitTitle"]'
,
'FILE EXPLORERS'
)
.
assert
.
containsText
(
'h6[data-id="sidePanelSwapitTitle"]'
,
'FILE EXPLORERS'
)
.
waitForElementVisible
(
'div[data-id="filePanelFileExplorerTree"]'
)
.
waitForElementVisible
(
'div[data-id="filePanelFileExplorerTree"]'
)
.
pause
(
1000000
)
.
waitForElementVisible
(
'li[key="browser/4_Ballot_test.sol"]'
)
.
waitForElementVisible
(
'li[key="browser/4_Ballot_test.sol"]'
)
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment