Fix trace step

pull/5370/head
ioedeveloper 4 years ago
parent b3e5813c3f
commit 81477c4adb
  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) { 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)) .setValue('*[data-id="slider"]', new Array(1).fill(browser.Keys.RIGHT_ARROW))
.perform(() => { .perform(() => {
done() done()

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

Loading…
Cancel
Save