Skip to content

Commit

Permalink
maxDiffPixelRatio
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Jul 18, 2024
1 parent 970401a commit bec8f70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/snapshot.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ demoNames.forEach((demoName) => {
const $canvas = page.locator("canvas[data-engine]");

// 👁️
await expect($canvas).toHaveScreenshot();
await expect($canvas).toHaveScreenshot({
maxDiffPixelRatio: 0.1,
});
});
});

0 comments on commit bec8f70

Please sign in to comment.