question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Same test, different runs causes different heights with a weird compression effect

See original GitHub issue

Context:

  • Playwright Version: 1.27.1
  • Operating System: MacOS 13.0
  • Node.js version: 16.15.0
  • Browser: All
  • Extra: Also CI using MacOS 12 (Github Actions)

Describe the bug

Subsequent screenshots (on different test runs) of the same page are coming out with different heights. This is mainly due to a weird “compression” (like smashing) effect on one of the screenshots.

These two example come from the same code, same server (NextJS locally) running, just yarn test two times in a row:

full-page-actual full-page-expected

I’m sorry for the long image, but that may be part of the problem (although short pages sometimes have this problem too).

If you compare the images using something like https://www.diffchecker.com/image-diff/ you can see the weird effect.

Is this a known bug? The differences are even greater once we run the tests on CI (more screenshots are different), but it’s flaky, so sometimes it happens and sometimes everything is good.

EDIT: Just to clarify, by compression I mean that the pixels themselves are smashed, so everything is shorter, which in turn causes the heights of the screenshots to differ, like on of them was “smashed”, which is wrong, e.g. causes the square logo to turn into a rectangle, etc

Thanks in advance!

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
pavelfeldmancommented, Nov 16, 2022

That is something we might be able to fix!

0reactions
filipesmedeiroscommented, Nov 17, 2022

Ok I don’t know if it helps, but running it inside Docker Linux (and CI on Linux) fixed it (or at least all the tests passed).

So the issue seems to be specific for Mac!

EDIT: nevermind, I think it was a flaky test that passed 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rough Running Engine - James on Engines #2
The common causes for rough running in an engine are: Engine miss; Vacuum leak; Dirty fuel injectors; Carburetor problems; EGR valve; Ignition ...
Read more >
Statistical tests, P values, confidence intervals, and power
Misinterpretation and abuse of statistical tests, confidence intervals, and statistical power have been decried for decades, yet remain rampant.
Read more >
HPLC Troubleshooting Guide - Sigma-Aldrich
Identify and correct common HPLC problems to restore column performance. Get help with peak problems (peak splitting, peak tailing, peak fronting, etc.)
Read more >
Achondroplasia - Genetics - MedlinePlus
Achondroplasia is a form of short-limbed dwarfism. Explore symptoms, inheritance, genetics of this condition.
Read more >
Is One Leg Shorter Than The Other? - Runner's World
For instance, running consistently on one side of a naturally-sloped road creates a type of temporary, or false difference in leg length, where ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found