feat: add toBePressed matcher (#203)
What:
New toBePressed matcher is added
Why:
Closes #203
Checklist:
- [x] Documentation
- [x] Tests
- [x] Updated Type Definitions
- [x] Ready to be merged
In my opinion this PR could be followed by another one which would add support for checking aria-pressed="mixed". Maybe toBePartiallyPressed? It would follow the same approach as splitter toBeChecked and toBePartiallyChecked into two separate matchers.
Hi, may I ask for reviews?
Hi @gnapse, can I kindly ask for a review?
@all-contributors please add @kretajak for code, test
:tada: This PR is included in version 6.7.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
I have created a follow-up with toBePartiallyPressed matcher.