Comments (6)
@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
from cypress-documentation.
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
Cypress version | result |
---|---|
10.11.0 | failed |
11.2.0 | failed |
12.7.4 | failed |
13.7.0 | failed |
Bottom line is that any example for cy.end()
should work and should pass linting.
from cypress-documentation.
I don't have enough experience writing Cypress tests to be able to specify a good replacement example for the use of cy.end()
, however I did find it used with Cypress.log
:
e.g. log.end()
in cypress-realworld-testing:
See https://learn.cypress.io/real-world-examples/custom-cypress-commands
Perhaps this could be used as an alternative?
from cypress-documentation.
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.
from cypress-documentation.
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.
from cypress-documentation.
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.
from cypress-documentation.
Related Issues (20)
- API `cy.end` example fails linting `cypress/unsafe-to-chain-command`
- Workflow failures executing "Try it out" for GitHub Actions HOT 3
- the DOM loads as expected in Firefox, but not in Chrome, Electron, and Edge.
- Non-working advanced installation example for mismatched binary HOT 3
- Broken links to AWS Amplify Framework Authentication Library HOT 2
- Inconsistent package manager install / add instructions HOT 3
- Document how to rebuild package fast HOT 2
- macOS 10.9 too low for support HOT 6
- Docusaurus links scroll past heading HOT 1
- CT: cypress doesn't recognize "+" symbol in the path to the component
- video for setup test is missing HOT 4
- Misaligned cypress cache list tables in CLI guide HOT 2
- Broken link in "Migrating from Selenium to Cypress" HOT 1
- Add correct Types to Cypress examples
- Code coverage for swc projects — especially for next.js >=14 HOT 3
- Netlify previews giving 404 errors or not generated HOT 3
- Document SRI that will be compatible with Cypress
- Documentation states you can bypass launchpad with flags, not working HOT 2
- Package 'libasound2' has no installation candidate on Ubuntu 24.04
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cypress-documentation.