Playwright / Scenario
Snapshot Mutiny on the CI Ship
Visual tests green on every Mac, red on every Linux runner. Baselines, platform suffixes, and one date widget are staging a mutiny.
- Difficulty
- Medium
- Format
- Scenario
- Points
- 150
- Estimate
- 13 min
// MISSION BRIEF
Your Mission
The dashboard's new visual test sailed through review on the author's MacBook. In CI it has never once passed. The failure output and repo listing below hold everything you need.
Diagnose the platform problem, then set the policy: where baselines come from, and what to do about the parts of the page that refuse to sit still.
Decisions are weighted.
// FIRST CONTACT
Battle teaser
First artifact
CI failure output (ubuntu-22.04 runner)
Why did the very first CI run fail with 'snapshot doesn't exist'?
- AtoHaveScreenshot is unsupported in Docker
- BThe repo's .gitignore excluded the snapshot
- CBaselines are platform-suffixed; the committed -darwin baseline is invisible to a Linux runner, which needs its own -linux baseline
- DThe test file name must match the snapshot name exactly
Answers, scoring, hints, and the full battle stay sealed.
// SKILL TAGS
playwrightvisual-testingsnapshotsci-cddebugging