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
chore: deprecate Cypress.Cookies.preserveOnce and Cypress.Cookies.defaults #21455
Conversation
Thanks for taking the time to open a PR!
|
Test summaryRun details
View run in Cypress Dashboard ➡️ Flakiness
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 |
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.
This is only deprecating the use of these within the types, so only users with TypeScript would see this. We should also send a warning message to the console when these commands are used like cy.route: https://github.com/cypress-io/cypress/blob/10.0-release/packages/driver/src/cy/commands/xhr.ts#L400:L400
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Cypress.Cookies.preserveOnce
andCypress.Cookies.defaults
as deprecated #21333User facing changelog
Cypress.Cookies.preserveOnce()
andCypress.Cookies.defaults()
are deprecated. In a future release, support forCypress.Cookies.preserveOnce()
andCypress.Cookies.defaults()
will be removed. Consider usingcy.session()
instead.Additional details
Cypress.Cookies.preserveOnce()
andCypress.Cookies.defaults()
APIs as deprecated.How has the user experience changed?
### PR Tasks
cypress-documentation
? deprecate Cypress.Cookies.preserveOnce and defaults cypress-documentation#4475type definitions
?cypress.schema.json
?