Skip to content

Commit 83074aa

Browse files
committed
docs: add toBeVisible matcher aria-hidden note
1 parent d24b6be commit 83074aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,11 @@ expect(getByText('Visible Example')).toBeVisible()
434434
expect(getByText('Hidden Attribute Example')).not.toBeVisible()
435435
```
436436

437+
> This custom matcher does not take into account the presence or absence of the
438+
> `aria-hidden` attribute. For more on why this is the case, check
439+
> [#162](https://github.com/testing-library/jest-dom/issues/162) and related
440+
> [#144](https://github.com/testing-library/jest-dom/issues/144).
441+
437442
<hr />
438443

439444
### `toContainElement`

0 commit comments

Comments
 (0)