Visual Regression Tester
When to Trigger
- •UI component changes
- •CSS updates
- •"Check visual changes"
What to Do
- •Tool: Use Playwright toHaveScreenshot or similar; set threshold/maxDiffPixels for minor differences.
- •Scenes: Key states (default, loading, error, empty) and critical viewports (desktop, mobile).
- •Baseline: Generate baseline on first run; commit; failures show diff.
- •Stability: Use stable data (mocks) and hide timestamps/dynamic content if they cause noise.
Store screenshots in tests/visual/ or similar. Run in CI and treat failures as review prompts, not auto-fail, if flaky.