cypress-testing-library icon indicating copy to clipboard operation
cypress-testing-library copied to clipboard

Use Cypress.Commands.overwriteQuery when adding a command that already exists

Open mohsen1 opened this issue 2 years ago • 2 comments

We're running to similar issues reported here https://github.com/testing-library/cypress-testing-library/pull/238

Some commands already exists in the Cypress namespace. To make this library future proof, I'm using the override API to override commands if Cypress adds similarly named commands to list of its commands.

In our case we ran into issues for the findAllByLabelText command.

  • [ ] Documentation
  • [x] Tests
  • [ ] Ready to be merged

mohsen1 avatar May 25 '23 10:05 mohsen1

please release it! multiple problem solver

FaelCaporali-brickup avatar Sep 21 '23 17:09 FaelCaporali-brickup

Do you need any help with this PR?

preslavpetkov avatar Feb 19 '24 10:02 preslavpetkov