fix(landing): green the landing e2e suite (#470)

Repairs 6 pre-existing landing Playwright failures: launch-banner external-link noopener, one-h1 assertion auto-wait, nav label drift to 'Talk to a human', privacy 'Analytics' heading, and pricing 'Let's talk' CTA.
This commit is contained in:
SnapOtter
2026-07-10 14:03:29 +08:00
committed by GitHub
parent af011d5538
commit 10ae6d1d3d
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ test.describe("Heading Hierarchy", () => {
for (const { path, name } of pages) {
test(`${name} page has exactly one h1`, async ({ page }) => {
await page.goto(path);
const h1Count = await page.locator("h1").count();
expect(h1Count).toBe(1);
// toHaveCount auto-waits, so it doesn't race the dev server's on-demand render.
await expect(page.locator("h1")).toHaveCount(1);
});
}
});