-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Cypress doesn't take correct snapshots in 'fullPage' mode in Electron and Chrome browsers #5876
Comments
@ElderMorgun As an aside the When I run the provided code the The twitter feed also dynamically loads as your scroll, which may have something to do with the strange screenshot behavior in Cypress. Screenshot in CypressThe screenshot is notably wrong. I pasted a screenshot of what mine returned - the checkered part being a transparent bg. Screenshot how it should lookScreenshot without elementJust doing normal |
I had a similar issue with fullPage screenshot without element, it did not scroll and did not screenshot the fullPage |
Can confirm, had the same CSS code. After removing it, it works, both with fullPage and element snapshots. |
@jennifer-shehane any proposed solution for this? |
I believe this is a duplicate of #2681 - I can't completely recreate the original issue since Twitter's interface has changed, but it sounds similar from the screenshots and comments. |
Hi @ElderMorgun |
@jennifer-shehane Any thoughts on this. No library is helping out in the visual regression front with Cypress. It would be really great if someone from Cypress fixes the cy.screenshot() which is not taking fullPage screenshot.. Could you please throw some light on this. |
@srinu-kodi There's not a current workaround, this is still an issue documented in #2681 |
Current behavior:
When I use
cy.screenshot()
in the test code for visual regression, I wanna take a picture of all DOM element, not only its visible part.But cypress cannot capture the whole element. The screenshots have the correct size but with only recurring visible part.
Desired behavior:
To take full element as screenshot independently of the DOM element size or viewport settings
Steps to reproduce:
Test code:
I took twitter long read for example of App code
https://twitter.com/Irine_Meier/status/1172003419458088960
As u can see the getter
#stream-items-id
is the twitter tread, the DOM element has a specific length and widthVersions
Windows: win 10 x64
Cypress: 3.7.0
Browsers: Electron 73, Chrome 78
The text was updated successfully, but these errors were encountered: