Skip to content
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

different sizes between open and run mode #36

Closed
maximegheraille opened this issue Nov 8, 2023 · 1 comment
Closed

different sizes between open and run mode #36

maximegheraille opened this issue Nov 8, 2023 · 1 comment

Comments

@maximegheraille
Copy link

maximegheraille commented Nov 8, 2023

Hi,

I have a really weird issue, where all my snapshots do match expect for my biggest size (1920x1080).

All my screenshots are created in headless mode but when run in open mode (chrome) it gives this size issue
Image size (3840x499) different than saved snapshot size (3360x499).

my Cypress config contains viewportHeight: 1080, viewportWidth: 1920, and I do set my viewport before taking/comparing the snapshot cy.viewport(1920, 1080);

my options config

const options: CypressImageSnapshotOptions = {
			failureThreshold: 0.1,
			allowSizeMismatch: true,
			failureThresholdType: 'percent',
			capture: 'viewport',
			comparisonMethod: 'ssim',
			customSnapshotsDir: `somepath`,
			e2eSpecDir: `${Cypress.spec.relative}`,
		};
@simonsmith
Copy link
Owner

Seems like an issue with Cypress itself, not this plugin - cypress-io/cypress#3324

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants