DEV Community

Discussion on: Automated Accessibility Part 3: Regression Tests

Collapse
 
somaalapati profile image
Soma S Alapati

Hi Mark, I know we need to perform functional regression testing as there is an integration between components. Change in one component may impact other integrated components, so regression testing is essential to make sure any new change doesn't break the existing functionality. On the other hand UI components and their attributes are mostly independent from each other. For example aria-expanded attribute scope is limited to expand/collapse button, so my question is what kind of benefit we can get by writing accessibility regression tests to this button or similar components. Can we really get ROI from these a11y regression tests?

Collapse
 
steady5063 profile image
Mark Steadman

Great Question!

The biggest benefit from ROI for development teams is time. The thing I see over and over again is development teams changing their components and behaviors because they do not understand ARIA or the accessible behavior of a component. Then we manual testing happens again from an accessibility team or QA it is broken again.

Adding regression tests ensures that that behavior stays put. It also helps cut the cost of debugging issues with screen reader bugs as well!