-
Notifications
You must be signed in to change notification settings - Fork 607
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
[Found a fix] Problems with usage of puppeteer screenshooting #1344
Comments
Patch file cannot be attached, so I post it here:
|
see #1344 "found a solution to several randomly appearing problems that we encountered, whenever we switched to a Backstop (docker) version > 4.4.2."
@r-oldenburg I applied your patch and I am doing a release of this today. Would love to know if this fixes issues for others. Thanks much for this fix! |
@garris Wow. That is a prompt reaction! |
I am wondering if there is a way to do this automatically based on the type of screenshot the user is configuring? Maybe just for |
@garris Possible, of course. But I am not sure if this really only happens in the So: you could activate the new logic by default and allow users to go back. |
Crap -- I didn't think this would affect current implementations. I would rather that engineers can opt-in as opposed to opt-out. |
Removing the async part I am not that concerned about -- the |
captureBeyondViewport=false I guess could cause regressions if someone is trying to capture a whole document |
Thanks @r-oldenburg -- I think the reason this would be an edge case is because whole document selectors are actually processed in a different flow earlier in the script. Someone needs to take a much closer look at this file and add comments -- right now -- it is totally unreadable. 🤦 There is a reason why this software is free! 😄 Anyway, If I can manage it I will look closer and add comments such that we could reason about what regressions we should expect. Thanks for this fix though -- I think this catalysed some movement on this problem. |
Thanks also for this great tool!!! |
Still I would propose a switch or a config object to be optionally passed in. So that users can have a way out if they encounter regression. |
I agree we should have a switch. I will add this if I get a chance. You are more than welcome to post patch or PR with flag. Cheers! |
Since v5.3.7 Puppeteer does not capture beyond viewport anymore, which could cause some issues for people relying on it. A new flag `captureBeyondViewport` for toggling that setting is introduced in engineOptions as discussed in garris#1344.
Since v5.3.7 Puppeteer does not capture beyond viewport anymore, which could cause some issues for people relying on it. A new flag `captureBeyondViewport` for toggling that setting is introduced in BackstopJS settings as discussed in garris#1344.
Hey guys,
I had several hard days of debugging when I found a solution to several randomly appearing problems that we encountered, whenever we switched to a Backstop (docker) version > 4.4.2.
And there are several other issues that (for me) look related to this...
Our problems:
selectorExpansion=true
Findings from investigation:
The Fix/Workaround, both within source of backstop:
captureBeyondViewport: false
I will add a patch here.
Also did I have to change our viewport definition to height: 10000 (because
captureBeyondViewport: false
probably would keep us from getting screenshots further down on the page, I suppose. Haven't tested it without)THAT FIXED ALL THE PROBLEMS FOR US.
For over a week now we are working with Backstop 5.3.4 in our CI pipeline (10 Devs, gitlab pipeline, ~10-20 MRs per day) using this patched version and it works just like a charm.
Interpretation:
I suppose there are two things happening here:
captureBeyondViewport: false
The text was updated successfully, but these errors were encountered: