diff --git a/docs/dom-testing-library/api-queries.md b/docs/dom-testing-library/api-queries.md index e055a683a..1ccdd2695 100644 --- a/docs/dom-testing-library/api-queries.md +++ b/docs/dom-testing-library/api-queries.md @@ -152,6 +152,12 @@ The example below will find the input node for the following DOM structures: // Wrapper labels +// Wrapper labels where the label text is in another child element + + // aria-label attributes // Take care because this is not a label that users can see on the page, // so the purpose of your input must be obvious to visual users. @@ -193,8 +199,21 @@ switching to `aria-label` or `aria-labelledby`. If it is important that you query an actual `