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
a34b059f
Commit
a34b059f
authored
Aug 18, 2021
by
davidzagi93@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing terminalJournal
parent
a568fd41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
journalLastChildIncludes.ts
apps/remix-ide-e2e/src/commands/journalLastChildIncludes.ts
+4
-3
No files found.
apps/remix-ide-e2e/src/commands/journalLastChildIncludes.ts
View file @
a34b059f
...
@@ -7,11 +7,12 @@ import EventEmitter from 'events'
...
@@ -7,11 +7,12 @@ import EventEmitter from 'events'
class
JournalLastChildIncludes
extends
EventEmitter
{
class
JournalLastChildIncludes
extends
EventEmitter
{
command
(
this
:
NightwatchBrowser
,
val
:
string
):
NightwatchBrowser
{
command
(
this
:
NightwatchBrowser
,
val
:
string
):
NightwatchBrowser
{
this
.
api
this
.
api
.
waitForElementVisible
(
'*[data-id="terminalJournal"] > div:last-child'
,
10000
)
.
waitForElementVisible
(
'*[data-id="terminalJournal"]'
,
10000
)
.
getText
(
'*[data-id="terminalJournal"] > div:last-child'
,
(
result
)
=>
{
.
pause
(
80000
)
.
getText
(
'*[data-id="terminalJournal"]'
,
(
result
)
=>
{
console
.
log
(
'JournalLastChildIncludes'
,
result
.
value
)
console
.
log
(
'JournalLastChildIncludes'
,
result
.
value
)
if
(
typeof
result
.
value
===
'string'
&&
result
.
value
.
indexOf
(
val
)
===
-
1
)
return
this
.
api
.
assert
.
fail
(
`wait for
${
val
}
in
${
result
.
value
}
`
)
if
(
typeof
result
.
value
===
'string'
&&
result
.
value
.
indexOf
(
val
)
===
-
1
)
return
this
.
api
.
assert
.
fail
(
`wait for
${
val
}
in
${
result
.
value
}
`
)
else
this
.
api
.
assert
.
ok
(
true
,
`<*[data-id="terminalJournal"]
> div:last-child
> contains
${
val
}
.`
)
else
this
.
api
.
assert
.
ok
(
true
,
`<*[data-id="terminalJournal"]> contains
${
val
}
.`
)
this
.
emit
(
'complete'
)
this
.
emit
(
'complete'
)
})
})
return
this
return
this
...
...
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