Skip to content

Commit

Permalink
test(e2e): increase maxPixelDiff values
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-luzmo committed Aug 30, 2024
1 parent 4a40a2c commit 0a106c7
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
6 changes: 0 additions & 6 deletions e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,4 @@ export default defineConfig({
},
],

/* Run your local dev server before starting the tests */
// webServer: {
// command: 'npm run start',
// url: 'http://127.0.0.1:3000',
// reuseExistingServer: !process.env.CI,
// },
});
2 changes: 1 addition & 1 deletion e2e/tests/dashboart-filter/dashboard-filter-panel.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ test.describe('Dashboard filter panel page', () => {
await dashboartFilterpanelPage.weightedPipelineValue().waitFor({ state: 'visible' });

// then
await expect(page).toHaveScreenshot('init-page.png', { maxDiffPixelRatio: 0.05, fullPage: true});
await expect(page).toHaveScreenshot('init-page.png', { maxDiffPixelRatio: 0.1, fullPage: true});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ test.describe('Drag and drop page', () => {
await dragNDropChartLibraryPage.gotoMainPage();

// then
await expect(page).toHaveScreenshot('init-page.png', { maxDiffPixelRatio: 0.05, fullPage: true});
await expect(page).toHaveScreenshot('init-page.png', { maxDiffPixelRatio: 0.1, fullPage: true});
});
});
2 changes: 1 addition & 1 deletion e2e/tests/report-builder/report-builder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ test.describe('Report builder', () => {
await reportBuilderPage.chartOneBar().waitFor({ state: 'visible' });

// then
await expect(page).toHaveScreenshot('init-page.png', { maxDiffPixelRatio: 0.05, fullPage: true});
await expect(page).toHaveScreenshot('init-page.png', { maxDiffPixelRatio: 0.1, fullPage: true});
});
});
2 changes: 1 addition & 1 deletion e2e/tests/wearables-dashboard/wearables-dashboard.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ test.describe('Wearables dashboard', () => {
await wearablesDashboardPage.NumberOfStepsChart().waitFor({ state: 'visible' });

// then
await expect(page).toHaveScreenshot('init-page.png', { maxDiffPixelRatio: 0.05, fullPage: true});
await expect(page).toHaveScreenshot('init-page.png', { maxDiffPixelRatio: 0.1, fullPage: true});
});
});

0 comments on commit 0a106c7

Please sign in to comment.