commit 10cfef83b52ae7eab6b0aa5bed73661db495cd67 parent e7cfcda6169f352cbe6fc94f4f8436139585c82e Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st> Date: Mon, 9 Nov 2026 19:58:59 -0500 umtool e2e: the inspector specs read the fixture where playwright builds it (redesign L6) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Diffstat:
7 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/umtool/e2e/inspector-ledger.spec.ts b/umtool/e2e/inspector-ledger.spec.ts @@ -16,7 +16,7 @@ import * as urls from "./urls"; test.describe.configure({ mode: "serial" }); const P = "reports/inspector-ledger-fixture"; -const DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), ".e2e-song", "reports", "inspector-ledger-fixture"); +const DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), "..", ".e2e-song", "reports", "inspector-ledger-fixture"); type Row = Record<string, unknown> & { id: string }; const manifestText = () => readFileSync(path.join(DIR, "video.manifest.json"), "utf8"); const ledger = () => (JSON.parse(manifestText()) as { ledger: Row[] }).ledger; diff --git a/umtool/e2e/inspector-post-item.spec.ts b/umtool/e2e/inspector-post-item.spec.ts @@ -17,7 +17,7 @@ test.describe.configure({ mode: "serial" }); const P = "reports/inspector-post-fixture"; const HERE = path.dirname(fileURLToPath(import.meta.url)); -const DIR = path.join(HERE, ".e2e-song", "reports", "inspector-post-fixture"); +const DIR = path.join(HERE, "..", ".e2e-song", "reports", "inspector-post-fixture"); type Post = Record<string, unknown> & { id: string; excerpt?: string[]; media?: Record<string, unknown>[]; narration?: { takes?: { file: string; engine?: string }[]; pick?: number } }; const item = (id: string) => (JSON.parse(readFileSync(path.join(DIR, "video.manifest.json"), "utf8")) as { timeline: Post[] }).timeline.find((e) => e.id === id) as Post; const takeText = () => readFileSync(path.join(DIR, "takes", "short", "take.json"), "utf8"); @@ -126,7 +126,7 @@ test("Use my recording: a sound file kept as a recorded take of the item and pic await row.locator("[data-post-edit]").click(); const panel = row.locator('[data-inspector="post-item"]'); await expect(panel.locator("[data-post-takes]")).toContainText("not narrated yet"); - await panel.locator("[data-post-recording-file]").setInputFiles(path.join(HERE, ".e2e-song", "inspector-recording.wav")); + await panel.locator("[data-post-recording-file]").setInputFiles(path.join(HERE, "..", ".e2e-song", "inspector-recording.wav")); await panel.locator("[data-post-recording-use]").click(); await expect(panel.locator('[data-post-said="ok"]')).toContainText("Kept as", { timeout: 30_000 }); const n = item("p-5").narration; diff --git a/umtool/e2e/inspector-provenance.spec.ts b/umtool/e2e/inspector-provenance.spec.ts @@ -15,7 +15,7 @@ import * as urls from "./urls"; test.describe.configure({ mode: "serial" }); const P = "reports/inspector-provenance-fixture"; -const DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), ".e2e-song", "reports", "inspector-provenance-fixture"); +const DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), "..", ".e2e-song", "reports", "inspector-provenance-fixture"); const manifestText = () => readFileSync(path.join(DIR, "video.manifest.json"), "utf8"); const manifest = () => JSON.parse(manifestText()) as { provenance: Record<string, unknown> }; const takeText = () => readFileSync(path.join(DIR, "takes", "short", "take.json"), "utf8"); diff --git a/umtool/e2e/inspector-rumble-cite.spec.ts b/umtool/e2e/inspector-rumble-cite.spec.ts @@ -17,7 +17,7 @@ import * as urls from "./urls"; test.describe.configure({ mode: "serial" }); const P = "reports/inspector-rumble-fixture"; -const DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), ".e2e-song", "reports", "inspector-rumble-fixture"); +const DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), "..", ".e2e-song", "reports", "inspector-rumble-fixture"); type Clip = { id: string; video: string; siteVideo?: string }; const clips = () => (JSON.parse(readFileSync(path.join(DIR, "video.manifest.json"), "utf8")) as { timeline: Clip[] }).timeline; const sv = () => Object.fromEntries(clips().map((c) => [c.id, c.siteVideo ?? null])); diff --git a/umtool/e2e/inspector-still.spec.ts b/umtool/e2e/inspector-still.spec.ts @@ -13,7 +13,7 @@ import * as urls from "./urls"; // --------------------------------------------------------------------------- const P = "reports/inspector-still-fixture"; -const DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), ".e2e-song", "reports", "inspector-still-fixture"); +const DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), "..", ".e2e-song", "reports", "inspector-still-fixture"); const manifestText = () => readFileSync(path.join(DIR, "video.manifest.json"), "utf8"); const takeText = () => readFileSync(path.join(DIR, "takes", "short", "take.json"), "utf8"); diff --git a/umtool/e2e/inspector-teaser-insert.spec.ts b/umtool/e2e/inspector-teaser-insert.spec.ts @@ -14,7 +14,7 @@ import * as urls from "./urls"; test.describe.configure({ mode: "serial" }); const P = "reports/inspector-teaser-fixture"; -const DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), ".e2e-song", "reports", "inspector-teaser-fixture"); +const DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), "..", ".e2e-song", "reports", "inspector-teaser-fixture"); const manifestText = () => readFileSync(path.join(DIR, "video.manifest.json"), "utf8"); const timeline = () => (JSON.parse(manifestText()) as { timeline: Record<string, unknown>[] }).timeline; const takeText = () => readFileSync(path.join(DIR, "takes", "short", "take.json"), "utf8"); diff --git a/umtool/e2e/inspector-title.spec.ts b/umtool/e2e/inspector-title.spec.ts @@ -12,7 +12,7 @@ import * as urls from "./urls"; // --------------------------------------------------------------------------- const P = "reports/inspector-title-fixture"; -const DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), ".e2e-song", "reports", "inspector-title-fixture"); +const DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), "..", ".e2e-song", "reports", "inspector-title-fixture"); const manifest = () => JSON.parse(readFileSync(path.join(DIR, "video.manifest.json"), "utf8")) as { title?: string; subtitle?: string }; const takeText = () => readFileSync(path.join(DIR, "takes", "short", "take.json"), "utf8");