Closed
Description
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 notselected
: Indicates whether a selectable element is currently selected or notchecked
: Indicates the state of a checkable element.busy
: Indicates whether an element is currently busy or notexpanded
: 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.