Skip to content

EachVariant

EachVariant = object

Defined in: builder.ts:36

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:38

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


optional recordOptions?: Partial<RecordOptions>

Defined in: builder.ts:40

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


optional use?: Record<string, unknown>

Defined in: builder.ts:42

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