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
ccd25469
Commit
ccd25469
authored
Jun 16, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
done callback
parent
555abaf3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
clickLaunchIcon.js
test-browser/commands/clickLaunchIcon.js
+1
-1
init.js
test-browser/helpers/init.js
+5
-4
No files found.
test-browser/commands/clickLaunchIcon.js
View file @
ccd25469
...
...
@@ -3,8 +3,8 @@ const EventEmitter = require('events')
class
ClickLaunchIcon
extends
EventEmitter
{
command
(
icon
)
{
this
.
api
.
waitForElementVisible
(
'#icon-panel div[plugin="'
+
icon
+
'"]'
).
click
(
'#icon-panel div[plugin="'
+
icon
+
'"]'
).
perform
((
done
)
=>
{
this
.
emit
(
'complete'
)
done
()
this
.
emit
(
'complete'
)
})
return
this
}
...
...
test-browser/helpers/init.js
View file @
ccd25469
...
...
@@ -10,16 +10,17 @@ module.exports = function (browser, callback, url, preloadPlugins = true) {
if
(
preloadPlugins
)
{
initModules
(
browser
,
()
=>
{
browser
.
clickLaunchIcon
(
'solidity'
)
.
pause
(
2000
)
console
.
log
(
'called init after'
)
browser
.
pause
(
2000
)
.
execute
(()
=>
{
document
.
getElementById
(
'autoCompile'
).
click
()
})
})
}
})
.
perform
(()
=>
{
callback
()
}
)
})
.
perform
(()
=>
{
callback
(
)
})
}
...
...
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