test: align homepage spec with current content
All checks were successful
Deploy Holiday Property Booking / deploy (push) Successful in 1m43s
Playwright Holiday Property Booking / playwright (push) Successful in 1m26s
Test & Build Holiday Property Booking / test-build (push) Successful in 1m15s

This commit is contained in:
2026-05-26 08:19:53 +00:00
parent e468876d59
commit 0aaba14300

View File

@@ -6,7 +6,7 @@ test.describe('homepage', () => {
await expect(page.getByRole('heading', { name: 'Holiday Property Booking' })).toBeVisible(); await expect(page.getByRole('heading', { name: 'Holiday Property Booking' })).toBeVisible();
await expect(page.getByRole('navigation', { name: 'Primary' })).toBeVisible(); await expect(page.getByRole('navigation', { name: 'Primary' })).toBeVisible();
await expect(page.getByRole('link', { name: 'Explore featured stays' })).toHaveAttribute('href', '/#browse'); await expect(page.getByRole('link', { name: 'Explore featured stays' })).toHaveAttribute('href', '#browse');
await expect(page.getByRole('link', { name: 'Contact the team' })).toHaveAttribute('href', '/contact'); await expect(page.getByRole('link', { name: 'Contact the team' })).toHaveAttribute('href', '/contact');
}); });
@@ -15,7 +15,7 @@ test.describe('homepage', () => {
await expect(page.getByRole('heading', { name: 'A few properties guests can imagine themselves in' })).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: 'Editorial content keeps the journey understandable' })).toBeVisible();
await expect(page.getByRole('heading', { name: 'Location highlights' })).toBeVisible(); await expect(page.getByRole('heading', { name: 'The site can now speak about place, not just property' })).toBeVisible();
await expect(page.getByRole('heading', { name: 'A clear contact route is already live' })).toBeVisible(); await expect(page.getByRole('heading', { name: 'A clear contact route is already live' })).toBeVisible();
}); });
}); });