Testing for unforseen visual change

Your computer can (probably) see better than you

Paul Stanton
Oct 21, 2016 · 5 min read
Image for post
Image for post

We start again, with a button.

Image for post
Image for post
Remember me?
btn btn--primary btn--outline btn--small btn--disabled
btn btn--disabled btn--outline btn--small btn--primary
Image for post
Image for post
Just one of many button grids

Wraith is that annoying colleague who hovers over your shoulder and points out the tiniest difference, but only when you ask it to, which is nice.

Shall we play a game?

Here’s two screenshots of that button grid but I’ve made a change, can you see it? Try not to scroll down too much until you’ve had a good look…

Image for post
Image for post
Stop scrolling, can you tell what it is yet?

Figured it out yet?

I can’t tell, but Wraith can.

Image for post
Image for post
Wraith: “What the f… m8??”
Image for post
Image for post
Gallery of Fails

Spend time setting up a safety net

If you work on a design system, however large, spending time learning and setting up a tool like Wraith will reduce the amount of time you spend manually checking your components every time you make a change, and it’ll let you release with more confidence that unintended changes haven’t leaked out to other components.

No-one likes leaky styles

We don’t use visual regression testing to fail builds, but it’s becoming an extremely valuable safety net to run before committing changes or performing a release of our design system. We’ve all had issues where a change with CSS is one place affects other components in ways we weren’t expecting, and Wraith helps us catch those.

Pulsar

The product design team at Jadu

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store