-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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: added wait before and after screenshot #15878
Conversation
added wait after screenshot
Thanks for taking the time to open a PR!
|
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.
@galr52 Could you give an explanation on why this new feature is necessary or link to an existing issue where people have requested this feature?
We'd like an understanding on why anyone would want this feature. We're not likely to add features without understanding the benefit because it is more to maintain in the future. Thanks.
in my app i have a screen that rerender on window resize. i found this open issue #9443 with this feature i can workaround the issue, wait a few ms and let my screen rerender before the screenshot |
@galr52 Can you provide a failing test cast that would now be passing with this solution? We need tests for all fixes and new features. Is there a reason adding Just off of this information, I think it would be more worthwhile to investigate the window:resize triggers on the screenshot than add an arbitrary wait feature. This seems to be adding a new feature to fix an issue instead of just fixing the issue outright. |
@jennifer-shehane the only solution i could think about that can fix the resize issue is to wait for all the "before:screenshot" subscribers. i cant provide a failing test because the image resolution is changing on screenshot events
|
@galr52 Thanks for taking the time with this PR. We'd like to see a solution for the resize events triggers overall instead of adding a generic wait before/after screenshot as a feature. Going to close this PR for now. |
added wait after screenshot
User facing changelog
Additional details
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?