Skip to content

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? ​

optional expect?: 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 ​

ts
.method(ConfirmArchiveBlock, { expect: [ExpectArchivedToastBlock, Machine.status.is("Archived")] })

ff? ​

optional ff?: 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 ​

ts
map().gotoPage(NavLoginBlock, { ff: true }).method(FillUsernameBlock, { ff: true })

lands? ​

optional lands?: 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 ​

ts
map().method(SubmitLoginBlock, { lands: InventoryPage }).gotoPage(NavCartBlock)

pace? ​

optional pace?: 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 ​

ts
map().method(SetBearerTokenBlock, { pace: "blitz" })

settle? ​

optional settle?: 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 ​

ts
.method(TypeSearchBlock, { settle: true }) · { settle: { quietMs: 600 } }

when? ​

optional when?: (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 ​

MemPage

Returns ​

boolean

Example ​

ts
.method(SetJsonBodyBlock, { when: (mem) => mem.has(RequestBody) })

waygraph 0.18.3 (alpha) · Node 24+ · peer @playwright/test ^1.40.0 · syntax may change before 1.0: see what was removed