diff --git a/apps/web/e2e/chart-links.spec.ts b/apps/web/e2e/chart-links.spec.ts index 7de7b0c..c6e1133 100644 --- a/apps/web/e2e/chart-links.spec.ts +++ b/apps/web/e2e/chart-links.spec.ts @@ -63,8 +63,10 @@ test("chart links retain supported URLs and browser encoding semantics", async ( "java%73cript:void(0)", ]) { await page.goto(`${fixture}?${new URLSearchParams({ href })}`); + // ChartCanvas lazy-loads Plot; mirror the inert-link test and wait for marks first. + await expect(page.locator("svg circle").first()).toBeVisible(); const link = page.locator("svg a").first(); - await expect(link).toBeVisible(); + await expect(link).toBeAttached(); expect( await link.evaluate((anchor) => anchor.getAttributeNS("http://www.w3.org/1999/xlink", "href"),