Skip to content

waygraph / SomeDefinedBlock

Type Alias: SomeDefinedBlock ​

SomeDefinedBlock = Omit<SomeBlock, "withVerify" | "modVerify" | "modVerifyAll"> & object

Defined in: src/engine/block/some-block.ts:57

Any DefinedBlock (see SomeBlock).

Type Declaration ​

modVerify() ​

modVerify(nameOrIndex, newCheck): SomeDefinedBlock

Parameters ​

nameOrIndex ​

string | number

newCheck ​

Trait | ((page, mem) => Promise<boolean | TraitResult>)

Trait


Function ​

(page, mem) => Promise<boolean | TraitResult>

Returns ​

SomeDefinedBlock

modVerifyAll() ​

modVerifyAll(patches): SomeDefinedBlock

Parameters ​

patches ​

Record<string, Trait["check"] | Trait>

Returns ​

SomeDefinedBlock

stub() ​

stub(stub): SomeDefinedBlock

Parameters ​

stub ​

StubLifecycleFn<Checkpoint<string>>

Returns ​

SomeDefinedBlock

stubBefore() ​

stubBefore(stub): SomeDefinedBlock

Parameters ​

stub ​

StubLifecycleFn<Checkpoint<string>>

Returns ​

SomeDefinedBlock

stubOnError() ​

stubOnError(stub): SomeDefinedBlock

Parameters ​

stub ​

StubLifecycleFn<Checkpoint<string>>

Returns ​

SomeDefinedBlock

withVerify() ​

withVerify(verify): SomeDefinedBlock

Parameters ​

verify ​

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

Returns ​

SomeDefinedBlock

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