Build public home, contact, and content pages
This commit is contained in:
@@ -1,23 +1,21 @@
|
||||
import { expect, test } from '@playwright/test';
|
||||
|
||||
test.describe('homepage', () => {
|
||||
test('renders the phase 1 scaffold and primary navigation', async ({ page }) => {
|
||||
test('renders the public browsing entry point and primary navigation', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
|
||||
await expect(page.getByRole('heading', { name: 'Holiday Property Booking' })).toBeVisible();
|
||||
await expect(page.getByText('Phase 1 foundation')).toBeVisible();
|
||||
await expect(page.getByRole('navigation', { name: 'Primary' })).toBeVisible();
|
||||
await expect(page.getByRole('link', { name: 'Review foundation' })).toHaveAttribute('href', '#foundation');
|
||||
await expect(page.getByRole('link', { name: 'Check health' })).toHaveAttribute('href', '/api/health');
|
||||
await expect(page.getByRole('link', { name: 'Explore featured stays' })).toHaveAttribute('href', '/#browse');
|
||||
await expect(page.getByRole('link', { name: 'Contact the team' })).toHaveAttribute('href', '/contact');
|
||||
});
|
||||
|
||||
test('shows the core planning sections', async ({ page }) => {
|
||||
test('shows the public content sections', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
|
||||
await expect(page.getByRole('heading', { name: 'Foundation work starts here' })).toBeVisible();
|
||||
await expect(page.getByRole('heading', { name: 'The implementation stack is locked' })).toBeVisible();
|
||||
await expect(page.getByRole('heading', { name: 'The first schema pass is ready' })).toBeVisible();
|
||||
await expect(page.getByRole('heading', { name: 'Ready for the first implementation slice' })).toBeVisible();
|
||||
await expect(page.getByRole('heading', { name: 'A few properties guests can imagine themselves in' })).toBeVisible();
|
||||
await expect(page.getByRole('heading', { name: 'Editorial content keeps the journey understandable' })).toBeVisible();
|
||||
await expect(page.getByRole('heading', { name: 'Location highlights' })).toBeVisible();
|
||||
await expect(page.getByRole('heading', { name: 'A clear contact route is already live' })).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user