-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Remove cy.server() boilerplate #439
Comments
I agree. The idea behind But I imagine most if not all users don't pass anything into it. In that sense it just becomes "that one thing you do before cy.route". There is a looming network traffic proxy rewrite coming soon, and we were going to remove it then, because we will add breaking changes to the routing API anyway. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
The features requested in this issue are now possible as part of
Please see the If you encounter any issues or unexpected behavior while using |
There's probably a really good reason not to do this, but I thought I'd float it just in case.
If you call
cy.route()
without first callingcy.server()
you getCypressError: cy.route() cannot be invoked before starting the cy.server()
Totally makes sense.. but in every Cypress test I've written thus far my only use case for
cy.server()
is adding it prior to the firstcy.route()
call.Is there any reason why, instead of erroring it could just call
cy.server()
for me?The text was updated successfully, but these errors were encountered: