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.
Properties
Section titled “Properties”browserVersion?
Section titled “browserVersion?”
optionalbrowserVersion?:string
Defined in: packages/core/src/adapters/capture-runner.ts:63
Browser build, as the driver reports it (for example 124.0.6367.29).
deviceScaleFactor?
Section titled “deviceScaleFactor?”
optionaldeviceScaleFactor?:number
Defined in: packages/core/src/adapters/capture-runner.ts:70
Device pixel ratio the pages were rendered at.
fontsHash?
Section titled “fontsHash?”
optionalfontsHash?:string
Defined in: packages/core/src/adapters/capture-runner.ts:72
Digest of the installed system fonts, when they could be listed.
platform?
Section titled “platform?”
optionalplatform?: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.