testing-library / cypress-testing-library

🐅 Simple and complete custom Cypress commands and utilities that encourage good testing practices.
http://npm.im/@testing-library/cypress
MIT License
1.8k stars 153 forks source link

configuring data-testid- enable multiple values to be set #213

Closed akus062381 closed 2 years ago

akus062381 commented 2 years ago

I have recently discovered cypress-testing-library (amazing by the way!) and have begun implementing it in our test code. We have 2 different testing ids that we use, and I would love to be able to configure cy.findByTestId to find either of them. Can this be implemented? Thanks!!

akus062381 commented 2 years ago

nevermind. just found https://github.com/testing-library/cypress-testing-library/issues/155