From 54b8d43362b1f8f642dbde35bf656828107792e0 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 16 Aug 2022 11:11:46 +0200 Subject: [PATCH] fix e2e --- apps/remix-ide-e2e/src/commands/goToVMTraceStep.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide-e2e/src/commands/goToVMTraceStep.ts b/apps/remix-ide-e2e/src/commands/goToVMTraceStep.ts index 54d8ab64dc..2a76caa665 100644 --- a/apps/remix-ide-e2e/src/commands/goToVMTraceStep.ts +++ b/apps/remix-ide-e2e/src/commands/goToVMTraceStep.ts @@ -10,8 +10,9 @@ class GoToVmTraceStep extends EventEmitter { } function goToVMtraceStep (browser: NightwatchBrowser, step: number, incr: number, done: VoidFunction) { - browser.execute(function (step) { (document.getElementById('slider') as HTMLInputElement).value = (step - 1).toString() }, [step]) - .waitForElementVisible('*[data-id="slider"]') + browser.waitForElementVisible('*[data-id="slider"]') + .waitForElementVisible('#stepdetail') + .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)) .execute((step) => { (document.querySelector('*[data-id="slider"]') as any).internal_onmouseup({ target: { value: step }})