-
Notifications
You must be signed in to change notification settings - Fork 471
getByRole does not work with "term" #703
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
Comments
#683 should fix this. |
Closed by #683 . |
It's still not working on 10.4.7 https://codesandbox.io/s/react-testing-library-demo-zmkvi?file=/src/__tests__/hello.js |
I have opened a PR on A11yance/aria-query#70 |
Thanks @alanhchoi and @marcosvega91. |
For anyone who visits here, this is a workaround you can try until the new version of Add to package.json:
4.0.2 is the latest version of |
Would it help if we pinned this version in DOM Testing Library for now? |
For this particular issue, yes. But it would mean we would drop back to ARIA 1.1 instead of 1.2. Just by quantity this would make matters worse. Since you can manually resolve versions I would rather recommend #703 (comment) if |
@all-contributors add @supervanya for bug |
I've put up a pull request to add @supervanya! 🎉 |
@testing-library/react: 10.4.4
jest: 24.9.0
@testing-library/jest-dom: ^5.11.0
Relevant code or config:
What you did:
I was trying to get
dt
elements by role ("term")What happened:
I am getting an error:
Unable to find an accessible element with the role "term"
(more info in the sandbox)
Reproduction:
https://codesandbox.io/s/react-testing-library-demo-skxjh?file=/src/__tests__/hello.js
Problem description:
term
is one of the accessible roles as stated on w3 hereIt used to work in the
@testing-library/react: 10.2.1
but broke in10.3.0
Suggested solution:
I am a pretty new front end developer and unfortunately don't have a solution but I would really appreciate any help and I could possibly try to create a PR (never done this before though)
The text was updated successfully, but these errors were encountered: