Software Engineering
Testing components like a product
Visual, accessibility and behaviour tests for a component library, and what each one catches.
Nic Davidson

A component library is a product with thousands of users, and it deserves the same tests. Ours has three layers, and each catches something the others miss.
- Visual tests catch a change nobody meant to make.
- Accessibility tests catch a label, a role or a contrast ratio gone wrong.
- Behaviour tests catch a keyboard path or a focus trap that broke.
Together they let us ship a library update every week without fear.