Reference smoke test: entry card titles are h2 or h3
The entry-list SEO fix (37131e9) renders card titles as h2 when the list has no
section heading; the blog-archive test looked for h3 only.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
40925f9331
commit
ec649acb36
@@ -45,7 +45,7 @@ for (const l of LOCALES) {
|
||||
|
||||
test(`${l.code}: the blog archive lists entries that open`, async ({ page }) => {
|
||||
await page.goto(l.blog)
|
||||
const first = page.locator('[data-ipal-block="entryList"] h3 a').first()
|
||||
const first = page.locator('[data-ipal-block="entryList"] :is(h2, h3) a').first() // card titles: h2 when the list has no heading, else h3
|
||||
await expect(first).toBeVisible()
|
||||
await first.click()
|
||||
await expect(page.locator('h1')).toHaveCount(1)
|
||||
|
||||
Reference in New Issue
Block a user