feat: Add threshold to argos test

This commit is contained in:
Sidharth Vinod
2024-07-09 14:01:47 +05:30
parent 728334b3ba
commit 6b7f33e1e5
3 changed files with 18 additions and 16 deletions

View File

@@ -124,7 +124,9 @@ export const verifyScreenshot = (name: string): void => {
cy.log(`Closing eyes ${Cypress.spec.name}`);
cy.eyesClose();
} else if (useArgos) {
cy.argosScreenshot(name);
cy.argosScreenshot(name, {
threshold: 0.01,
});
} else {
cy.matchImageSnapshot(name);
}