-
Notifications
You must be signed in to change notification settings - Fork 203
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
small differences on the same image captured on headless : true / false mode #156
Comments
there is a font problem in the website. |
@anescobar1991 the font issue was solved but the problem stay here. i'm moving to asking support on puppeteer homeproject. |
@andreabisello were you able to solve your issue? |
@mdugue i will upgrade puppeteer, jest and jest-images-snapshot to the latest version and i will try , wait a moment |
@mdugue i updated my project with latest version of puppeteer, jest and jest-image-snapshot, problem still the same. |
@anescobar1991 the problem was not related with the font as i described when the issue was closed because the font issue was solved but the difference still there. can you reopen the issue please? |
@anescobar1991 yes I can confirm that this problem still exists |
The issue is not with jest-image-snapshot sadly, all jest-image-snapshot does is do an image comparison. Have you tried playing with the blur options to see if they help? Can also watch this issue #201 as when implemented that should solve a lot of these issues. This is why image comparison is hard, changes that are not visible to the human eye are still caught and cause the comparison to fail. |
@anescobar1991 that makes sense. Thanks. SSIM would be 💯. Do you know any good examples with the blurring approach? I'd be curious on good thresholds ets |
@andreabisello If you can send me this two images (original and update snapshots) as the original pngs, I can add them to the test suite in PR #220 |
@omnisip thanks this is the test to obtain the images the images are the login box container of this url https://legaltest.solutiondocondemand.com , withouth the timepicker at the bottom of the box. this is the one captured in headless mode and this is the one captured in gui mode |
Do you want this to succeed or fall? In these images, the button is clearly
highlighted in focus and different.
…On Fri, Jun 19, 2020, 03:53 Andrea Bisello ***@***.***> wrote:
@omnisip <https://github.com/omnisip> thanks
this
<https://github.com/andreabisello/jest-image-snapshot-example/blob/master/headless-differences.test.js>is
the test to obtain the images
the images are the login box container of this url
https://legaltest.solutiondocondemand.com , withouth the timepicker at
the bottom of the box.
[image: captured in headless mode]
<https://user-images.githubusercontent.com/2149815/85120401-7bde7f00-b223-11ea-8123-c2e1f356fe07.png>
[image: captured_in_gui_mode]
<https://user-images.githubusercontent.com/2149815/85120404-7c771580-b223-11ea-8806-89ecbfff052e.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#156 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKQJSONKZ5HZQULWG6GRLRXMYSZANCNFSM4JC6IQFA>
.
|
@omnisip sure, and this is the initial problem : the same images captured on headless / gui mode has small differences : who is generating the images? puppeteer or jest-image-snapshot? |
Puppeteer.
…On Fri, Jun 19, 2020, 08:17 Andrea Bisello ***@***.***> wrote:
@omnisip <https://github.com/omnisip> sure, and this is the initial
problem : the same images captured on headless / gui mode has small
differences : who is generating the images? puppeteer or
jest-image-snapshot?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#156 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKQJS2AWGSCRR5KSMXYBTRXNXP3ANCNFSM4JC6IQFA>
.
|
@omnisip ok so the issue can be closed, i'll move on puppeteer. |
For this particular issue, I would check to see if you have out of place
JavaScript running after the page loads (or maybe not waiting until the page loads).
If you understand how puppeteer works, you'll recognize it's just taking a
snapshot of chrome's rendering. It's entirely possible for a split second
some JavaScript is executing that hasn't fully resolved or such. It would
lead me to believe that there might be a bug on the page itself with the
implementation.
If you were showing me a partial rendering or differences in color or minor
font distortions, I would suggest a chrome specific issue on that platform.
But this one really seems like JS.
I was even able to reproduce the issue you're seeing once or twice when I clicked the link you sent me in my desktop version of Chrome.
…On Fri, Jun 19, 2020, 08:25 Andrea Bisello ***@***.***> wrote:
@omnisip <https://github.com/omnisip> ok so the issue can be closed, i'll
move on puppeteer.
thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#156 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKQJSCU7EMYVNDD7XXFWTRXNYO5ANCNFSM4JC6IQFA>
.
|
@omnisip the test was already waiting for network activities
anyway i added
but nothing changed. i also tried upgrading everything to latest package.json
updating chromium to r756035 and nothing changed. |
i created puppeteer/puppeteer#6101 |
Fascinating. Thanks for sharing.
…On Thu, Jun 25, 2020, 04:31 Andrea Bisello ***@***.***> wrote:
i created puppeteer/puppeteer#6101
<puppeteer/puppeteer#6101>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#156 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKQJW5QISQHHILJBPYZZLRYMROTANCNFSM4JC6IQFA>
.
|
probably this could explain our issues https://developer.chrome.com/articles/new-headless/ as i was thinking, chrome headless and chrome gui was not the same chrome. this could explain the small rendering differences. i will reactivate the image comparison soon after updating to the new parameter. |
in some case,
taking screenshot of some images,
i obtain a small differences of the same images changing between headless or not headless mode of puppeteer.
everything updated to latest version.
as you can see,
letters in the left image looks a little bulkier then the same letters on the right one ( you can see in the R letter )
the problem can be in jest-image-snapshot or i should move on puppeteer project?
thanks.
The text was updated successfully, but these errors were encountered: