Skip to content

Commit

Permalink
docs: Add note about toBeDisabled not supporting aria-disabled (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnapse authored Oct 23, 2020
1 parent e460611 commit c11f9c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ expect(getByTestId('input')).toBeDisabled()
expect(getByText('link')).not.toBeDisabled()
```

> 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).
<hr />

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

> 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).
<hr />

### `toBeEmpty`
Expand Down

0 comments on commit c11f9c5

Please sign in to comment.