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
59e1c758
Commit
59e1c758
authored
Jun 18, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename command
parent
03361824
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
currentWorkspaceIs.ts
apps/remix-ide-e2e/src/commands/currentWorkspaceIs.ts
+3
-2
url.spec.ts
apps/remix-ide-e2e/src/tests/url.spec.ts
+1
-1
index.d.ts
apps/remix-ide-e2e/src/types/index.d.ts
+1
-1
No files found.
apps/remix-ide-e2e/src/commands/currentWorkspace.ts
→
apps/remix-ide-e2e/src/commands/currentWorkspace
Is
.ts
View file @
59e1c758
import
{
NightwatchBrowser
}
from
'nightwatch'
import
{
NightwatchBrowser
}
from
'nightwatch'
import
EventEmitter
from
'events'
import
EventEmitter
from
'events'
class
CurrentWorkspace
extends
EventEmitter
{
class
CurrentWorkspace
Is
extends
EventEmitter
{
command
(
this
:
NightwatchBrowser
,
name
:
string
):
NightwatchBrowser
{
command
(
this
:
NightwatchBrowser
,
name
:
string
):
NightwatchBrowser
{
this
.
api
this
.
api
.
execute
(()
=>
{
.
execute
(()
=>
{
return
(
document
.
querySelector
(
'select[data-id="workspacesSelect"]'
)
as
any
).
value
return
(
document
.
querySelector
(
'select[data-id="workspacesSelect"]'
)
as
any
).
value
},
[],
(
result
)
=>
{
},
[],
(
result
)
=>
{
console
.
log
(
result
)
this
.
api
.
assert
.
equal
(
result
.
value
,
name
)
this
.
api
.
assert
.
equal
(
result
.
value
,
name
)
this
.
emit
(
'complete'
)
this
.
emit
(
'complete'
)
})
})
...
@@ -14,4 +15,4 @@ class CurrentWorkspace extends EventEmitter {
...
@@ -14,4 +15,4 @@ class CurrentWorkspace extends EventEmitter {
}
}
}
}
module
.
exports
=
CurrentWorkspace
module
.
exports
=
CurrentWorkspace
Is
apps/remix-ide-e2e/src/tests/url.spec.ts
View file @
59e1c758
...
@@ -23,7 +23,7 @@ module.exports = {
...
@@ -23,7 +23,7 @@ module.exports = {
.
url
(
'http://127.0.0.1:8080/#optimize=true&runs=300&evmVersion=istanbul&version=soljson-v0.7.4+commit.3f05b770.js&code=cHJhZ21hIHNvbGlkaXR5ID49MC42LjAgPDAuNy4wOwoKaW1wb3J0ICJodHRwczovL2dpdGh1Yi5jb20vT3BlblplcHBlbGluL29wZW56ZXBwZWxpbi1jb250cmFjdHMvYmxvYi9tYXN0ZXIvY29udHJhY3RzL2FjY2Vzcy9Pd25hYmxlLnNvbCI7Cgpjb250cmFjdCBHZXRQYWlkIGlzIE93bmFibGUgewogIGZ1bmN0aW9uIHdpdGhkcmF3KCkgZXh0ZXJuYWwgb25seU93bmVyIHsKICB9Cn0'
)
.
url
(
'http://127.0.0.1:8080/#optimize=true&runs=300&evmVersion=istanbul&version=soljson-v0.7.4+commit.3f05b770.js&code=cHJhZ21hIHNvbGlkaXR5ID49MC42LjAgPDAuNy4wOwoKaW1wb3J0ICJodHRwczovL2dpdGh1Yi5jb20vT3BlblplcHBlbGluL29wZW56ZXBwZWxpbi1jb250cmFjdHMvYmxvYi9tYXN0ZXIvY29udHJhY3RzL2FjY2Vzcy9Pd25hYmxlLnNvbCI7Cgpjb250cmFjdCBHZXRQYWlkIGlzIE93bmFibGUgewogIGZ1bmN0aW9uIHdpdGhkcmF3KCkgZXh0ZXJuYWwgb25seU93bmVyIHsKICB9Cn0'
)
.
refresh
()
// we do one reload for making sure we already have the default workspace
.
refresh
()
// we do one reload for making sure we already have the default workspace
.
pause
(
5000
)
.
pause
(
5000
)
.
currentWorkspace
(
'code-sample2'
)
.
currentWorkspace
Is
(
'code-sample2'
)
.
getEditorValue
((
content
)
=>
{
.
getEditorValue
((
content
)
=>
{
browser
.
assert
.
ok
(
content
.
indexOf
(
browser
.
assert
.
ok
(
content
.
indexOf
(
'https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol'
)
!==
-
1
,
'https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol'
)
!==
-
1
,
...
...
apps/remix-ide-e2e/src/types/index.d.ts
View file @
59e1c758
...
@@ -56,7 +56,7 @@ declare module "nightwatch" {
...
@@ -56,7 +56,7 @@ declare module "nightwatch" {
checkAnnotations
(
type
:
string
,
line
:
number
):
NightwatchBrowser
checkAnnotations
(
type
:
string
,
line
:
number
):
NightwatchBrowser
checkAnnotationsNotPresent
(
type
:
string
):
NightwatchBrowser
checkAnnotationsNotPresent
(
type
:
string
):
NightwatchBrowser
getLastTransactionHash
(
callback
:
(
hash
:
string
)
=>
void
)
getLastTransactionHash
(
callback
:
(
hash
:
string
)
=>
void
)
currentWorkspace
(
name
:
string
):
NightwatchBrowser
currentWorkspace
Is
(
name
:
string
):
NightwatchBrowser
}
}
export
interface
NightwatchBrowser
{
export
interface
NightwatchBrowser
{
...
...
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