Skip to content

Commit c11f9c5

Browse files
authored
docs: Add note about toBeDisabled not supporting aria-disabled (#303)
1 parent e460611 commit c11f9c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ expect(getByTestId('input')).toBeDisabled()
158158
expect(getByText('link')).not.toBeDisabled()
159159
```
160160

161+
> This custom matcher does not take into account the presence or absence of the `aria-disabled` attribute. For more on why this is the case, check [#144](https://github.com/testing-library/jest-dom/issues/144).
162+
161163
<hr />
162164

163165
### `toBeEnabled`
@@ -172,6 +174,8 @@ perspective.
172174
It works like `not.toBeDisabled()`. Use this matcher to avoid double negation in
173175
your tests.
174176

177+
> This custom matcher does not take into account the presence or absence of the `aria-disabled` attribute. For more on why this is the case, check [#144](https://github.com/testing-library/jest-dom/issues/144).
178+
175179
<hr />
176180

177181
### `toBeEmpty`

0 commit comments

Comments
 (0)