fix: restore content compatibility checks
This commit is contained in:
@@ -36,10 +36,10 @@ const navigationLabels: Readonly<Record<(typeof sectionIds)[number], string>> =
|
||||
contact: "Contact",
|
||||
};
|
||||
|
||||
const visibleTextLeafSelector = "h1,h2,h3,p,dt,dd,li,figcaption,a,svg text";
|
||||
const visibleTextLeafSelector = "h1,h2,h3,h4,p,dt,dd,li,figcaption,a,svg text";
|
||||
const visibleTextSelector = [
|
||||
".site-header :is(h1,h2,h3,p,dt,dd,li,figcaption,a)",
|
||||
".portfolio-main :is(h1,h2,h3,p,dt,dd,li,figcaption,a)",
|
||||
".site-header :is(h1,h2,h3,h4,p,dt,dd,li,figcaption,a)",
|
||||
".portfolio-main :is(h1,h2,h3,h4,p,dt,dd,li,figcaption,a)",
|
||||
".portfolio-main svg text",
|
||||
].join(",");
|
||||
|
||||
@@ -145,8 +145,7 @@ const expectedVisibleTextSegments = (
|
||||
content.infrastructure.featuredOperation.title,
|
||||
content.infrastructure.featuredOperation.context,
|
||||
...content.infrastructure.featuredOperation.actions,
|
||||
"Outcome:",
|
||||
content.infrastructure.featuredOperation.outcome,
|
||||
`Outcome: ${content.infrastructure.featuredOperation.outcome}`,
|
||||
]),
|
||||
...section(
|
||||
"selected-builds",
|
||||
@@ -395,8 +394,8 @@ test("keeps every raw SSR reading-path segment visible without JavaScript", asyn
|
||||
}
|
||||
|
||||
const email = page.locator('a[href="mailto:luca.pislaru@gmail.com"]');
|
||||
await expect(email).toBeVisible();
|
||||
await expect(email).toHaveText("Start a conversation");
|
||||
await expect(email).toHaveCount(2);
|
||||
await expect(email).toHaveText(["Email Luca", "Email Luca"]);
|
||||
await expect(
|
||||
page.getByText(
|
||||
"For a current CV or role-specific information, contact me directly.",
|
||||
|
||||
Reference in New Issue
Block a user