Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update api-queries.md
fix getByAltText function name
  • Loading branch information
bugzpodder authored May 10, 2020
commit 1dd6c3da1a08f4d9cd9ed463409bfaf28d3b4196
2 changes: 1 addition & 1 deletion docs/dom-testing-library/api-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ accessible name query does not replace other queries such as `*ByAlt` or
`*ByTitle`. While the accessible name can be equal to these attributes, it does
not replace the functionality of these attributes. For example
`<img aria-label="fancy image" src="fancy.jpg" />` will be returned for both
`getByAlt('fancy image')` and `getByRole('image', { name: 'fancy image' })`.
`getByAltText('fancy image')` and `getByRole('image', { name: 'fancy image' })`.
However, the image will not display its description if `fancy.jpg` could not be
loaded. Whether you want assert this functionality in your test or not is up to
you.
Expand Down