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
7f9c0dc4
Commit
7f9c0dc4
authored
Oct 17, 2021
by
bunsenstraat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more tests
parent
54f2b74e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
plugin_api.ts
apps/remix-ide-e2e/src/tests/plugin_api.ts
+20
-8
No files found.
apps/remix-ide-e2e/src/tests/plugin_api.ts
View file @
7f9c0dc4
...
...
@@ -62,6 +62,8 @@ module.exports = {
.
frame
(
0
)
},
// FILESYSTEM
'Should get current workspace'
:
function
(
browser
:
NightwatchBrowser
)
{
clickAndCheckLog
(
browser
,
'filePanel:getCurrentWorkspace'
,
{
name
:
'default_workspace'
,
isLocalhost
:
false
,
absolutePath
:
'.workspaces/default_workspace'
},
null
,
null
)
},
...
...
@@ -77,18 +79,17 @@ module.exports = {
'Should have current file'
:
function
(
browser
:
NightwatchBrowser
)
{
clickAndCheckLog
(
browser
,
'fileManager:getCurrentFile'
,
'README.txt'
,
null
,
null
)
},
'Should create dir'
:
function
(
browser
:
NightwatchBrowser
)
{
clickAndCheckLog
(
browser
,
'fileManager:mkdir'
,
null
,
null
,
'testdir'
)
clickAndCheckLog
(
browser
,
'fileManager:readdir'
,
'testdir'
,
null
,
'/'
)
},
'Should get file'
:
function
(
browser
:
NightwatchBrowser
)
{
clickAndCheckLog
(
browser
,
'fileManager:getFile'
,
'REMIX EXAMPLE PROJECT'
,
null
,
'README.txt'
)
},
'Should close all files'
:
function
(
browser
:
NightwatchBrowser
)
{
clickAndCheckLog
(
browser
,
'fileManager:closeAllFiles'
,
null
,
{
event
:
'noFileSelected'
,
args
:
[]
},
null
)
},
'Should activate solidityUnitTesting'
:
function
(
browser
:
NightwatchBrowser
)
{
clickAndCheckLog
(
browser
,
'manager:activatePlugin'
,
null
,
null
,
'solidityUnitTesting'
)
browser
.
frameParent
()
assertPluginIsActive
(
browser
,
'solidityUnitTesting'
)
// @ts-ignore
browser
.
frame
(
0
)
},
'Should switch to file'
:
function
(
browser
:
NightwatchBrowser
)
{
clickAndCheckLog
(
browser
,
'fileManager:switchFile'
,
null
,
{
event
:
'currentFileChanged'
,
args
:
[
'contracts/1_Storage.sol'
]
},
'contracts/1_Storage.sol'
)
clickAndCheckLog
(
browser
,
'fileManager:getCurrentFile'
,
'contracts/1_Storage.sol'
,
null
,
null
)
...
...
@@ -108,11 +109,22 @@ module.exports = {
clickAndCheckLog
(
browser
,
'fileManager:readdir'
,
{
contracts
:
{
isDirectory
:
true
},
scripts
:
{
isDirectory
:
true
},
tests
:
{
isDirectory
:
true
},
'README.txt'
:
{
isDirectory
:
false
}
},
null
,
null
)
},
// COMPILER
'Should compile a file'
:
function
(
browser
:
NightwatchBrowser
)
{
clickAndCheckLog
(
browser
,
'solidity:compile'
,
null
,
null
,
'contracts/1_Storage.sol'
)
},
'Should get compilationresults'
:
function
(
browser
:
NightwatchBrowser
)
{
clickAndCheckLog
(
browser
,
'solidity:getCompilationResult'
,
'contracts/1_Storage.sol'
,
null
,
null
)
},
// UNIT TESTING
'Should activate solidityUnitTesting'
:
function
(
browser
:
NightwatchBrowser
)
{
clickAndCheckLog
(
browser
,
'manager:activatePlugin'
,
null
,
null
,
'solidityUnitTesting'
)
browser
.
frameParent
()
assertPluginIsActive
(
browser
,
'solidityUnitTesting'
)
// @ts-ignore
browser
.
frame
(
0
)
}
}
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