Skip to content

CaptureEnvironment

Defined in: packages/core/src/adapters/capture-runner.ts:61

The rendering environment a runner captured in. Two captures with the same environment (and engine and viewport) should produce identical pixels; a different one explains a visual diff that no code change caused. Every field is optional: runners report what they can.

optional browserVersion?: string

Defined in: packages/core/src/adapters/capture-runner.ts:63

Browser build, as the driver reports it (for example 124.0.6367.29).


optional deviceScaleFactor?: number

Defined in: packages/core/src/adapters/capture-runner.ts:70

Device pixel ratio the pages were rendered at.


optional fontsHash?: string

Defined in: packages/core/src/adapters/capture-runner.ts:72

Digest of the installed system fonts, when they could be listed.


optional platform?: string

Defined in: packages/core/src/adapters/capture-runner.ts:68

OS and CPU text rendering depends on: the host’s process.platform-arch for a local browser; for a remote one what the browser reported (linux, windows), never the host’s.