cypress-testing-library
cypress-testing-library copied to clipboard
Use Cypress.Commands.overwriteQuery when adding a command that already exists
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
please release it! multiple problem solver
Do you need any help with this PR?