Visual Snapshot Pitfalls

Use when tests compare screenshots or stored snapshots against a baseline (Playwright toHaveScreenshot, jest-image-snapshot, text and DOM snapshots): which environment makes and compares baselines, the two different thresholds (per pixel colour and whole-image failure), masking dynamic regions instead of widening them, updating baselines and reviewing the diff, received images on CI, retries, and keeping text snapshots short and inline.

techmefr Updated

File contents

techmefr/mentis commit 7d683ce7a8

Frequently asked questions

npx get-skill add techmefr/visual-snapshot-pitfalls