Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
joost-stessens committed Sep 10, 2024
2 parents 2760eaa + c8a9a75 commit b086ccb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion e2e/tests/wearables-dashboard/wearables-dashboard.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
5 changes: 3 additions & 2 deletions e2e/tests/wearables-dashboard/wearables-dashboard.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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});
});
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b086ccb

Please sign in to comment.