Skip to content

EachVariant

EachVariant = object

Defined in: builder.ts:35

One variant in a generic video.each(...) fan-out. Each variant produces a separate video (its own identity and stored history), differing only in its recording options and/or forwarded Playwright use options.

key: string

Defined in: builder.ts:37

Stable label appended to the video name, e.g. 'mobile' or 'dark'.


optional recordOptions?: Partial<RecordOptions>

Defined in: builder.ts:39

Recording options for this variant (merged over the video’s defaults).


optional use?: Record<string, unknown>

Defined in: builder.ts:41

Forwarded Playwright use options for this variant, e.g. { colorScheme: 'dark' }.