Skip to content

Commit

Permalink
test: add screenshot-test for stub-page
Browse files Browse the repository at this point in the history
  • Loading branch information
vtshly committed Jan 4, 2025
1 parent b1ca3f2 commit 948c1d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/tests/playwright/stub-page-test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ checkConsoleErrors();

test('has title', async ({ page }) => {
await expect(page.getByRole('heading', {name: PAGE_DATA.headerText})).toBeVisible();
});

test('should match snapshot', async ({ page }) => {
await expect(await page.screenshot()).toMatchSnapshot('stub-page-snapshot.png');
});
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 948c1d4

Please sign in to comment.