From 86cab46cf0971d9e6e6d9a88fe1a233c1cc3b530 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Wed, 7 Dec 2022 15:07:08 +0530 Subject: [PATCH] Try SSIM --- cypress/support/commands.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 3589640d9..c8998f0e5 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -28,4 +28,8 @@ import { addMatchImageSnapshotCommand } from 'cypress-image-snapshot/command'; -addMatchImageSnapshotCommand(); +addMatchImageSnapshotCommand({ + comparisonMethod: 'ssim', + failureThreshold: 0.01, + failureThresholdType: 'percent', +});