We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a78164 commit 20e09e0Copy full SHA for 20e09e0
docs/dom-testing-library/api-queries.md
@@ -612,7 +612,7 @@ accessible name query does not replace other queries such as `*ByAlt` or
612
`*ByTitle`. While the accessible name can be equal to these attributes, it does
613
not replace the functionality of these attributes. For example
614
`<img aria-label="fancy image" src="fancy.jpg" />` will be returned for both
615
-`getByAlt('fancy image')` and `getByRole('image', { name: 'fancy image' })`.
+`getByAltText('fancy image')` and `getByRole('image', { name: 'fancy image' })`.
616
However, the image will not display its description if `fancy.jpg` could not be
617
loaded. Whether you want assert this functionality in your test or not is up to
618
you.
0 commit comments