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

Supports accessibilityStates in ByRole queries #1134

Closed
AugustinLF opened this issue Sep 23, 2022 · 0 comments · Fixed by #1161
Closed

Supports accessibilityStates in ByRole queries #1134

AugustinLF opened this issue Sep 23, 2022 · 0 comments · Fixed by #1161

Comments

@AugustinLF
Copy link
Collaborator

Describe the Feature

Like in @testing-library/dom (see docs), we should support accessibility states when querying by role.

The accessibilityStates existing are

  • disabled: Indicates whether the element is disabled or not
  • selected: Indicates whether a selectable element is currently selected or not
  • checked: Indicates the state of a checkable element.
  • busy: Indicates whether an element is currently busy or not
  • expanded: Indicates whether an expandable element is currently expanded or collapsed

Possible Implementations

We could like in DTL check which states correspond to which role and throw. But I'd treat that as a bonus and not a necessity.

Related Issues

#1133

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