We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
img
image
1 parent 38a24c9 commit 63cd4a2Copy full SHA for 63cd4a2
1 file changed
docs/queries/byrole.mdx
@@ -62,7 +62,7 @@ accessible name query does not replace other queries such as `*ByAlt` or
62
`*ByTitle`. While the accessible name can be equal to these attributes, it does
63
not replace the functionality of these attributes. For example
64
`<img aria-label="fancy image" src="fancy.jpg" />` will be returned for both
65
-`getByAltText('fancy image')` and `getByRole('image', { name: 'fancy image' })`.
+`getByAltText('fancy image')` and `getByRole('img', { name: 'fancy image' })`.
66
However, the image will not display its description if `fancy.jpg` could not be
67
loaded. Whether you want to assert this functionality in your test or not is up
68
to you.
0 commit comments