Skip to content

snapshots are not consistent on firefox #354

@maximegheraille

Description

@maximegheraille

Hi,

I created this issue in the tool we use to take snapshots but it seems the issue is related the how jest takes snapshots simonsmith/cypress-image-snapshot#63

we currently have components where we have assets some text. All snapshots are taken on firefox, chrome and edge with https://github.com/simonsmith/cypress-image-snapshot

Both edge and chrome are always fine, but firefox keeps randomly failing them because the image seems different (which is not case).

my setting are as follows

const options: CypressImageSnapshotOptions = {
			failureThreshold: 0.01,
			allowSizeMismatch: true,
			failureThresholdType: 'percent',
			capture: 'viewport',
			comparisonMethod: 'ssim',
			customSnapshotsDir: `./cypress/reports/mochareports/snapshots/${Cypress.spec.fileName}`,
			e2eSpecDir: Cypress.spec.relative,
			snapFilenameExtension: '.snap',
};

344167274-3f0f2289-c990-4190-8a7f-412b1b962c99

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions