ScreenCIConfig
ScreenCIConfig =
Omit<PlaywrightTestConfig,"fullyParallel"|"workers"|"retries"|"testDir"|"testMatch"|"use"|"projects"> &object
Defined in: types.ts:624
Type Declaration
Section titled “Type Declaration”envFile?
Section titled “envFile?”
optionalenvFile?: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.
Example
Section titled “Example”'.env'projectName
Section titled “projectName”projectName:
string
Name of the project. Used to identify the project in screenci.com.
projects?
Section titled “projects?”
optionalprojects?:Omit<Project,"use"> &object[]
optionaluse?:Omit<PlaywrightTestConfig["use"],"trace"> &object
Type Declaration
Section titled “Type Declaration”actionTimeout?
Section titled “actionTimeout?”
optionalactionTimeout?: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.
Default
Section titled “Default”30000navigationTimeout?
Section titled “navigationTimeout?”
optionalnavigationTimeout?:number
Timeout in milliseconds for page navigations like goto(), waitForNavigation(), etc.
Separate from the overall test timeout. Defaults to 30 seconds.
Default
Section titled “Default”30000recordOptions?
Section titled “recordOptions?”
optionalrecordOptions?:RecordOptions
renderOptions?
Section titled “renderOptions?”
optionalrenderOptions?:RenderOptions
sendTraces?
Section titled “sendTraces?”
optionalsendTraces?: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.
Default
Section titled “Default”truetrace?
Section titled “trace?”
optionaltrace?:Trace
When to record traces during test execution.
Default
Section titled “Default”'retain-on-failure'videoDir?
Section titled “videoDir?”
optionalvideoDir?:string
Directory that will be searched recursively for *.video.* files.
Matches files like example.video.ts, demo.video.js, etc.
Defaults to './videos'.