Files
holiday-property-booking/tests/e2e/responsive.spec.ts

13 lines
577 B
TypeScript

import { expect, test } from '@playwright/test';
test.describe('responsive shell', () => {
test('keeps the public 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: 'A few properties guests can imagine themselves in' })).toBeVisible();
await expect(page.getByRole('link', { name: 'Contact the team' })).toBeVisible();
});
});