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
fix: add more validation to cy.intercept() #16577
Conversation
Thanks for taking the time to open a PR!
|
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
5583ac9
to
44db82b
Compare
44db82b
to
0c4d590
Compare
Co-authored-by: Zach Bloomquist <github@chary.us>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, hopefully this helps some people. 😄
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
User facing changelog
cy.intercept()
argument validation. Invalidhostname
s and extra arguments passed tocy.intercept()
now result in an error.Additional details
How has the user experience changed?
New errors
When an invalid number of arguments has been passed:

When an invalid hostname is passed:
PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?