Skip to content

Commit 9cefa10

Browse files
committed
Fixed screenshot tolerance
1 parent 15fdf3b commit 9cefa10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

e2e/Utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const utils = {
3636
sleep: (ms) => new Promise((res) => setTimeout(res, ms)),
3737
expectImagesToBeEqual: (imagePath, expectedImagePath) => {
3838
let diff = bitmapDiff(imagePath, expectedImagePath);
39-
if (diff !== 0) {
39+
if (diff > 7000) {
4040
throw Error(`${imagePath} should be the same as ${expectedImagePath}, with diff: ${diff}`);
4141
}
4242
},

0 commit comments

Comments
 (0)