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
c77ae1e3
Commit
c77ae1e3
authored
Apr 13, 2021
by
yann300
Committed by
ioedeveloper
Apr 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attempt fixing GoToVmTraceStep
parent
ea71718d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
18 deletions
+4
-18
goToVMTraceStep.ts
apps/remix-ide-e2e/src/commands/goToVMTraceStep.ts
+4
-18
No files found.
apps/remix-ide-e2e/src/commands/goToVMTraceStep.ts
View file @
c77ae1e3
...
@@ -10,25 +10,11 @@ class GoToVmTraceStep extends EventEmitter {
...
@@ -10,25 +10,11 @@ class GoToVmTraceStep extends EventEmitter {
}
}
function
goToVMtraceStep
(
browser
:
NightwatchBrowser
,
step
:
number
,
incr
:
number
,
done
:
VoidFunction
)
{
function
goToVMtraceStep
(
browser
:
NightwatchBrowser
,
step
:
number
,
incr
:
number
,
done
:
VoidFunction
)
{
if
(
!
incr
)
incr
=
0
browser
.
execute
(
function
()
{
document
.
getElementById
(
'slider'
)[
'value'
]
=
number
-
1
})
// It only moves slider to 50 but vm traces are not updated
browser
.
execute
(
function
()
{
.
setValue
(
'*[data-id="slider"]'
,
new
Array
(
1
).
fill
(
browser
.
Keys
.
RIGHT_ARROW
))
return
document
.
querySelector
(
'#stepdetail'
).
innerHTML
.
perform
(()
=>
{
},
[],
function
(
result
)
{
done
()
if
(
typeof
result
.
value
===
'string'
&&
(
result
.
value
.
indexOf
(
'vm trace step:'
)
!==
-
1
&&
result
.
value
.
indexOf
(
step
.
toString
())
!==
-
1
))
{
done
()
}
else
if
(
incr
>
1000
)
{
browser
.
assert
.
fail
(
'goToVMtraceStep fails'
,
'info about error'
,
''
)
done
()
}
else
{
incr
++
browser
.
click
(
'#intoforward'
)
.
perform
(()
=>
{
setTimeout
(()
=>
{
goToVMtraceStep
(
browser
,
step
,
incr
,
done
)
},
200
)
})
})
}
})
}
}
module
.
exports
=
GoToVmTraceStep
module
.
exports
=
GoToVmTraceStep
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