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 5, 2025
1 parent b1ca3f2 commit aa6437d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/tests/playwright/landing-page-test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,8 @@ test.skip('check elements on landing page', {
await test.step('check heading: Our services', async () => {
await expect(page.getByText(PAGE_DATA.headingOurServicesText)).toBeVisible();
});
});

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

Please sign in to comment.