Skip to content

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

Description

@kaiyoma

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.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions