mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
@@ -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);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user