A browser test that outlived the page it tested

A Playwright test passing against a page that had been replaced, because the assertions were generic enough to match both.

await page.goto('/products')
await expect(page.locator('h1')).toBeVisible()
await expect(page.locator('.product')).toHaveCount(12)

// the page was rewritten in March. it still has an h1
// and still renders twelve products. the filter form
// the test was written for no longer exists and the
// test never mentioned it.

A test that asserts on generic structure passes against any page with that structure, which makes it a smoke test wearing the name of a feature test. Naming the test after what it verifies rather than after the page is the discipline, and this one was called products page works.