Skip to content

ScreenCIConfig

ScreenCIConfig = Omit<PlaywrightTestConfig, "fullyParallel" | "workers" | "retries" | "testDir" | "testMatch" | "use" | "projects"> & object

Defined in: types.ts:624

optional envFile?: string

Path to a .env file to load before uploading. Relative to the screenci.config.ts file. Use this to load SCREENCI_SECRET and other env vars.

'.env'

projectName: string

Name of the project. Used to identify the project in screenci.com.

optional projects?: Omit<Project, "use"> & object[]

optional use?: Omit<PlaywrightTestConfig["use"], "trace"> & object

optional actionTimeout?: number

Timeout in milliseconds for individual actions like click(), fill(), etc.

Separate from the overall test timeout. Defaults to 30 seconds so actions don’t inherit the long test timeout.

30000

optional navigationTimeout?: number

Timeout in milliseconds for page navigations like goto(), waitForNavigation(), etc.

Separate from the overall test timeout. Defaults to 30 seconds.

30000

optional recordOptions?: RecordOptions

optional renderOptions?: RenderOptions

optional sendTraces?: boolean

Whether to send recorded traces to screenci.com for viewing and analysis.

When true, traces are uploaded and can be viewed on screenci.com. When false, traces are kept locally only.

true

optional trace?: Trace

When to record traces during test execution.

'retain-on-failure'

optional videoDir?: string

Directory that will be searched recursively for *.video.* files.

Matches files like example.video.ts, demo.video.js, etc.

Defaults to './videos'.