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:
parent
8c948050b9
commit
7f75dfc2bc
@ -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",
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user