commit 8b6965dbbe39c53acc3b6b0617137a0e69a791c5
parent fbb44833f49f194c692d96e965a1bf78958616ee
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 10 Nov 2026 14:15:28 -0500
umtool e2e: specs rewritten against L7b's addresses, keeping their assertions -- the piece's four tabs (Media and Build on Deliver, the Overview and the cut's list lit as the workspace's), a take walk is its review pass, the visual audit's project pages; the readiness captures pill on both of its states; the workspace's redo waits for its answer before the next key
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
7 files changed, 63 insertions(+), 27 deletions(-)
diff --git a/umtool/e2e/bench-shell.spec.ts b/umtool/e2e/bench-shell.spec.ts
@@ -136,7 +136,8 @@ test("the claim bench: its context on the reader, the cited cue lit, j/k from an
test("the drafts review is a bench: j/k light a field, the bar asks about it, a approves, r goes to the note", async ({ page }) => {
await page.goto(urls.reviewHref(REVIEW, { view: "list" }));
await expect(page.locator("[data-bench-top] [data-bench-kind]")).toHaveText("Drafts review");
- await expect(page.locator("[data-bench-back]")).toHaveAttribute("href", urls.projectHref(REVIEW, { tab: "media" }));
+ // Media folded into Deliver (L7b): the drafts' own tab.
+ await expect(page.locator("[data-bench-back]")).toHaveAttribute("href", urls.projectHref(REVIEW, { tab: "deliver" }));
const rows = page.locator("[data-draft-row]");
await expect(rows).toHaveCount(3);
const bar = page.locator("[data-verdict-bar]");
diff --git a/umtool/e2e/fixtures/make-fixture.mjs b/umtool/e2e/fixtures/make-fixture.mjs
@@ -2191,6 +2191,9 @@ makePlayCutFixture({ reports, deckManifest, cachedWindow: path.join(REPORT, "out
const rpFile = path.join(rpDir, "video.manifest.json");
const rpM = JSON.parse(readFileSync(rpFile, "utf8"));
rpM.render.chrome.factcheck.verdicts.CORROBORATED.tallyLabel = "Seized";
+ // c03 on vid1 (its cues in the corpus) far past any window a spec fetches: a clip never fetched whose source
+ // answers -- the readiness bar's captures count (readiness.spec.ts), never a build-dies row.
+ rpM.timeline = rpM.timeline.map((e) => (e.id === "c03" ? { ...e, video: "vid1", start: 300, end: 302, cite: 300 } : e));
rpM.timeline.splice(2, 0, {
type: "post", id: "p-5", post: "postchan-x/5", platform: "x", author: "Post Subject", handle: "postsubject",
date: "2026-10-30T12:00:00.000Z", text: "The scale said 291 this morning. I said the scale was broken.", url: "https://x.com/postsubject/status/5", subjects: ["postsubject"],
diff --git a/umtool/e2e/piece.spec.ts b/umtool/e2e/piece.spec.ts
@@ -21,7 +21,7 @@ const PIECE = `p:${PROJECT}`;
const tab = (page: Page, id: string) => page.getByTestId(`piece-tab-${id}`);
const keysReady = (page: Page) => expect(page.locator("[data-piece-keys=ready]")).toBeAttached();
-test("the frame: title, trail, stepper at Video, the Next card, seven tabs with the Overview lit", async ({ page }) => {
+test("the frame: title, trail, stepper at Video, the Next card, four tabs (L7b) with the workspace's lit on its Overview", async ({ page }) => {
const res = await page.goto(urls.projectHref(PROJECT, { tab: "overview" }));
expect(res?.status()).toBe(200);
const crumbs = page.getByRole("navigation", { name: "Breadcrumb" });
@@ -43,10 +43,12 @@ test("the frame: title, trail, stepper at Video, the Next card, seven tabs with
await expect(steps.nth(1)).toHaveAttribute("title", "no article");
await expect(steps.nth(3)).toHaveAttribute("data-step", "todo");
+ // Four tabs since the workspace (L7b): the Overview is one of its views, out of the tab bar.
const tabs = page.getByRole("navigation", { name: "Piece" }).getByRole("link");
- await expect(tabs).toHaveText([/^Overview/, /^Cut/, /^Media/, /^Build/, /^Deliver/, /^Sources/, /^History/]);
- await expect(tab(page, "overview")).toHaveAttribute("aria-current", "page");
- await expect(tab(page, "cut")).toHaveText("Cut4");
+ await expect(tabs).toHaveText([/^Workspace/, /^Sources/, /^Deliver/, /^History/]);
+ await expect(tab(page, "workspace")).toHaveAttribute("aria-current", "page");
+ await expect(tab(page, "workspace")).toHaveAttribute("href", urls.workspaceHref(PROJECT));
+ await expect(tab(page, "workspace")).toHaveText("Workspace4");
await expect(tab(page, "sources")).toHaveText("Sources2");
// The Overview: the Next card, the project's decisions, its stats -- and none
@@ -82,12 +84,14 @@ test("the tab is the URL: ?tab=, ?all=1 on the Cut, a bad tab the Overview, and
await expect(page.locator("[data-sources]")).toBeVisible();
await expect(page.locator("[data-next]")).toHaveCount(0);
+ // The cut's list and the Overview are the workspace's views (L7b): its tab is lit on them.
await page.goto(urls.projectHref(PROJECT, { all: true }));
- await expect(tab(page, "cut")).toHaveAttribute("aria-current", "page");
+ await expect(page.locator("[data-piece-tab]")).toHaveAttribute("data-piece-tab", "cut");
+ await expect(tab(page, "workspace")).toHaveAttribute("aria-current", "page");
await expect(page.locator("[data-entry=c01][data-kind]")).toBeVisible();
await page.goto(`${urls.projectHref(PROJECT)}?tab=nonsense`);
- await expect(tab(page, "overview")).toHaveAttribute("aria-current", "page");
+ await expect(page.locator("[data-piece-tab]")).toHaveAttribute("data-piece-tab", "overview");
// /browse/<project> (before P3) rides the redirect to the project's own address: its workspace (L7a);
// the Overview is written out.
@@ -95,7 +99,7 @@ test("the tab is the URL: ?tab=, ?all=1 on the Cut, a bad tab the Overview, and
await expect(page).toHaveURL(new RegExp(`/projects/${PROJECT}$`));
await expect(page.locator(`[data-workspace="${PROJECT}"]`)).toBeVisible();
await page.goto(urls.projectHref(PROJECT, { tab: "overview" }));
- await expect(tab(page, "overview")).toHaveAttribute("aria-current", "page");
+ await expect(page.locator("[data-piece-tab]")).toHaveAttribute("data-piece-tab", "overview");
// Clicking a tab is a link: the address changes, the section is there.
await tab(page, "history").click();
@@ -111,7 +115,7 @@ test("a note's link opens the tab its anchor is drawn on", async ({ page, reques
const id = ((await add.json()) as { note: { id: string } }).note.id;
try {
await page.goto(urls.projectHref(PROJECT, { note: id }));
- await expect(tab(page, "cut")).toHaveAttribute("aria-current", "page");
+ await expect(page.locator("[data-piece-tab]")).toHaveAttribute("data-piece-tab", "cut");
await expect(page.locator("[data-anchored-notes='c02']")).toHaveAttribute("data-open-notes", "1");
} finally {
await request.post(`/api/notes?project=${PROJECT}`, { data: { op: { op: "delete", id } } });
@@ -167,14 +171,14 @@ test("the lifecycle chip: Mark done says it hid the piece from Active, and Undo
}
});
-test("keys: 1–7 open the tabs, n runs the Next card's action; typing in a field is left alone", async ({ page }) => {
+test("keys: 1–4 open the tabs (1 the workspace), n runs the Next card's action; typing in a field is left alone", async ({ page }) => {
await page.goto(urls.projectHref(PROJECT, { tab: "overview" }));
await keysReady(page);
await page.keyboard.press("2");
- await expect(page).toHaveURL(/\?tab=cut$/);
- await expect(tab(page, "cut")).toHaveAttribute("aria-current", "page");
+ await expect(page).toHaveURL(/\?tab=sources$/);
+ await expect(tab(page, "sources")).toHaveAttribute("aria-current", "page");
await keysReady(page);
- await page.keyboard.press("7");
+ await page.keyboard.press("4");
await expect(page).toHaveURL(/\?tab=history$/);
await keysReady(page);
// The snapshot label is a field: a digit typed there is a digit.
@@ -185,8 +189,9 @@ test("keys: 1–7 open the tabs, n runs the Next card's action; typing in a fiel
await expect(page).toHaveURL(/\?tab=history$/);
await label.evaluate((el: HTMLElement) => el.blur());
await page.keyboard.press("1");
- await expect(tab(page, "overview")).toHaveAttribute("aria-current", "page");
+ await expect(page.locator(`[data-workspace="${PROJECT}"]`)).toBeVisible({ timeout: 30_000 });
+ await page.goto(urls.projectHref(PROJECT, { tab: "overview" }));
await keysReady(page);
const href = await page.locator("[data-next-action] > a:visible").getAttribute("href");
await page.keyboard.press("n");
@@ -398,14 +403,15 @@ test("an article drafted from a research board: at Research (its sweep running,
// field and all at once -- with the on-screen panel moved in from Build.
// fixtures/bench-shell-fixture.mjs: media-tab-fixture, written here alone.
// ---------------------------------------------------------------------------
-test("the Media tab: every drafted field with where it came from, approve per field and all, on-screen moved from Build", async ({ page }) => {
+test("the Media tab, folded into Deliver (L7b): every drafted field with where it came from, approve per field and all, on-screen and the build beside it", async ({ page }) => {
await page.setViewportSize({ width: 1366, height: 768 });
const P = "reports/media-tab-fixture";
await page.goto(urls.projectHref(P, { tab: "media" }));
- await expect(tab(page, "media")).toHaveAttribute("aria-current", "page");
+ await expect(page).toHaveURL(new RegExp(`${urls.projectHref(P, { tab: "deliver" }).replace(/[?]/g, "\\?")}$`));
+ await expect(tab(page, "deliver")).toHaveAttribute("aria-current", "page");
// One number: the fields awaiting review -- the two drafted titles and the release-25 narration its
// draft file records -- on the tab, in the header and on the Inbox's drafts card.
- await expect(tab(page, "media")).toHaveText("Media3");
+ await expect(tab(page, "deliver")).toHaveText("Deliver3");
const media = page.getByRole("region", { name: "Media drafts" });
await expect(media.locator("[data-media-counts]")).toHaveText("3 fields · 0 approved · 3 to review");
await expect(media.locator("[data-draft-row]")).toHaveCount(3);
@@ -448,15 +454,16 @@ test("the Media tab: every drafted field with where it came from, approve per fi
await expect(media.locator("[data-approve-all]")).toHaveCount(0);
// Nothing awaits review: the tab says no number, and the Inbox has no drafts card for it.
await page.reload();
- await expect(tab(page, "media")).toHaveText("Media");
+ await expect(tab(page, "deliver")).toHaveText("Deliver");
const inbox = (await (await page.request.get("/api/browse/decisions")).json()) as { items: { kind: string; project?: string }[] };
expect(inbox.items.filter((d) => d.kind === "drafts-unreviewed" && d.project === P)).toEqual([]);
- // The on-screen panel is Media's now; the Build tab is the build.
+ // The on-screen panel and the build, on Deliver both (Build folded in too).
await expect(page.getByTestId("onscreen-section")).toBeVisible();
const w = await page.evaluate(() => document.documentElement.scrollWidth);
expect(w).toBeLessThanOrEqual(1366);
await page.goto(urls.projectHref(P, { tab: "build" }));
- await expect(page.getByTestId("onscreen-section")).toHaveCount(0);
+ await expect(page).toHaveURL(new RegExp(`${urls.projectHref(P, { tab: "deliver" }).replace(/[?]/g, "\\?")}$`));
+ await expect(page.getByTestId("onscreen-section")).toBeVisible();
await expect(page.locator("[data-build-options]")).toBeVisible();
});
diff --git a/umtool/e2e/readiness.spec.ts b/umtool/e2e/readiness.spec.ts
@@ -66,9 +66,20 @@ test("links: the dead Rumble QR is ! (blocking), its click the piece's decisions
await expect(page.locator("[data-settle-button='links']").first()).toHaveText("Use embed ids (1)", { timeout: 30_000 });
});
-test("captures: the clip never fetched is counted, and its click selects that block", async ({ page }) => {
+test("captures: a source the build would die at is ! (the reducer's clip-no-cues), its click the piece's decisions", async ({ page }) => {
+ // The fixture's recordings have no cues in the corpus (testchan/playvid, nofetch): blocking, as the Inbox says.
await page.goto(urls.workspaceHref(P));
- await expect(pill(page, "captures")).toHaveAttribute("data-ready-state", "count", { timeout: 30_000 });
+ await expect(pill(page, "captures")).toHaveAttribute("data-ready-state", "bad", { timeout: 30_000 });
+ await expect(pill(page, "captures")).toHaveAttribute("title", /no transcript\.cues\.json/);
+ await expect(pill(page, "captures")).toHaveAttribute("href", urls.projectHref(P, { tab: "overview" }));
+});
+
+test("captures: on a cut whose sources answer, the clip never fetched is counted, and its click selects that block", async ({ page }) => {
+ // review-pass-fixture: vid1's cues are in the corpus; c03 (vid1 300-302) was never fetched.
+ const W = "reports/review-pass-fixture";
+ await page.goto(urls.workspaceHref(W));
+ await expect(pill(page, "captures")).toHaveAttribute("data-ready-count", /\d/, { timeout: 30_000 });
+ await expect(pill(page, "captures")).toHaveAttribute("data-ready-state", "count");
await expect(pill(page, "captures")).toHaveAttribute("data-ready-count", "1");
await expect(pill(page, "captures")).toHaveAttribute("title", /c03: no media fetched/);
await pill(page, "captures").click();
diff --git a/umtool/e2e/take-walk.spec.ts b/umtool/e2e/take-walk.spec.ts
@@ -72,8 +72,12 @@ test("the bench's data is the draft's whatever a take is named: a take's clip is
expect(manifestText()).toBe(masterBefore);
});
-test("the walk's old address asks to open the take in the draft; the walk's data route still reads the take", async ({ page, request }) => {
+test("the walk's old address is the take's review pass (L7b), whose Open in draft asks; the walk's data route still reads the take", async ({ page, request }) => {
await page.goto(urls.takeWalkHref(PROJECT, TAKE));
+ // A 308 to the take's review pass: read-only, its Open in draft the page that asks.
+ await expect(page.locator("[data-review-pass]")).toHaveAttribute("data-review-pass", TAKE, { timeout: 30_000 });
+ await expect(page.locator("[data-review-open-draft]")).toHaveAttribute("href", urls.openInDraftHref(PROJECT, TAKE));
+ await page.locator("[data-review-open-draft]").click();
const ask = page.locator(`[data-open-draft="${TAKE}"]`);
await expect(ask).toContainText(`Open ${TAKE} in draft?`);
// The draft (from v1, the master unchanged: no edits) has nothing to save.
@@ -116,7 +120,10 @@ test("the draft's own parent with no edits: the old bench address goes straight
const res = await request.get(urls.takeClipHref(PROJECT, "v2", "t01c"), { maxRedirects: 0 });
expect(res.status()).toBe(307);
expect(res.headers()["location"]).toMatch(/\/projects\/reports\/take-walk-fixture\/clip\/t01c$/);
- // A take that is not the parent still asks.
- const asks = await request.get(urls.takeWalkHref(PROJECT, TAKE), { maxRedirects: 0 });
+ // A take that is not the parent still asks (its walk's old address is its review pass, whose Open in draft asks).
+ const walk = await request.get(urls.takeWalkHref(PROJECT, TAKE), { maxRedirects: 0 });
+ expect(walk.status()).toBe(308);
+ expect(walk.headers()["location"]).toBe(urls.versionReviewHref(PROJECT, TAKE));
+ const asks = await request.get(urls.openInDraftHref(PROJECT, TAKE), { maxRedirects: 0 });
expect(asks.status()).toBe(200);
});
diff --git a/umtool/e2e/visual-audit.spec.ts b/umtool/e2e/visual-audit.spec.ts
@@ -43,9 +43,12 @@ const PAGES: [string, string][] = [
),
["article-evidence", urls.articleEvidenceHref({ site: "articles", id: "delta" })],
["article-compare", urls.articleCompareHref("zeta", { a: "1", b: "3" })],
- ...["overview", "cut", "media", "build", "deliver", "sources", "history"].map(
+ // A project piece's four tabs since the workspace (L7b) -- Media and Build fold into Deliver -- and the views out of
+ // the tab bar (the Overview, the cut as a list), and the workspace itself.
+ ...["overview", "cut", "deliver", "sources", "history"].map(
(tab) => [`project-${tab}`, urls.projectHref(PROJECT, { tab })] as [string, string],
),
+ ["project-workspace", urls.workspaceHref(PROJECT)],
...["overview", "cuts", "spec", "cover", "notes"].map((tab) => [`song-${tab}`, urls.projectHref(SONG, { tab })] as [string, string]),
["song-cut", urls.cutHref(SONG, "wide")],
["bench-clip", urls.clipBenchHref("reports/bench-shell-fixture", "s01")],
diff --git a/umtool/e2e/workspace.spec.ts b/umtool/e2e/workspace.spec.ts
@@ -102,6 +102,8 @@ test("a clip block: the inspector is the bench's window and word strip; a nudged
await expect(page.locator("[data-ws-redo]")).toBeEnabled();
await page.locator("[data-ws-redo]").click();
await expect.poll(manifestText, { timeout: 15_000 }).toBe(nudged);
+ // The redo's answer read back (the page is not busy any more): a key pressed while a write is in flight is dropped.
+ await expect(page.locator("[data-ws-undo-said]")).toContainText("Redone");
await page.locator("body").press("Control+z");
await expect.poll(manifestText, { timeout: 15_000 }).toBe(original);
expect(takeText()).toBe(take);
@@ -160,7 +162,9 @@ test("Save version: the versions menu lists it; E opens the bench in place and B
test("the piece page's tabs stay at ?tab=; the Overview is written out", async ({ page }) => {
await page.goto(urls.projectHref(P, { tab: "overview" }));
await expect(page.locator("[data-workspace]")).toHaveCount(0);
- await expect(page.locator("[data-piece-tabs]")).toHaveAttribute("data-piece-tabs", "overview");
+ // The Overview is a view of the workspace's (L7b): its tab is lit, the view drawn.
+ await expect(page.locator("[data-piece-tabs]")).toHaveAttribute("data-piece-tabs", "workspace");
+ await expect(page.locator("[data-piece-tab]")).toHaveAttribute("data-piece-tab", "overview");
// ...and the piece page's ⋯ More goes back to it.
await page.getByRole("button", { name: "More" }).click();
await expect(page.locator("[data-primary-workspace]")).toHaveAttribute("href", urls.workspaceHref(P));