docs: record pause wasm implementation plan
This commit is contained in:
@@ -283,11 +283,37 @@
|
||||
|
||||
await click('[data-action="estop"]', "AXIS estop");
|
||||
await waitState((state) => state.machine.estopActive === true && state.runState === "estopped", "estop active");
|
||||
await click('[data-action="power"]', "AXIS power while ESTOP");
|
||||
await waitState((state) => (
|
||||
state.machine.powerOn === false
|
||||
&& state.machine.taskState === "off"
|
||||
&& state.runState === "powered-off"
|
||||
), "power button sends OFF while ESTOP");
|
||||
await click('[data-action="power"]', "AXIS power while OFF");
|
||||
await waitState((state) => (
|
||||
state.machine.powerOn === false
|
||||
&& state.machine.taskState === "off"
|
||||
), "power button remains OFF until ESTOP reset");
|
||||
await click('[data-action="estop"]', "AXIS estop before reset");
|
||||
await waitState((state) => state.machine.estopActive === true && state.machine.taskState === "estop", "estop before reset");
|
||||
await click('[data-action="estop"]', "AXIS estop reset");
|
||||
await waitState((state) => state.machine.estopActive === false && state.machine.taskState === "estop-reset", "estop reset");
|
||||
await click('[data-action="run"]', "AXIS run blocked before power");
|
||||
await waitState((state) => (
|
||||
state.machine.powerOn === false
|
||||
&& state.runState === "idle"
|
||||
&& state.operatorMessage === "run blocked: machine must be on"
|
||||
), "run blocked before power");
|
||||
|
||||
await click('[data-action="power"]', "AXIS power");
|
||||
await waitState((state) => state.machine.powerOn === true && state.machine.taskState === "on", "machine power on");
|
||||
await click('[data-action="run"]', "AXIS run blocked before home");
|
||||
await waitState((state) => (
|
||||
state.machine.powerOn === true
|
||||
&& state.machine.allHomed === false
|
||||
&& state.runState === "idle"
|
||||
&& state.operatorMessage === "run blocked: home machine first"
|
||||
), "run blocked before home");
|
||||
await click('[data-action="home-all"]', "AXIS home all");
|
||||
await waitState((state) => (
|
||||
state.machine.allHomed === true
|
||||
@@ -473,7 +499,12 @@
|
||||
await waitState((state) => Number(state.programAxisPreviewPath?.sampleCount || 0) > 0 && state.preview.pathPoints > 0, "reload restored real path samples");
|
||||
|
||||
doc.querySelector('[data-menu-command="run-ready"]').click();
|
||||
await waitState((state) => state.machine.powerOn === true && state.machine.allHomed === true && state.machine.mode === "auto", "run-ready menu");
|
||||
await waitState((state) => (
|
||||
state.machine.powerOn === true
|
||||
&& state.machine.allHomed === true
|
||||
&& state.machine.mode === "manual"
|
||||
&& state.operatorMessage === "RUN ready: program opened; press Run"
|
||||
), "run-ready menu");
|
||||
const beforeRun = api.getState();
|
||||
await click('[data-action="run"]', "AXIS run");
|
||||
const runState = await waitState((state) => (
|
||||
|
||||
Reference in New Issue
Block a user