@wpkernel/e2e-utils v0.12.6-beta.3
@wpkernel/e2e-utils / EventRecorder
Type Alias: EventRecorder<P>
ts
type EventRecorder<P> = object;Event utilities for capturing and asserting on wpk events
Type Parameters
P
P = unknown
Properties
clear()
ts
clear: () => Promise<void>;Clear all captured events
Returns
Promise<void>
find()
ts
find: (type) => Promise<CapturedEvent<P> | undefined>;Find first event matching type
Parameters
type
string
Event type to search for
Returns
Promise<CapturedEvent<P> | undefined>
First matching event or undefined
findAll()
ts
findAll: (type) => Promise<CapturedEvent<P>[]>;Find all events matching type
Parameters
type
string
Event type to search for
Returns
Promise<CapturedEvent<P>[]>
Array of matching events
list()
ts
list: () => Promise<CapturedEvent<P>[]>;Get all captured events
Returns
Promise<CapturedEvent<P>[]>
stop()
ts
stop: () => Promise<void>;Stop recording events
Returns
Promise<void>
