screencast
Records WebM video of tests using Playwright’s screencast API.
When captions is enabled, action annotations are burned into the video;
when subtitles is enabled, a standalone .srt is also produced. Default
on=fail keeps videos for failed tests only; on=test keeps every test’s
video.
Note: enabling Playwright’s helper-level video: true together with this
plugin produces two independent recordings (output/videos/*.webm from the
helper, output/screencast/*.webm from this plugin).
Configuration
Section titled “Configuration”plugins: { screencast: { enabled: true, on: 'fail', }}on= modes
Section titled “on= modes”- fail — record while running; delete on pass, keep on fail (default)
- test — record and keep every test’s video
Other config options:
captions: burn-in action overlays viapage.screencast.showActions(). Default: true.subtitles: also write a standalone.srtfile alongside the video. Default: false.video: record a video. Withvideo=false, subtitles=true, only the.srtis produced. Default: true.size: pass-through{ width, height }forscreencast.start.quality: pass-through 0–100 forscreencast.start.
CLI examples:
npx codeceptjs run -p screencastnpx codeceptjs run -p screencast:on=testnpx codeceptjs run -p screencast:on=test;captions=false;subtitles=trueParameters
Section titled “Parameters”config