chore: update screenshopts for test (#4934)

This commit is contained in:
Alireza authored and GitHub committed 2025-04-08 18:34:45 -04:00
1 parent 8b9b02d84c
commit bd2f843469
70 files changed
+345 -203

No files matched your search

+2 -1
View File
@@ -21,7 +21,8 @@ const checkForScreenshot = async (
for (let i = 0; i < attempts; i++) {
try {
await expect(locator).toHaveScreenshot(screenshotPath, {
maxDiffPixelRatio: 0.1,
// 4% tolerance for screenshot comparison
maxDiffPixelRatio: 0.04,
});
return true;
} catch (error) {