-
Notifications
You must be signed in to change notification settings - Fork 273
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
docs: update recommended queries doc #1133
Comments
We should add (next on my todo list) the support for the different |
Adding accessiblity states to |
Created the corresponding issue #1134. We might even consider marking |
Also dropping this from DTL as reference: https://testing-library.com/docs/queries/about#priority |
🎉 Finally resolved in #1531! |
Describe the Feature
After merging #1127 we should revisit our How should I query? document and update the recommended queries.
The open question remains what should be the recommended queries but I think we should promote
byRole
as one of the top ones following arguments by KCD described here: https://kentcdodds.com/blog/common-mistakes-with-react-testing-library#not-using-byrole-most-of-the-timePossible Implementations
We could go with something like this:
Related Issues
#1127
The above list is just a first draft, but we need to start with something ;-)
@AugustinLF @pierrezimmermannbam @thymikee looking for your input.
I am especially curious whether
byRole
is ready to be promoted as primary query, or should we implement implicit roles for RN views first as mentioned in #1130.The text was updated successfully, but these errors were encountered: