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

feat: add toBePressed matcher (#203)

Open kretajak opened this issue 1 year ago • 1 comments

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.

kretajak avatar Dec 21 '24 23:12 kretajak

Hi, may I ask for reviews?

kretajak avatar Feb 21 '25 08:02 kretajak

Hi @gnapse, can I kindly ask for a review?

kretajak avatar Aug 09 '25 12:08 kretajak

@all-contributors please add @kretajak for code, test

gnapse avatar Aug 13 '25 19:08 gnapse

@gnapse

I've put up a pull request to add @kretajak! :tada:

allcontributors[bot] avatar Aug 13 '25 19:08 allcontributors[bot]

:tada: This PR is included in version 6.7.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Aug 13 '25 19:08 github-actions[bot]

I have created a follow-up with toBePartiallyPressed matcher.

kretajak avatar Aug 14 '25 13:08 kretajak