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
30a7e8fc
Commit
30a7e8fc
authored
May 13, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed failing test
parent
21e644f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
file-explorer.js
src/app/files/file-explorer.js
+3
-1
remixd.test.js
test-browser/tests/remixd.test.js
+2
-0
No files found.
src/app/files/file-explorer.js
View file @
30a7e8fc
...
@@ -288,7 +288,7 @@ function fileExplorer (localRegistry, files, menuItems) {
...
@@ -288,7 +288,7 @@ function fileExplorer (localRegistry, files, menuItems) {
tooltip
(
`failed to remove file
${
key
}
.`
)
tooltip
(
`failed to remove file
${
key
}
.`
)
}
else
{
}
else
{
const
{
type
}
=
fileManager
.
currentFileProvider
()
const
{
type
}
=
fileManager
.
currentFileProvider
()
console
.
log
(
'file deleted!'
)
self
.
updatePath
(
type
)
self
.
updatePath
(
type
)
}
}
},
},
...
@@ -399,6 +399,8 @@ function fileExplorer (localRegistry, files, menuItems) {
...
@@ -399,6 +399,8 @@ function fileExplorer (localRegistry, files, menuItems) {
fileExplorer
.
prototype
.
updatePath
=
function
(
path
)
{
fileExplorer
.
prototype
.
updatePath
=
function
(
path
)
{
this
.
files
.
resolveDirectory
(
path
,
(
error
,
fileTree
)
=>
{
this
.
files
.
resolveDirectory
(
path
,
(
error
,
fileTree
)
=>
{
console
.
log
(
'path: '
,
path
)
console
.
log
(
'fileTree: '
,
fileTree
)
if
(
error
)
console
.
error
(
error
)
if
(
error
)
console
.
error
(
error
)
if
(
!
fileTree
)
return
if
(
!
fileTree
)
return
var
newTree
=
normalize
(
path
,
fileTree
)
var
newTree
=
normalize
(
path
,
fileTree
)
...
...
test-browser/tests/remixd.test.js
View file @
30a7e8fc
...
@@ -115,6 +115,8 @@ function runTests (browser, testData) {
...
@@ -115,6 +115,8 @@ function runTests (browser, testData) {
})
})
.
clickLaunchIcon
(
'fileExplorers'
)
.
clickLaunchIcon
(
'fileExplorers'
)
.
waitForElementVisible
(
'[data-path="localhost/folder1"]'
)
.
waitForElementVisible
(
'[data-path="localhost/folder1"]'
)
.
click
(
'[data-path="localhost/folder1"]'
)
.
click
(
'[data-path="localhost/folder1"]'
)
// click twice because remixd does not return nested folder details after update
.
waitForElementVisible
(
'[data-path="localhost/folder1/contract1.sol"]'
)
.
waitForElementVisible
(
'[data-path="localhost/folder1/contract1.sol"]'
)
.
waitForElementVisible
(
'[data-path="localhost/folder1/renamed_contract_'
+
browserName
+
'.sol"]'
)
// check if renamed file is preset
.
waitForElementVisible
(
'[data-path="localhost/folder1/renamed_contract_'
+
browserName
+
'.sol"]'
)
// check if renamed file is preset
.
waitForElementNotPresent
(
'[data-path="localhost/folder1/contract_'
+
browserName
+
'.sol"]'
)
// check if renamed (old) file is not present
.
waitForElementNotPresent
(
'[data-path="localhost/folder1/contract_'
+
browserName
+
'.sol"]'
)
// check if renamed (old) file is not present
...
...
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