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
fa670bd7
Commit
fa670bd7
authored
Oct 19, 2021
by
bunsenstraat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pausing
parent
666a3988
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
plugin_api.ts
apps/remix-ide-e2e/src/tests/plugin_api.ts
+10
-0
No files found.
apps/remix-ide-e2e/src/tests/plugin_api.ts
View file @
fa670bd7
...
@@ -133,7 +133,9 @@ module.exports = {
...
@@ -133,7 +133,9 @@ module.exports = {
await
clickAndCheckLog
(
browser
,
'fileManager:getCurrentFile'
,
'Error from IDE : Error: No such file or directory No file selected'
,
null
,
null
)
await
clickAndCheckLog
(
browser
,
'fileManager:getCurrentFile'
,
'Error from IDE : Error: No such file or directory No file selected'
,
null
,
null
)
},
},
'Should open readme.txt'
:
async
function
(
browser
:
NightwatchBrowser
)
{
'Should open readme.txt'
:
async
function
(
browser
:
NightwatchBrowser
)
{
await
setAppend
(
browser
)
await
clickAndCheckLog
(
browser
,
'fileManager:open'
,
null
,
{
event
:
'currentFileChanged'
,
args
:
[
'README.txt'
]
},
'README.txt'
)
await
clickAndCheckLog
(
browser
,
'fileManager:open'
,
null
,
{
event
:
'currentFileChanged'
,
args
:
[
'README.txt'
]
},
'README.txt'
)
await
setAppend
(
browser
)
},
},
'Should have current file'
:
async
function
(
browser
:
NightwatchBrowser
)
{
'Should have current file'
:
async
function
(
browser
:
NightwatchBrowser
)
{
await
clickAndCheckLog
(
browser
,
'fileManager:getCurrentFile'
,
'README.txt'
,
null
,
null
)
await
clickAndCheckLog
(
browser
,
'fileManager:getCurrentFile'
,
'README.txt'
,
null
,
null
)
...
@@ -146,22 +148,30 @@ module.exports = {
...
@@ -146,22 +148,30 @@ module.exports = {
await
clickAndCheckLog
(
browser
,
'fileManager:getFile'
,
'REMIX EXAMPLE PROJECT'
,
null
,
'README.txt'
)
await
clickAndCheckLog
(
browser
,
'fileManager:getFile'
,
'REMIX EXAMPLE PROJECT'
,
null
,
'README.txt'
)
},
},
'Should close all files'
:
async
function
(
browser
:
NightwatchBrowser
)
{
'Should close all files'
:
async
function
(
browser
:
NightwatchBrowser
)
{
await
setAppend
(
browser
)
await
clickAndCheckLog
(
browser
,
'fileManager:closeAllFiles'
,
null
,
{
event
:
'noFileSelected'
,
args
:
[]
},
null
)
await
clickAndCheckLog
(
browser
,
'fileManager:closeAllFiles'
,
null
,
{
event
:
'noFileSelected'
,
args
:
[]
},
null
)
await
setAppend
(
browser
)
},
},
'Should switch to file'
:
async
function
(
browser
:
NightwatchBrowser
)
{
'Should switch to file'
:
async
function
(
browser
:
NightwatchBrowser
)
{
await
setAppend
(
browser
)
await
clickAndCheckLog
(
browser
,
'fileManager:switchFile'
,
null
,
{
event
:
'currentFileChanged'
,
args
:
[
'contracts/1_Storage.sol'
]
},
'contracts/1_Storage.sol'
)
await
clickAndCheckLog
(
browser
,
'fileManager:switchFile'
,
null
,
{
event
:
'currentFileChanged'
,
args
:
[
'contracts/1_Storage.sol'
]
},
'contracts/1_Storage.sol'
)
await
clickAndCheckLog
(
browser
,
'fileManager:getCurrentFile'
,
'contracts/1_Storage.sol'
,
null
,
null
)
await
clickAndCheckLog
(
browser
,
'fileManager:getCurrentFile'
,
'contracts/1_Storage.sol'
,
null
,
null
)
await
clickAndCheckLog
(
browser
,
'fileManager:switchFile'
,
null
,
{
event
:
'currentFileChanged'
,
args
:
[
'README.txt'
]
},
'README.txt'
)
await
clickAndCheckLog
(
browser
,
'fileManager:switchFile'
,
null
,
{
event
:
'currentFileChanged'
,
args
:
[
'README.txt'
]
},
'README.txt'
)
await
clickAndCheckLog
(
browser
,
'fileManager:getCurrentFile'
,
'README.txt'
,
null
,
null
)
await
clickAndCheckLog
(
browser
,
'fileManager:getCurrentFile'
,
'README.txt'
,
null
,
null
)
await
setAppend
(
browser
)
},
},
'Should write to file'
:
async
function
(
browser
:
NightwatchBrowser
)
{
'Should write to file'
:
async
function
(
browser
:
NightwatchBrowser
)
{
await
setAppend
(
browser
)
await
clickAndCheckLog
(
browser
,
'fileManager:writeFile'
,
null
,
{
event
:
'fileSaved'
,
args
:
[
'README.txt'
]
},
[
'README.txt'
,
'test'
])
await
clickAndCheckLog
(
browser
,
'fileManager:writeFile'
,
null
,
{
event
:
'fileSaved'
,
args
:
[
'README.txt'
]
},
[
'README.txt'
,
'test'
])
await
clickAndCheckLog
(
browser
,
'fileManager:readFile'
,
'test'
,
null
,
'README.txt'
)
await
clickAndCheckLog
(
browser
,
'fileManager:readFile'
,
'test'
,
null
,
'README.txt'
)
await
setAppend
(
browser
)
},
},
'Should write to new file'
:
async
function
(
browser
:
NightwatchBrowser
)
{
'Should write to new file'
:
async
function
(
browser
:
NightwatchBrowser
)
{
await
setAppend
(
browser
)
await
clickAndCheckLog
(
browser
,
'fileManager:writeFile'
,
null
,
{
event
:
'fileAdded'
,
args
:
[
'testing.txt'
]
},
[
'testing.txt'
,
'test'
])
await
clickAndCheckLog
(
browser
,
'fileManager:writeFile'
,
null
,
{
event
:
'fileAdded'
,
args
:
[
'testing.txt'
]
},
[
'testing.txt'
,
'test'
])
await
clickAndCheckLog
(
browser
,
'fileManager:readFile'
,
'test'
,
null
,
'testing.txt'
)
await
clickAndCheckLog
(
browser
,
'fileManager:readFile'
,
'test'
,
null
,
'testing.txt'
)
await
setAppend
(
browser
)
},
},
'Should rename file'
:
async
function
(
browser
:
NightwatchBrowser
)
{
'Should rename file'
:
async
function
(
browser
:
NightwatchBrowser
)
{
await
clickAndCheckLog
(
browser
,
'fileManager:rename'
,
null
,
null
,
[
'testing.txt'
,
'testrename.txt'
])
await
clickAndCheckLog
(
browser
,
'fileManager:rename'
,
null
,
null
,
[
'testing.txt'
,
'testrename.txt'
])
...
...
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