jest-dom icon indicating copy to clipboard operation
jest-dom copied to clipboard

Make `.toHaveValue()` check value of `aria-valuenow` as a fallback to `value`

Open idanen opened this issue 3 years ago • 0 comments

Describe the feature you'd like:

Suggesting that .toHaveValue() support elements' aria-valuenow attribute

Suggested implementation:

When element doesn't have the value property, fallback to try and get the aria-valuenow attribute

idanen avatar Sep 20 '22 17:09 idanen