Closed joshua-rh closed 5 months ago
This should be available in the next version of aria-query
.
The fix was committed in this PR https://github.com/A11yance/aria-query/pull/447 (updated the relatedConcepts of the button role)
When is the deployment scheduled for this? Currently facing a similar issue in react-testing-library not being able to select strong
elements by their implicit role.
@samirergaibi - DTL 10 was released in our alpha
channel, you can give it a try. We still want to run it in some wider codebases before releasing it. If you can give it a try in your repo by using overrides
and provide inputs it can be amazing.
:tada: This issue has been resolved in version 10.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
@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 found