fix(web): format empty-project E2E; stabilize chart-links cold Plot load

Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
Cursor Agent 2026-10-07 12:09:00 +00:00
parent 8c948050b9
commit 7f75dfc2bc
No known key found for this signature in database
2 changed files with 4 additions and 6 deletions

View File

@ -52,7 +52,7 @@ test("chart links cannot execute script when clicked or expanded", async ({ page
}); });
test("chart links retain supported URLs and browser encoding semantics", async ({ page }) => { test("chart links retain supported URLs and browser encoding semantics", async ({ page }) => {
test.setTimeout(120_000); test.setTimeout(240_000);
await page.route("https://example.test/**", (route) => await page.route("https://example.test/**", (route) =>
route.fulfill({ body: "Chart destination" }), route.fulfill({ body: "Chart destination" }),
); );
@ -60,8 +60,8 @@ test("chart links retain supported URLs and browser encoding semantics", async (
route.fulfill({ body: "Chart destination" }), route.fulfill({ body: "Chart destination" }),
); );
// Each test gets a fresh browser context, so this one pays the cold Plot import too. // Each test gets a fresh browser context, so this one pays the cold Plot import too.
await page.goto(`${fixture}?${new URLSearchParams({ href: "#details" })}`); await page.goto(`${fixture}?${new URLSearchParams({ href: "#details", inspect: "0" })}`);
await expect(page.locator("svg circle").first()).toBeVisible({ timeout: 90_000 }); await expect(page.locator("svg circle").first()).toBeVisible({ timeout: 120_000 });
for (const href of [ for (const href of [
"https://example.test/chart?a=1&b=2", "https://example.test/chart?a=1&b=2",
"mailto:chart@example.test", "mailto:chart@example.test",

View File

@ -14,9 +14,7 @@ test("empty project space offers Start before the main conversation exists", asy
const groups = (json.groups as Array<{ spaceId: string }>).filter( const groups = (json.groups as Array<{ spaceId: string }>).filter(
(group) => group.spaceId !== side.id, (group) => group.spaceId !== side.id,
); );
const bots = (json.bots as Array<{ spaceId: string }>).filter( const bots = (json.bots as Array<{ spaceId: string }>).filter((bot) => bot.spaceId !== side.id);
(bot) => bot.spaceId !== side.id,
);
const spaces = ( const spaces = (
json.spaces as Array<{ json.spaces as Array<{
id: string; id: string;