feat: add playwright e2e workflow
Some checks failed
Deploy Holiday Property Booking / deploy (push) Successful in 3m0s
Playwright Holiday Property Booking / playwright (push) Successful in 10m59s
Test & Build Holiday Property Booking / test-build (push) Has been cancelled

This commit is contained in:
2026-05-22 08:40:45 +00:00
parent b781967a14
commit 909e8062f4
11 changed files with 250 additions and 11 deletions

View File

@@ -0,0 +1,13 @@
import { expect, test } from '@playwright/test';
test.describe('responsive shell', () => {
test('keeps the core content visible on mobile widths', async ({ page }) => {
await page.setViewportSize({ width: 390, height: 844 });
await page.goto('/');
await expect(page.getByRole('heading', { name: 'Holiday Property Booking' })).toBeVisible();
await expect(page.getByRole('heading', { name: 'Foundation work starts here' })).toBeVisible();
await expect(page.getByRole('link', { name: 'Review foundation' })).toBeVisible();
});
});