Skip to content

Commit 20e09e0

Browse files
authored
docs(api-queries): Fix getByAltText function name (#461)
1 parent 8a78164 commit 20e09e0

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
@@ -612,7 +612,7 @@ accessible name query does not replace other queries such as `*ByAlt` or
612612
`*ByTitle`. While the accessible name can be equal to these attributes, it does
613613
not replace the functionality of these attributes. For example
614614
`<img aria-label="fancy image" src="fancy.jpg" />` will be returned for both
615-
`getByAlt('fancy image')` and `getByRole('image', { name: 'fancy image' })`.
615+
`getByAltText('fancy image')` and `getByRole('image', { name: 'fancy image' })`.
616616
However, the image will not display its description if `fancy.jpg` could not be
617617
loaded. Whether you want assert this functionality in your test or not is up to
618618
you.

0 commit comments

Comments
 (0)