提交 2aaed112 编写于 作者: P pissang

test(visual): fix no action will freeze the cli

上级 936afc26
......@@ -257,10 +257,10 @@ async function runTestPage(browser, testOpt, version, runtimeCode, isExpected) {
catch (e) {
errors.push(e.toString());
}
// We need to use the actions finish signal if there is reload happens in the page.
// Because the original __VST_RUN_ACTIONS__ not exists anymore.
await waitForActionFinishManually;
}
// We need to use the actions finish signal if there is reload happens in the page.
// Because the original __VST_RUN_ACTIONS__ not exists anymore.
await waitForActionFinishManually;
}
catch(e) {
console.error(e);
......
......@@ -58,12 +58,12 @@ window.__VST_START__ = function () {
}, 500);
}
else {
// Screenshot after 2000ms (400ms if 5x speed), wait the animation to be finished
// Screenshot after 1000ms (200ms if 5x speed), wait the animation to be finished
setTimeout(async () => {
// Pause timeline until run actions.
timeline.pause();
await __VST_FULL_SCREENSHOT__();
}, 2000);
}, 1000);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册