Skip to content

Commit 7c3eb98

Browse files
only define snapshot tolerance in config
1 parent a51b2f8 commit 7c3eb98

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/components/icon/test/icon.e2e.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ test.describe('icon: basic', () => {
3030
await page.waitForLoadState('networkidle');
3131

3232
const rtlTests = page.locator('#rtl-tests');
33-
await expect(rtlTests).toHaveScreenshot(`icon-rtl-diff.png`, {
34-
// Add more tolerance for font rendering differences
35-
maxDiffPixelRatio: 0.02, // Allow up to 2% difference (much higher than the 0.01 difference in your error)
36-
threshold: 0.2, // Increase threshold for per-pixel comparison
37-
});
33+
await expect(rtlTests).toHaveScreenshot(`icon-rtl-diff.png`);
3834
});
3935

4036
test('arrows should flip if dir changes on the element', async ({ page }) => {

0 commit comments

Comments
 (0)