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?
optionaldescription?: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?
optionalrequires?: readonlyMemKey<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
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?
optionalwaitForHeading?: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.