Skip to content
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

aria-expanded property seems to be missing, but appears in devtools #153

Open
kaiyoma opened this issue Feb 15, 2023 · 1 comment
Open

Comments

@kaiyoma
Copy link

kaiyoma commented Feb 15, 2023

I just started using cypress-axe, and the very first error I'm getting is this:

Required ARIA attributes must be provided
=========================================

<input type="search" autocomplete="off" class="ant-select-selection-search-input" role="combobox" aria-haspopup="listbox" aria-owns="rc_select_1_list" aria-autocomplete="list" aria-controls="rc_select_1_list" aria-activedescendant="rc_select_1_list_0" readonly="" unselectable="on" value="" id="rc_select_1" style="opacity: 0;">

Fix any of the following:
  Required ARIA attribute not present: aria-expanded

However, when I use devtools to inspect the element in question (a select from Ant Design), I can see that aria-expanded is actually there:

image

This problem is reproducible on all the Ant select components on the page. I'm running cy.checkA11y well after the page has fully rendered, so I don't think it's an issue of "the property hasn't shown up yet". The property appears to be there, but cypress-axe is not seeing it for some reason.

@kaiyoma
Copy link
Author

kaiyoma commented Feb 15, 2023

I'll also add that when I run the WAVE extension in Chrome on the same page, it doesn't report any problems with aria-expanded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant