-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
API cy.end
example fails to run
#5752
Comments
@MikeMcC399 Yah it's a weird little command. I don't totally understand why this would fail though. I wonder if this started in a more recent version like 12.0 |
I tested with earlier versions as well and all the ones I tested showed failure: Node.js v20.11.1
Bottom line is that any example for |
I don't have enough experience writing Cypress tests to be able to specify a good replacement example for the use of e.g. See https://learn.cypress.io/real-world-examples/custom-cypress-commands Perhaps this could be used as an alternative? |
I think we should just remove the cy.end example. The kitchensink isn't exhaustive anyway and there's less utility for this command with the changes we've made to chaining. |
Would you want to remove the examples from the documentation section API > Other Commands > end > Examples ? Thank you for explaining about the history. I didn't know about that. |
If they're not working in these examples, we can remove them or come up with some example that does make sense to add. Something that's not chaining off of action commands I guess. |
Subject
API > Other Commands > end > Examples
Description
Current behavior
The following API example for
cy.end()
as shown on the documentation sitefails to run. The error is:
Desired behavior
API > Other Commands > end > Examples should provide an example of using
cy.end()
which runs.Test code to reproduce
git clone --branch cypress-end https://github.com/MikeMcC399/cypress-test-tiny cd cypress-test-tiny npm ci npx cypress run
Cypress Version
First reported on Cypress version:
13.7.0
Also reproducible on Cypress
13.15.2
Node version
v20.17.0v20.11.1
Operating System
Ubuntu
22.04.4
LTSDebug Logs
Other
Related issues
The text was updated successfully, but these errors were encountered: