Skip to content

Commit

Permalink
fix(e2e): Increase tolerance ratio for snapshot verification (#16659)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vere-Grey authored Jan 28, 2025
1 parent 06df8dd commit e7b10fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions packages/suite-desktop-core/e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ const config: PlaywrightTestConfig = {
outputDir: path.join(__dirname, 'test-results'),
snapshotPathTemplate: 'snapshots/{projectName}/{testFilePath}/{arg}{ext}',
expect: {
toHaveScreenshot: {
maxDiffPixelRatio: 0.001,
},
toHaveScreenshot: { maxDiffPixelRatio: 0.025 },
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ test.describe('Assets', { tag: ['@group=suite'] }, () => {
await assetsPage.tableIcon.click();
await expect(assetsPage.section).toHaveScreenshot('new-asset-table.png', {
mask: [assetsPage.assetExchangeRate, assetsPage.assetWeekChange],
//The width of the table is not fixed -> higher maxDiffPixelRatio
maxDiffPixelRatio: 0.025,
});
},
);
Expand Down

0 comments on commit e7b10fe

Please sign in to comment.