chore: update screenshopts for test (#4934)
This commit is contained in:
1 parent
8b9b02d84c
commit
bd2f843469
70 files changed
+345
-203
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user