Fix trace step

pull/1114/head
ioedeveloper 4 years ago
parent 8b983b9a00
commit 853b57292a
  1. 2
      apps/remix-ide-e2e/src/commands/goToVMTraceStep.ts
  2. 2
      apps/remix-ide-e2e/src/tests/debugger.spec.ts

@ -10,7 +10,7 @@ class GoToVmTraceStep extends EventEmitter {
}
function goToVMtraceStep (browser: NightwatchBrowser, step: number, incr: number, done: VoidFunction) {
browser.execute(function () { (document.getElementById('slider') as HTMLInputElement).value = (step - 1).toString() })
browser.execute(function (step) { (document.getElementById('slider') as HTMLInputElement).value = (step - 1).toString() }, [step])
.setValue('*[data-id="slider"]', new Array(1).fill(browser.Keys.RIGHT_ARROW))
.perform(() => {
done()

@ -127,7 +127,7 @@ module.exports = {
But the debugger uses now validSourcelocation, which means file is not -1.
In that case the source highlight at 261 should be the same as for step 262
*/
.waitForElementPresent('.highlightLine6')
.waitForElementPresent('.highlightLine7')
.goToVMTraceStep(266)
.pause(1000)
.checkVariableDebug('soliditylocals', localVariable_step266_ABIEncoder) // locals should not be initiated at this point, only idAsk should

Loading…
Cancel
Save