Skip to content

Should this case be supported by getByLabelText()? #198

Closed
@ValentinH

Description

@ValentinH

It's a question but not a support one, more a feature request 😋

In our app, we are using the material-ui Chip to display radio like buttons. If I'm not mistaking, we set the right aria attributes and roles so they are accessible.

In the following case, I was expecting the getByLabelText('open') to return the div containing the aria-checked:

<div
  aria-checked="false"
  role="radio"
  tabindex="0"
>
  <span>
    open
  </span>
</div>

What do you think?

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