File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -62,11 +62,10 @@ oftentimes better to use `getByRole(expectedRole, { name: 'The name' })`. The
62
62
accessible name query does not replace other queries such as ` *ByAlt ` or
63
63
` *ByTitle ` . While the accessible name can be equal to these attributes, it does
64
64
not replace the functionality of these attributes. For example
65
- ` <img aria-label="fancy image" src="fancy.jpg" /> ` will be returned for both
66
- ` getByAltText('fancy image') ` and ` getByRole('img', { name: 'fancy image' }) ` .
67
- However, the image will not display its description if ` fancy.jpg ` could not be
68
- loaded. Whether you want to assert this functionality in your test or not is up
69
- to you.
65
+ ` <img aria-label="fancy image" src="fancy.jpg" /> ` will be returned for
66
+ ` getByRole('img', { name: 'fancy image' }) ` . However, the image will not display
67
+ its description if ` fancy.jpg ` could not be loaded. Whether you want to assert
68
+ this functionality in your test or not is up to you.
70
69
71
70
## Options
72
71
You can’t perform that action at this time.
0 commit comments