diff --git a/README.md b/README.md index 67dbd06b..fa660966 100644 --- a/README.md +++ b/README.md @@ -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). +
### `toBeEnabled` @@ -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). +
### `toBeEmpty`