Galooshi / happo

Visual diffing in CI for user interfaces
504 stars 16 forks source link

Screenshot cut off #203

Open mojoaxel opened 7 years ago

mojoaxel commented 7 years ago

I'm running happo ("happo": "^5.0.0-rc.3", "happo-target-firefox": "^5.0.0-rc.4") on ubuntu linux.

I have a strange problem: All my screenshots are cut off at the same size: 1197x83px

image

Here is original example I ran through happo: http://visjs.org/examples/timeline/basicUsage.html

I use the default viewport sizes.

trotzig commented 7 years ago

Hrm, that's strange. Can you run happo debug and inspect the examples in the browser? Happo will compute the outer box based on getBoundingClientRect for all elements in the DOM. As long as all elements are there, the box should theoretically cover the entire thing. Are you doing any lazy-loading in your component?