Catching visual regressions between deploys with two API calls
Описание и применение
Автоматический снимок экрана и мониторинг выявляют визуальные регрессии после развертывания, уменьшая количество ошибок, обнаруживаемых только после релиза.
Задача
Visual changes can slip through code and unit tests, causing broken UI elements to be noticed only after deployment.
Результат
Visual regressions are detected automatically, reducing post‑deploy fixes and improving UI reliability.
Рабочий процесс
- 1. Trigger CI job after deploy.
- 2. Use Screenshot API to capture full page or element with curl and store as artifact.
- 3. Optionally create a monitor via API to watch the page at intervals.
- 4. Monitor compares new capture to previous and posts diff to webhook if threshold exceeded.
- 5. Integrate webhook with Slack, ticketing, or automation workflows.
Доказательства
Unit and end‑to‑end tests tell you the logic works. They rarely tell you the page still looks right
You can take a screenshot of the page from your CI job with one request and store it as a build artifact
If you want to be told when a page changes visually between deploys, create a monitor and point it at any webhook you control
The threshold is a flat percentage of changed pixels across the whole page. A rotating ad or a live timestamp counts toward it
- Дата записи: 2026-10-03T12:55:46.875Z