diff --git a/e2e/tests/drag-n-drop-chart-library/drag-n-drop-chart-library.spec.ts-snapshots/init-page-chromium-linux.png b/e2e/tests/drag-n-drop-chart-library/drag-n-drop-chart-library.spec.ts-snapshots/init-page-chromium-linux.png index 30a4cd9..25d1947 100644 Binary files a/e2e/tests/drag-n-drop-chart-library/drag-n-drop-chart-library.spec.ts-snapshots/init-page-chromium-linux.png and b/e2e/tests/drag-n-drop-chart-library/drag-n-drop-chart-library.spec.ts-snapshots/init-page-chromium-linux.png differ diff --git a/e2e/tests/wearables-dashboard/wearables-dashboard.po.ts b/e2e/tests/wearables-dashboard/wearables-dashboard.po.ts index 98b74b8..258f53b 100644 --- a/e2e/tests/wearables-dashboard/wearables-dashboard.po.ts +++ b/e2e/tests/wearables-dashboard/wearables-dashboard.po.ts @@ -4,5 +4,5 @@ export class WearablesDashboardPage extends BasePage { public readonly pageAdress = '/wearables-dashboard'; public gotoMainPage = async () => await this.goto(this.pageAdress); - public NumberOfStepsChart = () => this.page.getByText('Number of steps by minute', {exact: true}); + public cell = () => this.page.locator('g > .heattable-rect').first(); } diff --git a/e2e/tests/wearables-dashboard/wearables-dashboard.spec.ts b/e2e/tests/wearables-dashboard/wearables-dashboard.spec.ts index da04919..6c67c26 100644 --- a/e2e/tests/wearables-dashboard/wearables-dashboard.spec.ts +++ b/e2e/tests/wearables-dashboard/wearables-dashboard.spec.ts @@ -8,9 +8,10 @@ test.describe('Wearables dashboard', () => { // when await wearablesDashboardPage.gotoMainPage(); - await wearablesDashboardPage.NumberOfStepsChart().waitFor({ state: 'visible' }); + await wearablesDashboardPage.cell().waitFor({ state: 'visible' }); + //await wearablesDashboardPage.NumberOfStepsChart().waitFor({ state: 'visible' }); // then - await expect(page).toHaveScreenshot('init-page.png', { maxDiffPixelRatio: 0.1, fullPage: true}); + await expect(page).toHaveScreenshot('init-page.png', { maxDiffPixelRatio: 0.2, fullPage: true}); }); }); diff --git a/e2e/tests/wearables-dashboard/wearables-dashboard.spec.ts-snapshots/init-page-chromium-linux.png b/e2e/tests/wearables-dashboard/wearables-dashboard.spec.ts-snapshots/init-page-chromium-linux.png index aff5176..25fe103 100644 Binary files a/e2e/tests/wearables-dashboard/wearables-dashboard.spec.ts-snapshots/init-page-chromium-linux.png and b/e2e/tests/wearables-dashboard/wearables-dashboard.spec.ts-snapshots/init-page-chromium-linux.png differ