-
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
Full page screenshots with scale: true
are not stitched together as expected, contains black borders / spacings
#2348
Comments
I can confirm, we get the same when doing this. |
Fix this already!!! |
I managed to fix it by removing the |
I can reproduce this with the code below. Removing the Reproducible Example<html>
<body>
<div style="background: linear-gradient(yellow, blue, red); height: 1000px; width: 400px">foo</div>
</body>
</html> it('Take screenshot', () => {
cy.visit('index.html')
cy.screenshot({
scale: true,
})
}) Expected ScreenshotActual Screenshot |
scale: true
are not stitched together as expected, contains black borders / spacings
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
For anyone that is looking for a solution, been years now and nothing.. we found a better tool called puppeteer but we are using a wrapper called playwright which gives a full solution on top of puppeteer... X4 times faster than cypress.. and none of these nonsense bugs which never get fixed. |
I'm trying to capture screenshots for various viewport sizes. At points during each test, I call a custom Cypress command, which loops over an array of viewport sizes to update the viewport and take the screenshot.
Here is an example of the sort of screenshot I'm getting:
I'm expecting something more like this:
I haven't mocked up the notification so ignore that, but clearly something is wrong.
This happens in both headless and headed modes.
Bug?
I'm not sure if this is the correct approach to this problem. I will be using these screenshots for visual regression testing, so they need to look correct.
The text was updated successfully, but these errors were encountered: