Skip to content

waygraph / StubPhaseFixtures

Type Alias: StubPhaseFixtures ​

StubPhaseFixtures = object

Defined in: src/engine/stub/stub.ts:27

Episode-level fixtures authored inside stubBefore/After/OnError(ctx).

Properties ​

bannerUi? ​

optional bannerUi?: BannerUiOpts

Defined in: src/engine/stub/stub.ts:54

Banner UX: collision (move away from a ring it overlaps), hidden. See BannerUiOpts.


caption? ​

optional caption?: string

Defined in: src/engine/stub/stub.ts:60

Bottom narration caption - a white rounded card (black text, shadow), bottom-centered above the step pill, distinct from the banner (top, card-shaped). Omit/clear to hide it; set again to change the text, fading out/in.


device? ​

optional device?: DevicePreset | DeviceState

Defined in: src/engine/stub/stub.ts:81

Viewport preset: mobile | tablet | desktop (default / clear). Omit on later blocks = keep (same persist pattern as todos).


networkTabVisible? ​

optional networkTabVisible?: boolean

Defined in: src/engine/stub/stub.ts:66

Network-tab overlay visibility - capture always happens in the background regardless; this only controls whether the panel itself is shown. Intentionally hidden by default (undefined on the very first phase); omit to leave whatever the previous step set alone.


orientation? ​

optional orientation?: DeviceOrientation

Defined in: src/engine/stub/stub.ts:87

Portrait / landscape (swaps preset width/height).


title? ​

optional title?: string

Defined in: src/engine/stub/stub.ts:50

Top demo banner title (the "waygraph demo" card, top left by default).


titlePos? ​

optional titlePos?: BannerPos

Defined in: src/engine/stub/stub.ts:52

Banner side/position (left | center | right). Authored control, like the todo dock's pos.


todoDockUi? ​

optional todoDockUi?: TodoDockUiOpts

Defined in: src/engine/stub/stub.ts:76

Todo-dock UX (compact / collision / behind-ring). Merged onto env defaults. See TodoDockUiOpts.


todoGroups? ​

optional todoGroups?: readonly WaygraphTodoGroupInput[]

Defined in: src/engine/stub/stub.ts:41

Multiple titled lists (FR / Scenarios / ACs). Wins over bare todos when set.


todoId? ​

optional todoId?: string

Defined in: src/engine/stub/stub.ts:37

Stable dock id (data-wg-todo-id) for external redirect asserts (e.g. Mailhog -> back to app and still find the checklist).


todoIndex? ​

optional todoIndex?: number

Defined in: src/engine/stub/stub.ts:30

Which todo is current (0-based). Rows before = done, after = pending.


todoPos? ​

optional todoPos?: "left" | "right"

Defined in: src/engine/stub/stub.ts:71

Floating checklist dock side. left | right. Authored control (also click / WAYGRAPH_TODO_POS / --todo-left|right).


todos? ​

optional todos?: readonly WaygraphTodoInput[]

Defined in: src/engine/stub/stub.ts:28


todoStyle? ​

optional todoStyle?: TodoListStyle

Defined in: src/engine/stub/stub.ts:39

sequential (default), checklist, or bullets.


todoTitle? ​

optional todoTitle?: string

Defined in: src/engine/stub/stub.ts:32

Heading above a single StubUi.todos list.


touch? ​

optional touch?: boolean

Defined in: src/engine/stub/stub.ts:85

Touch theater + Playwright touchscreen when true.


viewport? ​

optional viewport?: DeviceViewport

Defined in: src/engine/stub/stub.ts:83

Explicit pixel viewport (wins over preset width/height when both set).


zoom? ​

optional zoom?: number

Defined in: src/engine/stub/stub.ts:46

Camera zoom (Screen Studio style) - scales the page toward the target / cursor. Not element CSS zoom. Typical 1.25 .. 2.


zoomOut? ​

optional zoomOut?: boolean

Defined in: src/engine/stub/stub.ts:48

Default zoomOut for rings (false = keep camera between rings).

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