Screenshot a list of URLs for a visual audit
Quand l'utiliser : You have a list of pages and need to eyeball them all after a change.
Déroulement
-
Navigate and captureFor each URL in [list], navigate, wait for load, take a full-page screenshot named <slug>.png.✓ Copié→ N screenshots saved
-
Diff against baseline (optional)Compare each screenshot to the matching file in ./baseline/. Flag any that differ by more than 5% pixel diff.✓ Copié→ Changed-page list
-
Summarize findingsWrite a 1-paragraph summary: how many pages, how many changed, which likely need review.✓ Copié→ Quick status you can paste into a PR description
Résultat : A baseline-ready screenshot set with a diff report, without setting up a visual regression pipeline.
Pièges
- Dynamic content (dates, A/B banners) shows false diffs — Add
puppeteer_evaluateto hide those elements via CSS before the screenshot