ember-a11y/ember-a11y-testing

Universal test helpers for WAI aria widgets

gossi opened this issue · 1 comments

gossi commented

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

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.