Skip to content

waygraph / ExpectBlockOptions

Interface: ExpectBlockOptions<Out> ​

Defined in: src/engine/block/kinds/expect.ts:12

Options for defineExpectBlock: the Checkpoint it judges and the checks that must hold there.

Type Parameters ​

Out ​

Out extends Checkpoint<string> = Checkpoint<string>

Properties ​

checkpoint ​

checkpoint: Out

Defined in: src/engine/block/kinds/expect.ts:17

The Checkpoint it judges: its value (Registry).


description? ​

optional description?: string

Defined in: src/engine/block/kinds/expect.ts:15

What it expects, in the scenario's words ("the toast says the machine was archived"): the demo and UI show it.


name ​

name: string

Defined in: src/engine/block/kinds/expect.ts:13


requires? ​

optional requires?: readonly MemKey<unknown>[]

Defined in: src/engine/block/kinds/expect.ts:23

Mem keys its checks read (a mem-aware Trait): preflight checks them before the flow runs.


verify ​

verify: Trait[] | ((out) => Trait[])

Defined in: src/engine/block/kinds/expect.ts:21

The checks. They only read the page: an expectation that clicks, types or navigates fails, naming the action.


waitForHeading? ​

optional waitForHeading?: string

Defined in: src/engine/block/kinds/expect.ts:19

Waits for a heading with this accessible name before the checks: a page that renders late.

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