mirror of
https://github.com/harivansh-afk/Saas-Teamspace-2.git
synced 2026-04-19 13:01:48 +00:00
initial commit
This commit is contained in:
commit
9963e01acc
158 changed files with 48198 additions and 0 deletions
22
tests/e2e/Visual.e2e.ts
Normal file
22
tests/e2e/Visual.e2e.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import percySnapshot from '@percy/playwright';
|
||||
import { expect, test } from '@playwright/test';
|
||||
|
||||
test.describe('Visual testing', () => {
|
||||
test.describe('Static pages', () => {
|
||||
test('should take screenshot of the homepage', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
|
||||
await expect(page.getByText('The perfect SaaS template to build')).toBeVisible();
|
||||
|
||||
await percySnapshot(page, 'Homepage');
|
||||
});
|
||||
|
||||
test('should take screenshot of the French homepage', async ({ page }) => {
|
||||
await page.goto('/fr');
|
||||
|
||||
await expect(page.getByText('Le parfait SaaS template pour construire')).toBeVisible();
|
||||
|
||||
await percySnapshot(page, 'Homepage - French');
|
||||
});
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue