mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
26 lines
734 B
TypeScript
26 lines
734 B
TypeScript
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');
|
|
});
|
|
});
|
|
});
|