I often help teams add tests to existing web apps via Playwright or Cypress
I often help teams add tests to existing web apps via Playwright or Cypress.
When I do, I fix dozens of usability and accessibility problems too.
Pattern:
1. Try to write test
2. Realize the HTML is lousy
3. Improve the HTML so my test can focus on user-facing features
4. Write the test
Result:
Better UX
Better accessibility
Better tests
Everyone wins.
Other things I find while writing tests:
Console warnings and errors
Performance problems
Lack of sufficient test data
Unclear requirements
Flakey features
The act of writing tests is about far more than test coverage.
It exposes issues that are easy to overlook.