-
Notifications
You must be signed in to change notification settings - Fork 469
*ByRole doesn't work for the menu
role
#1059
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
*ByRole doesn't work for the menu
role
#1059
Comments
Does the problem also reproduce locally? We've had some problems with the testing environment of codesandbox in the past. |
@eps1lon Yes, sorry for not specifying that. The versions at the beginning of the issue correspond to a local reproduction. I updated the issue. |
Thanks for the repro. The implementation for the accessible name of Will work on a fix that hopefully keeps WPT conformity. ACCNAME and ARIA are currently just not really consistent. ARIA reads like "name from author" should only consider "name from author" but ACCNAME makes no such prescriptions. |
Uh oh!
There was an error while loading. Please reload this page.
@testing-library/dom
version: 8.9.1jest
27.3.0Relevant code or config:
An example with
getByRole
(the same is true forqueryByRole
andfindByRole
as well as witharia-label
directly on theul
, see codesandbox)What happens:
Reproduction:
The issue reproduces locally (in the environment described at the beginning of the issue), also in codesandbox
Problem description:
Even though we can always test for the presence of menu items, it's important to test that the list with the
menu
role also exists (otherwise VoiceOver for example doesn't recognize the list as a menu and it's impossible to navigate inside)Suggested solution:
Don't really have one. Probably it's an issue with
aria-query
because there's this issue - A11yance/aria-query#150, but I'm not sure because I see the description for the menu role in their code.The text was updated successfully, but these errors were encountered: