Skip to content

waygraph / NavClickBlockOptions

Type Alias: NavClickBlockOptions<Out> ​

NavClickBlockOptions<Out> = object

Defined in: src/engine/block/kinds/nav.ts:214

Click-only NavBlock. Same runtime as defineNavBlock with click - use this in app code so you never wonder whether a Nav is url or click (no __waygraphNavClick sniffing at author time). Prefer defineNavBlock only for url / goto deep links.

Type Parameters ​

Out ​

Out extends Checkpoint<string>

Properties ​

checkpoint ​

checkpoint: Out

Defined in: src/engine/block/kinds/nav.ts:218

The Checkpoint this Nav lands on: its value (Home).


click ​

click: string | ((mem) => string)

Defined in: src/engine/block/kinds/nav.ts:219


description? ​

optional description?: string

Defined in: src/engine/block/kinds/nav.ts:216


expect? ​

optional expect?: ExpectList<Out>

Defined in: src/engine/block/kinds/nav.ts:225

What this Block promises wherever it's used (see NavBlockOptions.expect).


from? ​

optional from?: readonly Checkpoint<string>[]

Defined in: src/engine/block/kinds/nav.ts:221

Where the click can start: the Checkpoints whose page shows the link. Leave out for "from anywhere".


instanceOptions? ​

optional instanceOptions?: Block<Checkpoint<string>, Out>["instanceOptions"]

Defined in: src/engine/block/kinds/nav.ts:228


name ​

name: string

Defined in: src/engine/block/kinds/nav.ts:215


requires? ​

optional requires?: readonly MemKey<unknown>[]

Defined in: src/engine/block/kinds/nav.ts:222


screenshot? ​

optional screenshot?: StepScreenshot

Defined in: src/engine/block/kinds/nav.ts:227

A screenshot of the page once the step is done (true, or { fullPage: true }): Waygraph Studio shows it on the map.


verify? ​

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

Defined in: src/engine/block/kinds/nav.ts:223

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