Prompt
I need a way to catch unintended UI changes before production
Latest observation
Oct 27, 2026
OpenAI APIWeb search: off
A solid way to catch unintended UI changes before production is to add visual regression testing to your release process.
What to use
Common options:
- Chromatic for Storybook-based components
- Percy
- Playwright screenshot testing
- Cypress with visual comparison plugins
- Applitools if you want more advanced visual AI checks
Recommended approach
- Create stable reference screenshots for key pages/components.
- Run automated UI tests in CI on every PR.
- Compare new screenshots against the baseline.
- Fail the build when differences exceed an allowed threshold.
- Review diffs to decide if the change is intentional.
Best practices
- Test the most important screens, not every possible page.
- Use fixed data, seeded content, and consistent fonts/themes.
- Run tests at consistent viewport sizes.
- Mask dynamic areas like timestamps, ads, or avatars.
- Keep baselines updated intentionally when changes are approved.
If you want a simple starting point
If your app already uses Storybook, start with Chromatic.
If you want something more general and code-based, use Playwright screenshot tests in CI.
If you want, I can help you pick the best tool for your stack and show a sample setup.