Every site I hand over comes with a short set of automated checks. They open the site in a real browser, click through the important parts, and fail loudly if something has broken.
What gets checked
Not everything. Only the things that would cost you money if they quietly stopped working: the pages load, the menu opens, and the enquiry form actually saves an enquiry.
Here is the whole check for the enquiry form on this site:
test('enquiry form sends', async ({ page }) => {
await page.goto('/')
await page.getByRole('button', { name: 'Start a project' }).first().click()
await page.getByLabel('Your name').fill('Sam')
await page.getByLabel('Email').fill('sam@example.co.uk')
await page.getByLabel('Tell me about the project').fill('A new site for my bakery.')
await page.getByRole('button', { name: 'Send enquiry' }).click()
await expect(page.getByText('Enquiry sent')).toBeVisible()
})Why it matters to you
When I change something months later, these checks run first. If the form breaks, I find out before you lose an enquiry, not after.