From 301c42fa611954ab913c091fc492f0d431014385 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 4 Oct 2026 00:41:07 +0000 Subject: [PATCH] test(web): warm up lazy Plot import before chart-links matrix The inert-link E2E is the first spec that mounts ChartCanvas, so CI can spend longer than the default expect timeout loading Observable Plot. Prime the module with a safe fixture navigation before the href matrix. Co-authored-by: cynarAI --- apps/web/e2e/chart-links.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/web/e2e/chart-links.spec.ts b/apps/web/e2e/chart-links.spec.ts index c6e1133..81f6950 100644 --- a/apps/web/e2e/chart-links.spec.ts +++ b/apps/web/e2e/chart-links.spec.ts @@ -4,6 +4,10 @@ import { captureScreenshot } from "./helpers"; const fixture = "/e2e/fixtures/chart-links.html"; test("chart links cannot execute script when clicked or expanded", async ({ page }, testInfo) => { + test.setTimeout(120_000); + // ChartCanvas lazy-loads Observable Plot; pay the import cost once before the matrix below. + await page.goto(`${fixture}?${new URLSearchParams({ href: "#details", inspect: "0" })}`); + await expect(page.locator("svg circle").first()).toBeVisible({ timeout: 90_000 }); for (const inspect of ["0", "1"]) { for (const href of [ 'javascript:void(document.body.dataset.plotExecuted="yes")',