Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Universal test helpers for WAI aria widgets #246

Open
gossi opened this issue Mar 12, 2021 · 1 comment
Open

Universal test helpers for WAI aria widgets #246

gossi opened this issue Mar 12, 2021 · 1 comment

Comments

@gossi
Copy link

gossi commented Mar 12, 2021

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants