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
381c2baf
Commit
381c2baf
authored
Feb 13, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added plugin manager tests
parent
c8a75f84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
0 deletions
+51
-0
package.json
package.json
+1
-0
plugin.js
test-browser/tests/plugin.js
+50
-0
No files found.
package.json
View file @
381c2baf
...
...
@@ -178,6 +178,7 @@
"nightwatch_local_defaultLayout"
:
"nightwatch ./test-browser/tests/defaultLayout.js --config nightwatch.js --env chrome "
,
"nightwatch_local_pluginManager"
:
"nightwatch ./test-browser/tests/pluginManager.js --config nightwatch.js --env chrome "
,
"nightwatch_local_publishContract"
:
"nightwatch ./test-browser/tests/publishContract.js --config nightwatch.js --env chrome "
,
"nightwatch_local_plugin"
:
"nightwatch ./test-browser/tests/plugin.js --config nightwatch.js --env chrome "
,
"onchange"
:
"onchange build/app.js -- npm-run-all lint"
,
"prepublish"
:
"mkdirp build; npm-run-all -ls downloadsolc_root build"
,
"remixd"
:
"remixd -s ./contracts --remix-ide http://127.0.0.1:8080"
,
...
...
test-browser/tests/plugin.js
0 → 100644
View file @
381c2baf
'use strict'
const
init
=
require
(
'../helpers/init'
)
const
sauce
=
require
(
'./sauce'
)
module
.
exports
=
{
before
:
function
(
browser
,
done
)
{
init
(
browser
,
done
,
'http://127.0.0.1:8080'
,
false
)
},
'Should Load Plugin Manager'
:
function
(
browser
)
{
browser
.
waitForElementVisible
(
'div[data-id="remixIdeSidePanel"]'
)
.
pause
(
3000
)
.
click
(
'div[plugin="pluginManager"]'
)
.
waitForElementVisible
(
'div[data-id="pluginManagerComponentPluginManager"]'
)
.
assert
.
containsText
(
'h6[data-id="sidePanelSwapitTitle"]'
,
'PLUGIN MANAGER'
)
},
'Should Search for plugins'
:
function
(
browser
)
{
browser
.
waitForElementVisible
(
'div[data-id="pluginManagerComponentPluginManager"]'
)
.
click
(
'input[data-id="pluginManagerComponentSearchInput"]'
)
.
keys
(
'debugger'
)
.
waitForElementVisible
(
'button[data-id="pluginManagerComponentActivateButtondebugger"]'
)
.
clearValue
(
'input[data-id="pluginManagerComponentSearchInput"]'
)
.
click
(
'input[data-id="pluginManagerComponentSearchInput"]'
)
.
keys
(
'Deploy & run transactions'
)
.
waitForElementVisible
(
'button[data-id="pluginManagerComponentActivateButtonudapp"]'
)
.
clearValue
(
'input[data-id="pluginManagerComponentSearchInput"]'
)
.
click
(
'input[data-id="pluginManagerComponentSearchInput"]'
)
.
keys
(
'ZoKrates'
)
.
waitForElementVisible
(
'button[data-id="pluginManagerComponentActivateButtonZoKrates"]'
)
.
clearValue
(
'input[data-id="pluginManagerComponentSearchInput"]'
)
.
click
(
'input[data-id="pluginManagerComponentSearchInput"]'
)
.
keys
(
browser
.
Keys
.
ENTER
)
},
'Should activate plugins'
:
function
(
browser
)
{
browser
.
waitForElementVisible
(
'div[data-id="pluginManagerComponentPluginManager"]'
)
.
click
(
'div[data-id="pluginManagerComponentPluginManager"]'
)
.
scrollAndClick
(
'button[data-id="pluginManagerComponentActivateButtondebugger"]'
)
.
waitForElementVisible
(
'button[data-id="pluginManagerComponentDeactivateButtondebugger"]'
)
.
scrollAndClick
(
'button[data-id="pluginManagerComponentActivateButtonudapp"]'
)
.
waitForElementVisible
(
'button[data-id="pluginManagerComponentDeactivateButtonudapp"]'
)
.
scrollAndClick
(
'button[data-id="pluginManagerComponentActivateButtonZoKrates"]'
)
.
waitForElementVisible
(
'button[data-id="pluginManagerComponentDeactivateButtonZoKrates"]'
)
.
end
()
},
tearDown
:
sauce
}
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