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
6ddd5f5b
Commit
6ddd5f5b
authored
Sep 28, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed file-explorer tests
parent
fb1e8350
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
removeFile.ts
apps/remix-ide-e2e/src/commands/removeFile.ts
+2
-2
fileExplorer.test.ts
apps/remix-ide-e2e/src/tests/fileExplorer.test.ts
+7
-6
remix-ui-workspace.tsx
libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx
+1
-1
No files found.
apps/remix-ide-e2e/src/commands/removeFile.ts
View file @
6ddd5f5b
...
...
@@ -39,8 +39,8 @@ function removeFile (browser: NightwatchBrowser, path: string, workspace: string
.
pause
(
2000
)
.
perform
(()
=>
{
console
.
log
(
path
,
'to remove'
)
browser
.
waitForElementVisible
(
'
*[data-id="'
+
workspace
+
'ModalDialogContain
er-react"] .modal-ok'
)
.
click
(
'
*[data-id="'
+
workspace
+
'ModalDialogContain
er-react"] .modal-ok'
)
browser
.
waitForElementVisible
(
'
[data-id="fileSystemModalDialogModalFoot
er-react"] .modal-ok'
)
.
click
(
'
[data-id="fileSystemModalDialogModalFoot
er-react"] .modal-ok'
)
.
waitForElementNotPresent
(
'[data-path="'
+
path
+
'"]'
)
done
()
})
...
...
apps/remix-ide-e2e/src/tests/fileExplorer.test.ts
View file @
6ddd5f5b
...
...
@@ -68,9 +68,9 @@ module.exports = {
.
waitForElementVisible
(
'*[data-id="treeViewLitreeViewItemBrowser_E2E_Tests"]'
)
.
rightClick
(
'[data-path="Browser_E2E_Tests"]'
)
.
click
(
'*[id="menuitemdelete"]'
)
.
waitForElementVisible
(
'
*[data-id="default_workspaceModalDialogContainer-react"]
'
,
60000
)
.
waitForElementVisible
(
'
[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok
'
,
60000
)
.
pause
(
2000
)
.
click
(
'
*[data-id="default_workspaceModalDialogContain
er-react"] .modal-ok'
)
.
click
(
'
[data-id="fileSystemModalDialogModalFoot
er-react"] .modal-ok'
)
.
waitForElementNotPresent
(
'*[data-id="treeViewLitreeViewItemBrowser_E2E_Tests"]'
)
},
...
...
@@ -81,13 +81,13 @@ module.exports = {
.
pause
(
10000
)
.
waitForElementVisible
(
'*[data-id="fileExplorerNewFilepublishToGist"]'
)
.
click
(
'*[data-id="fileExplorerNewFilepublishToGist"]'
)
.
waitForElementVisible
(
'
*[data-id="default_workspaceModalDialogContainer-react"]
'
,
60000
)
.
waitForElementVisible
(
'
[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok
'
,
60000
)
.
pause
(
2000
)
.
click
(
'
*[data-id="default_workspaceModalDialogContain
er-react"] .modal-ok'
)
.
click
(
'
[data-id="fileSystemModalDialogModalFoot
er-react"] .modal-ok'
)
.
pause
(
2000
)
.
waitForElementVisible
(
'
*[data-id="default_workspaceModalDialogContainer-react"]
'
,
60000
)
.
waitForElementVisible
(
'
[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok
'
,
60000
)
.
pause
(
2000
)
.
click
(
'
*[data-id="default_workspaceModalDialogContain
er-react"] .modal-ok'
)
.
click
(
'
[data-id="fileSystemModalDialogModalFoot
er-react"] .modal-ok'
)
.
pause
(
2000
)
.
perform
((
done
)
=>
{
if
(
runtimeBrowser
===
'chrome'
)
{
...
...
@@ -101,6 +101,7 @@ module.exports = {
'Should open local filesystem explorer'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
waitForElementVisible
(
'*[data-id="filePanelFileExplorerTree"]'
)
.
click
(
'[data-id="remixUIWorkspaceExplorer"]'
)
.
setValue
(
'*[data-id="fileExplorerFileUpload"]'
,
testData
.
testFile1
)
.
setValue
(
'*[data-id="fileExplorerFileUpload"]'
,
testData
.
testFile2
)
.
setValue
(
'*[data-id="fileExplorerFileUpload"]'
,
testData
.
testFile3
)
...
...
libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx
View file @
6ddd5f5b
...
...
@@ -119,7 +119,7 @@ export function Workspace () {
return
(
<
div
className=
'remixui_container'
>
<
div
className=
'remixui_fileexplorer'
onClick=
{
resetFocus
}
>
<
div
className=
'remixui_fileexplorer'
data
-
id=
"remixUIWorkspaceExplorer"
onClick=
{
resetFocus
}
>
<
div
>
<
header
>
<
div
className=
"mb-2"
>
...
...
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