test(hero): update blog-index test to assert no hero (Services-only gate)

This commit is contained in:
Keith Solomon
2026-07-04 19:53:23 -05:00
parent 2fb1d67bb0
commit ee9c9ce992
+2 -2
View File
@@ -44,10 +44,10 @@ test.describe("hero ancestor scope", () => {
expect(await page.locator(".page-hero").count()).toBe(0); expect(await page.locator(".page-hero").count()).toBe(0);
}); });
test("blog index still renders the hero (bypasses ancestor gate)", async ({ test("blog index does NOT render the hero (the hero is Services-only)", async ({
page, page,
}) => { }) => {
await page.goto(blogUrl); await page.goto(blogUrl);
await expect(page.locator(".page-hero").first()).toBeVisible(); expect(await page.locator(".page-hero").count()).toBe(0);
}); });
}); });