// What marks.spec.ts edits (plans/clip-marks.md): the clip editor's three clips // (clip-editor-fixture.mjs, its own copy) with the fact-check relabelled as // the Huck cut's (CORROBORATED "Episodes", CONTRADICTED "Grift"), the stamp's // seconds at 1, and ONE mark on r001 (`claim`, at 1.2) -- the Marks box: add a // mark at the playhead (button and Shift+M), its verdict, hold, Shift+S on the // selected mark, remove, Clear. // // Synthetic, like every fixture. import { readFileSync, writeFileSync } from "node:fs"; import path from "node:path"; import { makeClipEditorFixture } from "./clip-editor-fixture.mjs"; /** * @param {{ reports: string, manifest: Function, cachedWindow: string, cues: Array<[number, number, string]> }} o */ export function makeMarksFixture({ reports, manifest, cachedWindow, cues }) { const { dir } = makeClipEditorFixture({ reports, manifest, cachedWindow, cues, name: "marks-fixture", title: "The Marks Fixture" }); const file = path.join(dir, "video.manifest.json"); const m = JSON.parse(readFileSync(file, "utf8")); m.render.chrome = { engine: "hyperframes", layout: "deck", factcheck: { verdicts: { CORROBORATED: { label: "Episodes", stampLabel: "Seizure" }, CONTRADICTED: { label: "Grift", stampLabel: "Grift" }, }, stamp: { seconds: 1 }, }, }; for (const e of m.timeline) if (e.id === "r001") e.claim = { id: "r001", verdict: "CORROBORATED", at: 1.2 }; writeFileSync(file, JSON.stringify(m, null, 2) + "\n"); return { dir }; }