Screenshot a list of URLs for a visual audit
Когда использовать: You have a list of pages and need to eyeball them all after a change.
Поток
-
Navigate and captureFor each URL in [list], navigate, wait for load, take a full-page screenshot named <slug>.png.✓ Скопировано→ 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.✓ Скопировано→ Changed-page list
-
Summarize findingsWrite a 1-paragraph summary: how many pages, how many changed, which likely need review.✓ Скопировано→ Quick status you can paste into a PR description
Итог: A baseline-ready screenshot set with a diff report, without setting up a visual regression pipeline.
Подводные камни
- Dynamic content (dates, A/B banners) shows false diffs — Add
puppeteer_evaluateto hide those elements via CSS before the screenshot