-
Notifications
You must be signed in to change notification settings - Fork 3.4k
feat(driver): Add overwrite option to Cypress.Screenshot.defaults
#18457
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
feat(driver): Add overwrite option to Cypress.Screenshot.defaults
#18457
Conversation
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 |
||||||||||||||||||||||||||||||||||
BlueWinds
left a comment
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.
Looks good to me.
|
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
User facing changelog
Users can pass
overwrite: trueoption toCypress.Screenshot.defaultsto change default behavior to overwrite existing screenshots without having to setoverwritefor eachcy.screenshotcommand.Additional details
The support for this feature was actually added in the previous PR: #18280 , but this PR adds the default setting for the option to
falseand adds an additional test to specifically focus on this usage (the documentation also needs to be updated to reflect support for this feature).PR Tasks
cypress-documentation? Addoverwriteoption forCypress.Screenshot.defaultscypress-documentation#4154type definitions? --> N/Acypress.schema.json? --> N/A