From b3bcaabf68e144ac007d12de66c39cebb3ea2933 Mon Sep 17 00:00:00 2001 From: repo-worker-code-g Date: Fri, 6 Nov 2026 22:52:01 -0600 Subject: [PATCH] test(pm-aggregator): finish forks-org repoint in fixtures + expectations; fix stale Phase-C CSS assertion in aa (#6768) The registry repoint commits aef24c0006 (opencode) and 0a7bfedbb7 (openchamber) moved production code to developing-today-forks/* but missed src/sources/fixtures.ts and the fleet-card expectations in program.test.ts, leaving 2 deterministic failures. Update the fixture OPENCODE/OPENCHAMBER constants and all registry-derived expectations (program.test.ts, plus the two fixture-derived assertions in render.test.ts). Synthetic old-org strings used as arbitrary test input elsewhere are untouched. aa.test.ts: the .chart-expanded assertion expected the rule inline in page HTML; since Phase C (#6153) page CSS is the external /assets/app.css build, so assert the app.css link + the rule in src/ui.css (the pattern render.test.ts/epic-graph.test.ts already use). Behavior is unchanged: app.css carries .chart-expanded with position: fixed !important. forecast-3982 timeout from the finding run: not reproduced - 33/33 pass twice in isolation; load flake on the busy laptop. aa.test.ts cannot boot its server on the laptop (production aggregator holds 127.0.0.1:4871); its #3298 assertions were verified directly against renderAa output + ui.css. --- pm-stack/aggregator/src/sources/fixtures.ts | 4 ++-- pm-stack/aggregator/test/aa.test.ts | 10 ++++++++-- pm-stack/aggregator/test/program.test.ts | 22 ++++++++++----------- pm-stack/aggregator/test/render.test.ts | 4 ++-- 4 files changed, 23 insertions(+), 17 deletions(-) diff --git a/pm-stack/aggregator/src/sources/fixtures.ts b/pm-stack/aggregator/src/sources/fixtures.ts index 34e2bf8391..8a08068adb 100644 --- a/pm-stack/aggregator/src/sources/fixtures.ts +++ b/pm-stack/aggregator/src/sources/fixtures.ts @@ -31,8 +31,8 @@ import type { Source } from "../source.ts"; const GRIST_DOC = "czYHYKgG9SHcm9CPwiKEq1"; // "Program roadmap" const CODE = "developing-today/code"; -const OPENCODE = "developing-today/opencode"; -const OPENCHAMBER = "developing-today/openchamber"; +const OPENCODE = "developing-today-forks/opencode"; +const OPENCHAMBER = "developing-today-forks/openchamber"; const NIX = "dezren39/nix"; function gh( diff --git a/pm-stack/aggregator/test/aa.test.ts b/pm-stack/aggregator/test/aa.test.ts index cad3c91432..bdfcba886a 100644 --- a/pm-stack/aggregator/test/aa.test.ts +++ b/pm-stack/aggregator/test/aa.test.ts @@ -4,7 +4,7 @@ // render + HTTP routes. Follows test/slice3.test.ts / program.test.ts. import { afterAll, beforeAll, describe, expect, test } from "bun:test"; import { spawn, type Subprocess } from "bun"; -import { mkdtempSync, writeFileSync } from "node:fs"; +import { mkdtempSync, readFileSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; import { @@ -818,7 +818,13 @@ describe("aa chart expand + zoom/pan (#3298)", () => { expect(html).toContain("setPointerCapture(drag.id)"); expect(html).toContain("Recommendation inputs redraw #xpl-recs directly"); expect(html).toContain("data-zbound"); - expect(html).toContain(".chart-expanded { position: fixed"); + // Phase C (#6153): page CSS is the external /assets/app.css build; the + // expanded-chart rule lives in its source (src/ui.css), not in page HTML + // (same pattern as render.test.ts / epic-graph.test.ts). + expect(html).toContain('href="/assets/app.css"'); + expect(readFileSync(join(import.meta.dir, "..", "src", "ui.css"), "utf8")).toContain( + ".chart-expanded { position: fixed", + ); // the emitted script still parses (same check as #1215) const scripts = [...html.matchAll(/