Visual regression tests that people actually read

Priya Raman

Frontend Engineer · Pune

  • Oct 29, 2024
  • 2 min read
  • 9
Visual regression tests that people actually read

Fewer snapshots, better diffs, and a review channel with manners. The best tools in our studio are the ones nobody has to think about.

What we rebuilt

Visual regression output goes to a channel with one rule: every diff gets a reaction within a day. Fewer snapshots and better naming made the diffs short enough that people actually look.

Plate 1 from the "Visual regression tests that people actually read" galleryPlate 2 from the "Visual regression tests that people actually read" galleryPlate 3 from the "Visual regression tests that people actually read" galleryPlate 4 from the "Visual regression tests that people actually read" galleryPlate 5 from the "Visual regression tests that people actually read" galleryPlate 6 from the "Visual regression tests that people actually read" galleryPlate 7 from the "Visual regression tests that people actually read" galleryPlate 8 from the "Visual regression tests that people actually read" galleryPlate 9 from the "Visual regression tests that people actually read" galleryPlate 10 from the "Visual regression tests that people actually read" galleryPlate 11 from the "Visual regression tests that people actually read" galleryPlate 12 from the "Visual regression tests that people actually read" gallery
Detail from the offsite whiteboard wall.

What we kept

Six months in, variables replaced most of our style duplication. Modes for light and dark themes held up well, while our first attempt at spacing variables was quietly deleted and redone.

  1. Remove plugins nobody opened this month
  2. Automate the release notes
  3. Document with live components
  4. Lint for raw values in pull requests

Pruning the plugin list

We rebuilt the documentation site around live components rather than screenshots. It is slower to write but never lies, which turned out to matter more than speed.

A tiny lint rule now fails any pull request that introduces a raw hex value. It is forty lines of Node, runs in under a second, and has caught more drift than any design review.

If you try any of this on your own team, we would love to hear what went differently. The best notes in this journal started as someone else’s correction.

Next time we will bring the numbers from the following quarter and see whether any of this held up outside the studio.


Found this useful?

Priya Raman

About the author

Priya Raman

Frontend Engineer · Pune

Priya builds the component library and the token pipeline behind it. She is happiest deleting CSS and writing small tools that make reviews shorter.

Related dispatches

All posts

9 comments

Leave a comment

Already have an account? Log in

Your email is never shown.

  • Hannah Brooks

    Oct 29, 2024

    This matches our experience almost exactly. The renaming pass was painful, but nobody wants to go back.

    Priya Raman

    Author Nov 2, 2024

    Thanks for reading. We did measure it: review time dropped by about a third over two months.

  • Lena Vogel

    Nov 3, 2024

    How long did the whole migration take, start to finish?

  • Hannah Brooks

    Author's pick Nov 11, 2024

    The screenshots in the gallery helped a lot. Seeing the before and after side by side made it click.

  • Arjun Mehta

    Nov 16, 2024

    We shipped the same fix last month. Nice to know we were not the only ones fighting it.

  • Mei Lin

    Nov 17, 2024

    We shipped the same fix last month. Nice to know we were not the only ones fighting it.

    Marcus Chen

    Nov 18, 2024

    This is a great point. We ran into the same wall.

    Priya Raman

    Author Nov 19, 2024

    Glad it helped. The list is adapted from a checklist we keep in the studio wiki.

  • Nadia Haddad

    Nov 17, 2024

    We tried something similar last year and stalled at the review step. Your agenda idea might unblock us.

Previous

Line length, measured on real devices

Next

Critique notes: three checkout pages, side by side