Build public home, contact, and content pages
This commit is contained in:
13
tests/e2e/contact.spec.ts
Normal file
13
tests/e2e/contact.spec.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { expect, test } from '@playwright/test';
|
||||
|
||||
test.describe('contact page', () => {
|
||||
test('renders the enquiry form and contact details', async ({ page }) => {
|
||||
await page.goto('/contact');
|
||||
|
||||
await expect(page.getByRole('heading', { name: 'Talk to the team before you book' })).toBeVisible();
|
||||
await expect(page.getByLabel('Name')).toBeVisible();
|
||||
await expect(page.getByLabel('Email')).toBeVisible();
|
||||
await expect(page.getByLabel('Message')).toBeVisible();
|
||||
await expect(page.getByRole('heading', { name: 'hello@example.com' })).toBeVisible();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user