One of the guiding principles of the Testing Library APIs is that they should enable you to test your app the way your users use it, including through accessibility interfaces like screen readers.
See the page on queries for details on how using a semantic HTML query can make sure your app works with browser accessibility APIs.
Node container, ) → Map< String, List>
Returns a map, indexed by role name, with each value being an array of
containerwhich have that implicit ARIA role. [...]
Element element) → bool
Returns whether or not
elementshould be excluded from the accessibility API by the browser. [...]@JS('rtl.isInaccessible')
Node container, ) → void
Prints a list of all the implicit ARIA roles within
container, each role containing a list of all of the nodes which match that role. [...]