waygraph / MapStepOpts
Interface: MapStepOpts<Lands>
Defined in: src/engine/flow/map-steps.ts:277
Per-step options for the map builder: ff fast-forwards the step, pace sets its demo pace.
Type Parameters
Lands
Lands extends Checkpoint<string> = Checkpoint<string>
Properties
expect?
optionalexpect?:false|ExpectList<Lands>
Defined in: src/engine/flow/map-steps.ts:284
What this step's scenario expects after it, on top of what the Block itself expects: Expect Blocks, Traits, Key.is(...). Per outcome for a Block that can land in several places. false drops the Block's own expectations for this step (its verify still runs).
Example
.method(ConfirmArchiveBlock, { expect: [ExpectArchivedToastBlock, Machine.status.is("Archived")] })ff?
optionalff?:boolean
Defined in: src/engine/flow/map-steps.ts:297
Fast-forward just this step, inline - no .ffStart()/.ffEnd() bracket needed. Consecutive { ff: true } steps merge into ONE fast-forward block, same result as the explicit bracket form; a step without the flag closes an auto-opened window first.
Example
map().gotoPage(NavLoginBlock, { ff: true }).method(FillUsernameBlock, { ff: true })lands?
optionallands?:Lands
Defined in: src/engine/flow/map-steps.ts:290
Which of a branching Block's outcomes this flow continues from. The flow is typed from it, and a run where the Block lands anywhere else fails at this step.
Example
map().method(SubmitLoginBlock, { lands: InventoryPage }).gotoPage(NavCartBlock)pace?
optionalpace?:DemoPace
Defined in: src/engine/flow/map-steps.ts:303
Demo pace for just this step ("blitz" skips the typing animation and the pause after the action; "fast", "slow", or a number scale the narration gates).
Example
map().method(SetBearerTokenBlock, { pace: "blitz" })settle?
optionalsettle?:true| {maxMs?:number;quietMs?:number; }
Defined in: src/engine/flow/map-steps.ts:316
Wait for the page to settle after this step acts, before it is checked: loaded, then no DOM change for quietMs (default 300), at most maxMs (default 5000). For a debounced search or a list that renders in bursts, instead of a fixed waitForTimeout.
Example
.method(TypeSearchBlock, { settle: true }) · { settle: { quietMs: 600 } }when?
optionalwhen?: (mem) =>boolean
Defined in: src/engine/flow/map-steps.ts:309
Play this step only when when(mem) is true; otherwise it ends at once where it started. For a step that stays on its Checkpoint (filling an optional field): one flow covers the cases that differ by it.
Parameters
mem
Returns
boolean
Example
.method(SetJsonBodyBlock, { when: (mem) => mem.has(RequestBody) })