test(hero): update blog-index test to assert no hero (Services-only gate)
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user