You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What you did:
Update cypress to latest version (13.4.0).
Update @testing-library/cypress to latest version (10.0.1)
What happened:
Cypress started in gui mode without issues. When running a test, it fails with the following error:
The following error originated from your test code, not from Cypress.
> Cypress.Commands.addQuery() is used to create new queries, but findAllByLabelText is an existing Cypress command or query, or is reserved internally by Cypress.
If you want to override an existing command or query, use Cypress.Commands.overrideQuery() instead.
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
Cypress could not associate this error to any specific test.
Reproduction repository:
Already described above under what you did
Problem description:
Looks like testing-library is trying to recreate a function that already exists in cypress.
Suggested solution:
Either use the built in method from cypress, or use Cypress.Commands.overrideQuery() instead in this case.
The text was updated successfully, but these errors were encountered:
After further reading error logs, it appears this may actually be an issue in the https://github.com/kentcdodds/dom-testing-library repo. I assumed it was here since the error was thrown within the scope of this repos code. However, it appears that the offending code that caused the error may be in the other repo after-all 🤷🏼♂️
If that's the case, feel free to close/recreate this issue over there.
cypress-testing-library
version: 10.0.1node
version: 16.17.0npm
(oryarn
) version: 8.15.0Relevant code or config:
cypress-testing-library/src/add-commands.js
Line 4 in 0f2f002
What you did:
Update
cypress
to latest version (13.4.0).Update
@testing-library/cypress
to latest version (10.0.1)What happened:
Cypress started in gui mode without issues. When running a test, it fails with the following error:
Reproduction repository:
Already described above under
what you did
Problem description:
Looks like testing-library is trying to recreate a function that already exists in cypress.
Suggested solution:
Either use the built in method from cypress, or use
Cypress.Commands.overrideQuery()
instead in this case.The text was updated successfully, but these errors were encountered: