americanexpress / jest-image-snapshot

✨ Jest matcher for image comparisons. Most commonly used for visual regression testing.
Apache License 2.0
3.83k stars 198 forks source link

Scrolled to bottom element screenshot clips bottom #339

Closed ShoryuKyzan closed 1 year ago

ShoryuKyzan commented 1 year ago

Hi,

I'm not sure if this is a bug in this one or something in jest-puppeteer library we use. I'm not sure if screenshot command is in this plugin.

I scroll an element to the bottom (scrollTo), then use await container.screenshot({ on it. After this the scroll position has been moved up somewhat and the screenshot is affected as well. As I step through the code I see that after scrollTo it is correctly at the bottom, but then after screenshot the scroll position is moved up slightly and the screenshot shows this as well.

Thanks!

Night

ShoryuKyzan commented 1 year ago

not in this library. https://github.com/puppeteer/puppeteer/issues/10744 filed elsewhere.