-
Notifications
You must be signed in to change notification settings - Fork 405
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
toHaveAccessibleDescription does not include aria-label text #500
Comments
toHaveAccessibleDescription
does not include aria-label text
toHaveAccessibleDescription
does not include aria-label text
This library does not compute the accessible description itself. It relies on dom-accessibility-api for this. @eps1lon as the owner of the repo for dom-accessibility-api, would you be able to chime in? I'm not sure if this is a known issue, or if we can transfer this issue to your repository. I'm going to close this one, just because the fix does not lie in this library. But we can continue the discussion or even re-open if we need to. |
@greypants Can you file this against https://github.com/eps1lon/dom-accessibility-api please so that we can track (we can't move the issue there unfortunately)? |
Thanks! Moved here: eps1lon/dom-accessibility-api#955 |
@testing-library/jest-dom
: "5.16.5"@testing-library/react
: "13.4.0"node
version: 18Relevant code or config:
What you did:
Screen readers include the svg aria-label in the accessible description, but jest-dom does not.
What happened:
Reproduction:
https://codesandbox.io/s/react-testing-library-demo-forked-45xzdn?file=/src/__tests__/toHaveAccessibleDescription.js
Problem description:
aria-label contents are not included in the accessible description.
Suggested solution:
aria-label contents should be included in accessible descriptions.
The text was updated successfully, but these errors were encountered: