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
65a30f3a
Unverified
Commit
65a30f3a
authored
Apr 22, 2020
by
yann300
Committed by
GitHub
Apr 22, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2762 from ethereum/local-fileexplorer-e2e
E2E Tests: Upload Local File to File Explorer
parents
1e03b6d1
d36b7976
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
file-explorer.js
src/app/files/file-explorer.js
+1
-1
fileExplorer.js
test-browser/tests/fileExplorer.js
+17
-0
No files found.
src/app/files/file-explorer.js
View file @
65a30f3a
...
...
@@ -627,7 +627,7 @@ fileExplorer.prototype.renderMenuItems = function () {
class="
${
icon
}
${
css
.
newFile
}
"
title="
${
title
}
"
>
<input type="file" onchange=
${(
event
)
=>
{
<input
id="fileUpload" data-id="fileExplorerFileUpload"
type="file" onchange=
${(
event
)
=>
{
event
.
stopPropagation
()
this
.
uploadFile
(
event
)
}}
multiple
/>
...
...
test-browser/tests/fileExplorer.js
View file @
65a30f3a
'use strict'
const
init
=
require
(
'../helpers/init'
)
const
sauce
=
require
(
'./sauce'
)
const
path
=
require
(
'path'
)
const
testData
=
{
testFile1
:
path
.
resolve
(
__dirname
+
'/editor.js'
),
// eslint-disable-line
testFile2
:
path
.
resolve
(
__dirname
+
'/fileExplorer.js'
),
// eslint-disable-line
testFile3
:
path
.
resolve
(
__dirname
+
'/generalSettings.js'
)
// eslint-disable-line
}
module
.
exports
=
{
...
...
@@ -88,9 +94,20 @@ module.exports = {
if
(
runtimeBrowser
===
'chrome'
)
{
browser
.
switchBrowserTab
(
1
)
.
assert
.
urlContains
(
'https://gist.github.com'
)
.
switchBrowserTab
(
0
)
}
done
()
})
},
'Should open local filesystem explorer'
:
function
(
browser
)
{
browser
.
waitForElementVisible
(
'*[data-id="filePanelFileExplorerTree"]'
)
.
setValue
(
'*[data-id="fileExplorerFileUpload"]'
,
testData
.
testFile1
)
.
setValue
(
'*[data-id="fileExplorerFileUpload"]'
,
testData
.
testFile2
)
.
setValue
(
'*[data-id="fileExplorerFileUpload"]'
,
testData
.
testFile3
)
.
waitForElementVisible
(
'*[key="browser/editor.js"]'
)
.
waitForElementVisible
(
'*[key="browser/fileExplorer.js"]'
)
.
waitForElementVisible
(
'*[key="browser/generalSettings.js"]'
)
.
end
()
},
...
...
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