-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
[Bug]: cyprress 13 screenshot size differ on cypress run and cypress open #294
Comments
We have a very similar issue, where we make a screenshot of the footer HTML element. But suddenly it's only 1 pixel high (even when I first perform a edit1: I don't face this issue with all elements, so it's a really weird issue. But because of this, I'm looking into a different solution/plugin now because it does not matter that I try with the footer element (or elements within that element), it only makes a screenshot of 1 pixel high. |
I have the same issue, it generates different dimensions when i use cypress run, it doesnt use set viewport values for run |
I've seen this also, but not to this degree. I've only seen it be a little wider, never a height issue. But I think my issue is down to the screen pixel density causing the images to not be the same and therefore it gets resized (https://github.com/FRSOURCE/cypress-plugin-visual-regression-diff/blob/43de1f74e2be482cfe267d008e74c269e87bcf3a/packages/cypress-plugin-visual-regression-diff/src/image.utils.ts#L80C21-L80C21). Edit: Turns out my issue has nothing to do with this plugin and is an issue with Cypress (or at least our app and Cypress). |
+1 Experiencing the same issue. Setting the viewport with
I tried various browsers (mainly Chrome, Edge and Electron) but that did not seem to have any impact. |
try adding in your
The problem is Cypress window size, not the screenshot. |
Quick update on what I mentioned earlier, This is actually not an issue of this plugin, but of the Cypress .screenshot() function issue. See: cypress-io/cypress#28674
|
Describe the Bug
If we use matchImage we get different screenshots on cypress run and cypress open
https://clip2net.com/s/4jl5O81
Steps to reproduce
Expected behavior
We expect same screenshot on cypress run andcypress open
Additional context
No response
Package version
3.3.10
Device
PC
OS and version
Windows 11
Browser and version
chrome
Node version
18.17.0
I can work on it by myself
Code of Conduct
The text was updated successfully, but these errors were encountered: