Skip to content

Commit 233da82

Browse files
nickserveps1lon
andauthored
Update docs/dom-testing-library/api-queries.md
Co-authored-by: Sebastian Silbermann <[email protected]>
1 parent 4e16a07 commit 233da82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/dom-testing-library/api-queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ cy.findByRole('dialog').should('exist')
711711

712712
<!--END_DOCUSAURUS_CODE_TABS-->
713713

714-
By default, it's assumed that the first role of each element is supported, so only the first role can be queried. If you need to query an element by any role in its fallbacks instead, you can use `queryFallbacks: true`.
714+
By default, it's assumed that the first role of each element is supported, so only the first role can be queried. If you need to query an element by any of its fallback roles instead, you can use `queryFallbacks: true`.
715715

716716
> An element doesn't have multiple roles in a given environment. It has a single one. Multiple roles in the attribute are evaluated from left to right until the environment finds the first role it understands. This is useful when new roles get introduced and you want to start supporting those as well as older environments that don't understand that role (yet).
717717

0 commit comments

Comments
 (0)