Skip to content

Commit

Permalink
chore(demo-playwright): test for landing page (#6143)
Browse files Browse the repository at this point in the history
Co-authored-by: Nikita Barsukov <[email protected]>
Co-authored-by: Atharv Chandratre <[email protected]>
  • Loading branch information
3 people authored Dec 3, 2023
1 parent 1d9b0b1 commit 92553f7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
6 changes: 0 additions & 6 deletions projects/demo-cypress/cypress/tests/demo/landing.cy.ts

This file was deleted.

13 changes: 13 additions & 0 deletions projects/demo-playwright/tests/demo/landing.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import {tuiGoto} from '@demo-playwright/utils';
import {expect, test} from '@playwright/test';

test.describe(`Landing`, () => {
test.use({
viewport: {width: 360, height: 740},
});

test(`take snapshot`, async ({page}) => {
await tuiGoto(page, `/`, {hideHeader: false});
await expect(page).toHaveScreenshot(`landing-360-740.png`);
});
});

0 comments on commit 92553f7

Please sign in to comment.