ember-a11y / ember-a11y-testing

A suite of accessibility tests that can be run within the Ember testing framework
MIT License
137 stars 49 forks source link

Universal test helpers for WAI aria widgets #246

Open gossi opened 3 years ago

gossi commented 3 years ago

Over the weekend I did wrote tests for a select component. I extracted the tests for it in a couple of functions as they work on the a11y tree on top of the dom. The idea: "You can copy paste them" from one project to another.

I wrote a little more about this idea and explaining with my example: https://gist.github.com/gossi/9b4e4fcdb4798f3fc3915ab2dc9a1b9c

Of course this was just a first shot at the API for them to get some hands on experience. Overall I really want to share them with the greater public and whether ember-a11y-testing is the proper to contribute them to?

Would love to hear suggestions.

Thanks

MelSumner commented 3 years ago

This is really great! I would love to see this added to Ember Component Patterns - how to test could be its own sub-section per component. Let's also get the rest of the A11y WG to weigh in on the idea.