-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cypress Commands adddQuery Error #700
Comments
Bump, this is also happening to me |
Take a look at this testing-library/cypress-testing-library#238 (comment). |
This is happening to me also. testing-library/cypress-testing-library#238 (comment) this didn't help me unfortunately |
@jmitchell-figure have you been able to fix it? |
I had the same error and the fix was also to ensure that the file was "run" only once. console.log('Adding support commands/queries'); // => If you see this log multiple times, the issue is likely on your end
Cypress.Commands.addQuery('findAllByLabelText', findAllByLabelTextFn); |
Describe the bug
When going through the examples to setup within Cypress I am seeing the following error when trying to run any tests:
Cypress.Commands.addQuery() is used to create new queries, but findAllByLabelText is an existing Cypress command or query, or is reserved internally by Cypress.
To Reproduce
**Expected behavior
Cypress should run tests without the error.
Screenshots
Desktop (please complete the following information):
**Note
Cypress Version: 12.5.1
The text was updated successfully, but these errors were encountered: