-
Notifications
You must be signed in to change notification settings - Fork 467
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
getByRole not finding Element by implicit role #1201
Comments
This should be available in the next version of |
When is the deployment scheduled for this? Currently facing a similar issue in react-testing-library not being able to select |
@samirergaibi - DTL 10 was released in our |
🎉 This issue has been resolved in version 10.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@testing-library/dom
version: 16.9See codesandbox
Relevant code or config:
What you did:
What happened:
Reproduction:
https://codesandbox.io/s/react-testing-library-demo-forked-lzjrl1?file=/src/__tests__/getByRole.js
Problem description:
According to https://testing-library.com/docs/queries/byrole/, we should use the HTMLElement's role. According to this table,
<strong>
has an implicit role ofstrong
but it does not get foundThe text was updated successfully, but these errors were encountered: