Skip to content

Commit

Permalink
Merge pull request #43 from penpot/fix/no-maxDiffPixelRatio-different…
Browse files Browse the repository at this point in the history
…-linux-distros

Fix PENPOT-1686, CO-212, Increase maxDiffPixelRatio for different linux distros
  • Loading branch information
tdelatorre committed Jun 27, 2024
2 parents 1602ebc + 82b8d16 commit 5ddaee1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/composition/composition-text.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,12 @@ test.describe(() => {
await designPanelPage.changeTextDirection('RTL');
await mainPage.waitForChangeIsSaved();
await expect(mainPage.viewport).toHaveScreenshot('text-rtl.png', {
maxDiffPixels: 0,
maxDiffPixels: 30,
});
await designPanelPage.changeTextDirection('LTR');
await mainPage.waitForChangeIsSaved();
await expect(mainPage.viewport).toHaveScreenshot('text-ltr.png', {
maxDiffPixels: 0,
maxDiffPixels: 40,
});
});

Expand Down
4 changes: 2 additions & 2 deletions tests/ui-theme/ui-theme-features-light-mode.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ test.describe('Settings - UI THEME', () => {
viewModePage = new ViewModePage(newPage);
await expect(viewModePage.viewerLoyautSection).toHaveScreenshot(
'view-mode-page-image.png',
{ maxDiffPixelRatio: 0 },
{ maxDiffPixelRatio: 0.0002 },
);
await viewModePage.openInspectTab();
await expect(viewModePage.viewerLoyautSection).toHaveScreenshot(
'view-mode-inspect-page-image.png',
{ maxDiffPixelRatio: 0 },
{ maxDiffPixelRatio: 0.0002 },
);
},
);
Expand Down

0 comments on commit 5ddaee1

Please sign in to comment.