Use cache to store snapshots

This commit is contained in:
Sidharth Vinod
2024-01-19 12:06:53 +05:30
parent 8754b9dd5d
commit d2c82c1802
7 changed files with 77 additions and 12 deletions

View File

@@ -24,8 +24,14 @@
// -- This is will overwrite an existing command --
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
// import '@percy/cypress';
import { addMatchImageSnapshotCommand } from 'cypress-image-snapshot/command';
addMatchImageSnapshotCommand();
addMatchImageSnapshotCommand({
comparisonMethod: 'ssim',
failureThreshold: 0.01,
failureThresholdType: 'percent',
customDiffConfig: {
ssim: 'fast',
},
blur: 1,
});