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
75102120
Commit
75102120
authored
Feb 14, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified data-attribute selector
parent
b5b71a98
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
46 deletions
+46
-46
plugin.js
test-browser/tests/plugin.js
+46
-46
No files found.
test-browser/tests/plugin.js
View file @
75102120
...
@@ -8,83 +8,83 @@ module.exports = {
...
@@ -8,83 +8,83 @@ module.exports = {
},
},
'Should Load Plugin Manager'
:
function
(
browser
)
{
'Should Load Plugin Manager'
:
function
(
browser
)
{
browser
.
waitForElementVisible
(
'
div
[data-id="remixIdeSidePanel"]'
)
browser
.
waitForElementVisible
(
'
*
[data-id="remixIdeSidePanel"]'
)
.
pause
(
3000
)
.
pause
(
3000
)
.
click
(
'
div
[plugin="pluginManager"]'
)
.
click
(
'
*
[plugin="pluginManager"]'
)
.
waitForElementVisible
(
'
div
[data-id="pluginManagerComponentPluginManager"]'
)
.
waitForElementVisible
(
'
*
[data-id="pluginManagerComponentPluginManager"]'
)
.
assert
.
containsText
(
'
h6
[data-id="sidePanelSwapitTitle"]'
,
'PLUGIN MANAGER'
)
.
assert
.
containsText
(
'
*
[data-id="sidePanelSwapitTitle"]'
,
'PLUGIN MANAGER'
)
},
},
'Should Search for plugins'
:
function
(
browser
)
{
'Should Search for plugins'
:
function
(
browser
)
{
browser
.
waitForElementVisible
(
'
div
[data-id="pluginManagerComponentPluginManager"]'
)
browser
.
waitForElementVisible
(
'
*
[data-id="pluginManagerComponentPluginManager"]'
)
.
click
(
'
input
[data-id="pluginManagerComponentSearchInput"]'
)
.
click
(
'
*
[data-id="pluginManagerComponentSearchInput"]'
)
.
keys
(
'debugger'
)
.
keys
(
'debugger'
)
.
waitForElementVisible
(
'
button
[data-id="pluginManagerComponentActivateButtondebugger"]'
)
.
waitForElementVisible
(
'
*
[data-id="pluginManagerComponentActivateButtondebugger"]'
)
.
clearValue
(
'
input
[data-id="pluginManagerComponentSearchInput"]'
)
.
clearValue
(
'
*
[data-id="pluginManagerComponentSearchInput"]'
)
.
click
(
'
input
[data-id="pluginManagerComponentSearchInput"]'
)
.
click
(
'
*
[data-id="pluginManagerComponentSearchInput"]'
)
.
keys
(
'Deploy & run transactions'
)
.
keys
(
'Deploy & run transactions'
)
.
waitForElementVisible
(
'
button
[data-id="pluginManagerComponentActivateButtonudapp"]'
)
.
waitForElementVisible
(
'
*
[data-id="pluginManagerComponentActivateButtonudapp"]'
)
.
clearValue
(
'
input
[data-id="pluginManagerComponentSearchInput"]'
)
.
clearValue
(
'
*
[data-id="pluginManagerComponentSearchInput"]'
)
.
click
(
'
input
[data-id="pluginManagerComponentSearchInput"]'
)
.
click
(
'
*
[data-id="pluginManagerComponentSearchInput"]'
)
.
keys
(
'ZoKrates'
)
.
keys
(
'ZoKrates'
)
.
waitForElementVisible
(
'
button
[data-id="pluginManagerComponentActivateButtonZoKrates"]'
)
.
waitForElementVisible
(
'
*
[data-id="pluginManagerComponentActivateButtonZoKrates"]'
)
.
clearValue
(
'
input
[data-id="pluginManagerComponentSearchInput"]'
)
.
clearValue
(
'
*
[data-id="pluginManagerComponentSearchInput"]'
)
.
click
(
'
input
[data-id="pluginManagerComponentSearchInput"]'
)
.
click
(
'
*
[data-id="pluginManagerComponentSearchInput"]'
)
.
keys
(
browser
.
Keys
.
ENTER
)
.
keys
(
browser
.
Keys
.
ENTER
)
},
},
'Should activate plugins'
:
function
(
browser
)
{
'Should activate plugins'
:
function
(
browser
)
{
browser
.
waitForElementVisible
(
'
div
[data-id="pluginManagerComponentPluginManager"]'
)
browser
.
waitForElementVisible
(
'
*
[data-id="pluginManagerComponentPluginManager"]'
)
.
click
(
'
div
[data-id="pluginManagerComponentPluginManager"]'
)
.
click
(
'
*
[data-id="pluginManagerComponentPluginManager"]'
)
.
scrollAndClick
(
'
button
[data-id="pluginManagerComponentActivateButtondebugger"]'
)
.
scrollAndClick
(
'
*
[data-id="pluginManagerComponentActivateButtondebugger"]'
)
.
waitForElementVisible
(
'
button
[data-id="pluginManagerComponentDeactivateButtondebugger"]'
)
.
waitForElementVisible
(
'
*
[data-id="pluginManagerComponentDeactivateButtondebugger"]'
)
.
scrollAndClick
(
'
button
[data-id="pluginManagerComponentActivateButtonudapp"]'
)
.
scrollAndClick
(
'
*
[data-id="pluginManagerComponentActivateButtonudapp"]'
)
.
waitForElementVisible
(
'
button
[data-id="pluginManagerComponentDeactivateButtonudapp"]'
)
.
waitForElementVisible
(
'
*
[data-id="pluginManagerComponentDeactivateButtonudapp"]'
)
.
scrollAndClick
(
'
button
[data-id="pluginManagerComponentActivateButtonZoKrates"]'
)
.
scrollAndClick
(
'
*
[data-id="pluginManagerComponentActivateButtonZoKrates"]'
)
.
waitForElementVisible
(
'
button
[data-id="pluginManagerComponentDeactivateButtonZoKrates"]'
)
.
waitForElementVisible
(
'
*
[data-id="pluginManagerComponentDeactivateButtonZoKrates"]'
)
},
},
'Should deactivate plugins'
:
function
(
browser
)
{
'Should deactivate plugins'
:
function
(
browser
)
{
browser
.
waitForElementVisible
(
'
div
[data-id="pluginManagerComponentPluginManager"]'
)
browser
.
waitForElementVisible
(
'
*
[data-id="pluginManagerComponentPluginManager"]'
)
.
click
(
'
div
[data-id="pluginManagerComponentPluginManager"]'
)
.
click
(
'
*
[data-id="pluginManagerComponentPluginManager"]'
)
.
scrollAndClick
(
'
button
[data-id="pluginManagerComponentDeactivateButtondebugger"]'
)
.
scrollAndClick
(
'
*
[data-id="pluginManagerComponentDeactivateButtondebugger"]'
)
.
waitForElementVisible
(
'
button
[data-id="pluginManagerComponentActivateButtondebugger"]'
)
.
waitForElementVisible
(
'
*
[data-id="pluginManagerComponentActivateButtondebugger"]'
)
.
scrollAndClick
(
'
button
[data-id="pluginManagerComponentDeactivateButtonudapp"]'
)
.
scrollAndClick
(
'
*
[data-id="pluginManagerComponentDeactivateButtonudapp"]'
)
.
waitForElementVisible
(
'
button
[data-id="pluginManagerComponentActivateButtonudapp"]'
)
.
waitForElementVisible
(
'
*
[data-id="pluginManagerComponentActivateButtonudapp"]'
)
},
},
'Grant plugin permission (ZOKRATES)'
:
function
(
browser
)
{
'Grant plugin permission (ZOKRATES)'
:
function
(
browser
)
{
browser
.
waitForElementVisible
(
'
div
[data-id="pluginManagerComponentPluginManager"]'
)
browser
.
waitForElementVisible
(
'
*
[data-id="pluginManagerComponentPluginManager"]'
)
.
click
(
'
button
[data-id="pluginManagerSettingsButton"]'
)
.
click
(
'
*
[data-id="pluginManagerSettingsButton"]'
)
.
waitForElementVisible
(
'
form
[data-id="pluginManagerSettingsPermissionForm"]'
)
.
waitForElementVisible
(
'
*
[data-id="pluginManagerSettingsPermissionForm"]'
)
.
assert
.
containsText
(
'
form
[data-id="pluginManagerSettingsPermissionForm"]'
,
'No Permission requested yet'
)
.
assert
.
containsText
(
'
*
[data-id="pluginManagerSettingsPermissionForm"]'
,
'No Permission requested yet'
)
.
modalFooterOKClick
()
.
modalFooterOKClick
()
.
click
(
'
div
[data-id="verticalIconsFileExplorerIcons"]'
)
.
click
(
'
*
[data-id="verticalIconsFileExplorerIcons"]'
)
.
switchFile
(
'browser/3_Ballot.sol'
)
.
switchFile
(
'browser/3_Ballot.sol'
)
.
click
(
'
div
[plugin="ZoKrates"]'
)
.
click
(
'
*
[plugin="ZoKrates"]'
)
.
pause
(
5000
)
.
pause
(
5000
)
.
frame
(
0
)
.
frame
(
0
)
.
useXpath
().
click
(
"//span[text()='Compile']"
)
.
useXpath
().
click
(
"//span[text()='Compile']"
)
.
frameParent
()
.
frameParent
()
.
useCss
().
waitForElementVisible
(
'
div
[data-id="modalDialogContainer"]'
)
.
useCss
().
waitForElementVisible
(
'
*
[data-id="modalDialogContainer"]'
)
.
assert
.
containsText
(
'
h4
[data-id="permissionHandlerMessage"]'
,
'ZOKRATES" WOULD LIKE TO ACCESS "FILE MANAGER" :'
)
.
assert
.
containsText
(
'
*
[data-id="permissionHandlerMessage"]'
,
'ZOKRATES" WOULD LIKE TO ACCESS "FILE MANAGER" :'
)
.
pause
(
2000
)
.
pause
(
2000
)
.
click
(
'
label
[data-id="permissionHandlerRememberChoice"]'
)
.
click
(
'
*
[data-id="permissionHandlerRememberChoice"]'
)
.
pause
(
2000
)
.
pause
(
2000
)
.
modalFooterOKClick
()
.
modalFooterOKClick
()
},
},
'Revert plugin permission (ZOKRATES)'
:
function
(
browser
)
{
'Revert plugin permission (ZOKRATES)'
:
function
(
browser
)
{
browser
.
waitForElementVisible
(
'
div
[data-id="verticalIconsSettingsIcons"]'
)
browser
.
waitForElementVisible
(
'
*
[data-id="verticalIconsSettingsIcons"]'
)
.
click
(
'
div
[data-id="verticalIconsSettingsIcons"]'
)
.
click
(
'
*
[data-id="verticalIconsSettingsIcons"]'
)
.
waitForElementVisible
(
'
button
[data-id="pluginManagerSettingsButton"]'
)
.
waitForElementVisible
(
'
*
[data-id="pluginManagerSettingsButton"]'
)
.
click
(
'
button
[data-id="pluginManagerSettingsButton"]'
)
.
click
(
'
*
[data-id="pluginManagerSettingsButton"]'
)
.
waitForElementVisible
(
'
div
[data-id="modalDialogContainer"]'
)
.
waitForElementVisible
(
'
*
[data-id="modalDialogContainer"]'
)
.
click
(
'
form
[data-id="pluginManagerSettingsPermissionForm"]'
)
.
click
(
'
*
[data-id="pluginManagerSettingsPermissionForm"]'
)
.
pause
(
2000
)
.
pause
(
2000
)
.
click
(
'
i
[data-id="pluginManagerSettingsClearAllPermission"]'
)
.
click
(
'
*
[data-id="pluginManagerSettingsClearAllPermission"]'
)
.
pause
(
2000
)
.
pause
(
2000
)
.
assert
.
containsText
(
'
form
[data-id="pluginManagerSettingsPermissionForm"]'
,
'No Permission requested yet'
)
.
assert
.
containsText
(
'
*
[data-id="pluginManagerSettingsPermissionForm"]'
,
'No Permission requested yet'
)
.
modalFooterOKClick
()
.
modalFooterOKClick
()
.
end
()
.
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