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
4fb84532
Unverified
Commit
4fb84532
authored
Sep 09, 2019
by
yann300
Committed by
GitHub
Sep 09, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2313 from ethereum/LianaHus-patch-7
fixes sort of plugin list
parents
b97b6ae2
593b5f9e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
15 deletions
+27
-15
plugin-manager-component.js
src/app/components/plugin-manager-component.js
+2
-2
scrollAndClick.js
test-browser/commands/scrollAndClick.js
+15
-0
scrollInto.js
test-browser/commands/scrollInto.js
+1
-1
init.js
test-browser/helpers/init.js
+7
-10
remixd.js
test-browser/tests/remixd.js
+2
-2
No files found.
src/app/components/plugin-manager-component.js
View file @
4fb84532
...
...
@@ -145,8 +145,8 @@ class PluginManagerComponent extends ViewPlugin {
const
isNotRequired
=
({
profile
})
=>
!
this
.
appManager
.
isRequired
(
profile
.
name
)
const
isNotHome
=
({
profile
})
=>
profile
.
name
!==
'home'
const
sortByName
=
(
a
,
b
)
=>
{
const
nameA
=
a
.
name
.
toUpperCase
()
const
nameB
=
b
.
name
.
toUpperCase
()
const
nameA
=
((
a
.
profile
.
displayName
)
?
a
.
profile
.
displayName
:
a
.
profile
.
name
)
.
toUpperCase
()
const
nameB
=
((
b
.
profile
.
displayName
)
?
b
.
profile
.
displayName
:
b
.
profile
.
name
)
.
toUpperCase
()
return
(
nameA
<
nameB
)
?
-
1
:
(
nameA
>
nameB
)
?
1
:
0
}
...
...
test-browser/commands/scrollAndClick.js
0 → 100644
View file @
4fb84532
const
EventEmitter
=
require
(
'events'
)
class
scrollAndClick
extends
EventEmitter
{
command
(
target
)
{
this
.
api
.
scrollInto
(
target
)
.
click
(
target
)
.
perform
(()
=>
{
this
.
emit
(
'complete'
)
})
return
this
}
}
module
.
exports
=
scrollAndClick
test-browser/commands/scrollInto.js
View file @
4fb84532
...
...
@@ -14,7 +14,7 @@ class ScrollInto extends EventEmitter {
function
_scrollInto
(
browser
,
target
,
cb
)
{
browser
.
execute
(
function
(
target
)
{
document
.
querySelector
(
target
).
scrollIntoView
()
document
.
querySelector
(
target
).
scrollIntoView
(
({
block
:
'center'
})
)
},
[
target
],
function
()
{
cb
()
})
...
...
test-browser/helpers/init.js
View file @
4fb84532
...
...
@@ -14,16 +14,13 @@ module.exports = function (browser, callback) {
}
function
initModules
(
browser
,
callback
)
{
browser
.
pause
(
3000
).
click
(
'#icon-panel div[plugin="pluginManager"]'
)
.
execute
(
function
()
{
document
.
querySelector
(
'div[id="pluginManager"]'
).
scrollTop
=
document
.
querySelector
(
'div[id="pluginManager"]'
).
scrollHeight
},
[],
function
()
{
browser
.
click
(
'#pluginManager article[id="remixPluginManagerListItem_solidity"] button'
)
browser
.
pause
(
3000
)
.
click
(
'#icon-panel div[plugin="pluginManager"]'
)
.
scrollAndClick
(
'#pluginManager article[id="remixPluginManagerListItem_solidity"] button'
)
.
pause
(
5000
)
.
c
lick
(
'#pluginManager article[id="remixPluginManagerListItem_udapp"] button'
)
.
c
lick
(
'#pluginManager article[id="remixPluginManagerListItem_solidityStaticAnalysis"] button'
)
.
c
lick
(
'#pluginManager article[id="remixPluginManagerListItem_debugger"] button'
)
.
c
lick
(
'#icon-panel div[plugin="fileExplorers"]'
)
.
scrollAndC
lick
(
'#pluginManager article[id="remixPluginManagerListItem_udapp"] button'
)
.
scrollAndC
lick
(
'#pluginManager article[id="remixPluginManagerListItem_solidityStaticAnalysis"] button'
)
.
scrollAndC
lick
(
'#pluginManager article[id="remixPluginManagerListItem_debugger"] button'
)
.
scrollAndC
lick
(
'#icon-panel div[plugin="fileExplorers"]'
)
.
perform
(()
=>
{
callback
()
})
})
}
test-browser/tests/remixd.js
View file @
4fb84532
...
...
@@ -60,7 +60,7 @@ function runTests (browser, testData) {
.
waitForElementVisible
(
'#icon-panel'
,
2000
)
.
clickLaunchIcon
(
'fileExplorers'
)
.
clickLaunchIcon
(
'pluginManager'
)
.
c
lick
(
'#pluginManager article[id="remixPluginManagerListItem_remixd"] button'
)
.
scrollAndC
lick
(
'#pluginManager article[id="remixPluginManagerListItem_remixd"] button'
)
.
waitForElementVisible
(
'#modal-footer-ok'
,
2000
)
.
pause
(
2000
)
.
click
(
'#modal-footer-ok'
)
...
...
@@ -99,7 +99,7 @@ function runTests (browser, testData) {
.
waitForElementNotPresent
(
'[data-path="localhost/folder1/contract_'
+
browserName
+
'_toremove.sol"]'
)
// check if removed (old) file is not present
.
click
(
'[data-path="localhost/folder1/renamed_contract_'
+
browserName
+
'.sol"]'
)
.
clickLaunchIcon
(
'pluginManager'
)
.
c
lick
(
'#pluginManager article[id="remixPluginManagerListItem_remixd"] button'
)
.
scrollAndC
lick
(
'#pluginManager article[id="remixPluginManagerListItem_remixd"] button'
)
.
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