Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 0ffa42c2d5d8dad1a429928548f0b5bd49c215a3
parent 10cfef83b52ae7eab6b0aa5bed73661db495cd67
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon,  9 Nov 2026 20:19:13 -0500

umtool e2e: the inspector specs give a write room on a loaded machine; a box's click asks, the draft answers (redesign L6)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mumtool/e2e/inspector-ledger.spec.ts | 7+++++--
Mumtool/e2e/inspector-post-item.spec.ts | 15++++++++++-----
Mumtool/e2e/inspector-provenance.spec.ts | 7+++++--
Mumtool/e2e/inspector-rumble-cite.spec.ts | 7+++++--
Mumtool/e2e/inspector-still.spec.ts | 7++++++-
Mumtool/e2e/inspector-teaser-insert.spec.ts | 7+++++--
Mumtool/e2e/inspector-title.spec.ts | 7++++++-
7 files changed, 42 insertions(+), 15 deletions(-)

diff --git a/umtool/e2e/inspector-ledger.spec.ts b/umtool/e2e/inspector-ledger.spec.ts @@ -1,10 +1,13 @@ -import { test, expect } from "@playwright/test"; +import { test, expect as baseExpect } from "@playwright/test"; import { readFileSync } from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; import { openPanel } from "./panels"; import * as urls from "./urls"; +// A write is a request under the app's lock, and this machine runs other suites beside this one: room for it. +const expect = baseExpect.configure({ timeout: 15_000 }); + // --------------------------------------------------------------------------- // THE LEDGER PANEL (umtool redesign L6, item 3; components/projects/inspector/LedgerInspector.tsx and the new // /api/report/ledger): a measure ledger's rows -- date, scope, value, basis, source -- added, changed and removed @@ -13,7 +16,7 @@ import * as urls from "./urls"; // d01 (keto, a regime row). // --------------------------------------------------------------------------- -test.describe.configure({ mode: "serial" }); +test.describe.configure({ mode: "serial", timeout: 120_000 }); const P = "reports/inspector-ledger-fixture"; const DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), "..", ".e2e-song", "reports", "inspector-ledger-fixture"); diff --git a/umtool/e2e/inspector-post-item.spec.ts b/umtool/e2e/inspector-post-item.spec.ts @@ -1,9 +1,12 @@ -import { test, expect, type Page } from "@playwright/test"; +import { test, expect as baseExpect, type Page } from "@playwright/test"; import { existsSync, readFileSync } from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; import * as urls from "./urls"; +// A write is a request under the app's lock, and this machine runs other suites beside this one: room for it. +const expect = baseExpect.configure({ timeout: 15_000 }); + // --------------------------------------------------------------------------- // THE POST ITEM PANEL (umtool redesign L6, item 4; components/projects/inspector/PostItemInspector.tsx): a post // row's Edit on the Cut tab -- the EXCERPT picked by selecting the post's words (snapped to words, settled where @@ -13,7 +16,7 @@ import * as urls from "./urls"; // sound, and a picture of the post it does not carry). // --------------------------------------------------------------------------- -test.describe.configure({ mode: "serial" }); +test.describe.configure({ mode: "serial", timeout: 120_000 }); const P = "reports/inspector-post-fixture"; const HERE = path.dirname(fileURLToPath(import.meta.url)); @@ -101,15 +104,17 @@ test("media on/off and a video's sound", async ({ page }) => { await expect(panel.locator('[data-post-media="0"]')).toContainText("3_1.mp4"); await expect(panel.locator('[data-post-file="posts-media/postchan-x/3/3_2.png"]')).toBeVisible(); - await panel.locator('[data-post-media="0"] [data-post-media-sound]').uncheck(); + // Each box is the draft's state: a click asks for the change, the box shows it once it is written. + await panel.locator('[data-post-media="0"] [data-post-media-sound]').click(); await expect(panel.locator('[data-post-said="ok"]')).toContainText("Sound off."); expect(item("p-3").media?.[0]).toMatchObject({ src: "posts-media/postchan-x/3/3_1.mp4", mute: true }); + await expect(panel.locator('[data-post-media="0"] [data-post-media-sound]')).not.toBeChecked(); // The picture of the post it did not carry, put on; then the video taken off (its file kept, offered again). - await panel.locator('[data-post-file="posts-media/postchan-x/3/3_2.png"] [data-post-file-shown]').check(); + await panel.locator('[data-post-file="posts-media/postchan-x/3/3_2.png"] [data-post-file-shown]').click(); await expect(panel.locator('[data-post-said="ok"]')).toContainText("3_2.png: on the item."); expect(item("p-3").media?.map((m) => [m.src, m.kind])).toEqual([["posts-media/postchan-x/3/3_1.mp4", "video"], ["posts-media/postchan-x/3/3_2.png", "image"]]); - await panel.locator('[data-post-media="0"] [data-post-media-shown]').uncheck(); + await panel.locator('[data-post-media="0"] [data-post-media-shown]').click(); await expect(panel.locator('[data-post-said="ok"]')).toContainText("off the item"); expect(item("p-3").media?.map((m) => m.src)).toEqual(["posts-media/postchan-x/3/3_2.png"]); await expect(panel.locator('[data-post-file="posts-media/postchan-x/3/3_1.mp4"]')).toBeVisible(); diff --git a/umtool/e2e/inspector-provenance.spec.ts b/umtool/e2e/inspector-provenance.spec.ts @@ -1,10 +1,13 @@ -import { test, expect } from "@playwright/test"; +import { test, expect as baseExpect } from "@playwright/test"; import { readFileSync, readdirSync } from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; import { openPanel } from "./panels"; import * as urls from "./urls"; +// A write is a request under the app's lock, and this machine runs other suites beside this one: room for it. +const expect = baseExpect.configure({ timeout: 15_000 }); + // --------------------------------------------------------------------------- // THE PROVENANCE PANEL (umtool redesign L6, item 1; components/projects/inspector/ProvenanceInspector.tsx): the // Cut tab's Project panel sets provenance.siteOrigin, channelSlug and channel in the DRAFT -- the owed provenance @@ -12,7 +15,7 @@ import * as urls from "./urls"; // the writer's words. inspector-provenance-fixture (WRITES): no channelSlug, an old origin. // --------------------------------------------------------------------------- -test.describe.configure({ mode: "serial" }); +test.describe.configure({ mode: "serial", timeout: 120_000 }); const P = "reports/inspector-provenance-fixture"; const DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), "..", ".e2e-song", "reports", "inspector-provenance-fixture"); diff --git a/umtool/e2e/inspector-rumble-cite.spec.ts b/umtool/e2e/inspector-rumble-cite.spec.ts @@ -1,10 +1,13 @@ -import { test, expect } from "@playwright/test"; +import { test, expect as baseExpect } from "@playwright/test"; import { readFileSync } from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; import { openPanel } from "./panels"; import * as urls from "./urls"; +// A write is a request under the app's lock, and this machine runs other suites beside this one: room for it. +const expect = baseExpect.configure({ timeout: 15_000 }); + // --------------------------------------------------------------------------- // THE RUMBLE CITE FIX (umtool redesign L6, item 5; components/projects/inspector/LinksInspector.tsx): the Cut // tab's Project panel lists each clip citing a Rumble URL-slug FOLDER the archive does not serve, with the embed @@ -14,7 +17,7 @@ import * as urls from "./urls"; // r02 v7slug2 -> v7emb02 (both dead at the last check), r03 its own id. // --------------------------------------------------------------------------- -test.describe.configure({ mode: "serial" }); +test.describe.configure({ mode: "serial", timeout: 120_000 }); const P = "reports/inspector-rumble-fixture"; const DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), "..", ".e2e-song", "reports", "inspector-rumble-fixture"); diff --git a/umtool/e2e/inspector-still.spec.ts b/umtool/e2e/inspector-still.spec.ts @@ -1,10 +1,13 @@ -import { test, expect } from "@playwright/test"; +import { test, expect as baseExpect } from "@playwright/test"; import { readFileSync, readdirSync, statSync } from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; import { openPanel } from "./panels"; import * as urls from "./urls"; +// A write is a request under the app's lock, and this machine runs other suites beside this one: room for it. +const expect = baseExpect.configure({ timeout: 15_000 }); + // --------------------------------------------------------------------------- // A STILL AT SECOND N (umtool redesign L6, item 6; components/projects/inspector/StillInspector.tsx): Play's Still // button keeps the frame on screen -- the clip's fetched window at the playhead's source second, one ffmpeg frame -- @@ -12,6 +15,8 @@ import * as urls from "./urls"; // (`umtool still` is the twin). inspector-still-fixture (WRITES shots/): play-cut-fixture's cut, its window cached. // --------------------------------------------------------------------------- +test.describe.configure({ timeout: 120_000 }); + const P = "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"); diff --git a/umtool/e2e/inspector-teaser-insert.spec.ts b/umtool/e2e/inspector-teaser-insert.spec.ts @@ -1,9 +1,12 @@ -import { test, expect } from "@playwright/test"; +import { test, expect as baseExpect } from "@playwright/test"; import { readFileSync } from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; import * as urls from "./urls"; +// A write is a request under the app's lock, and this machine runs other suites beside this one: room for it. +const expect = baseExpect.configure({ timeout: 15_000 }); + // --------------------------------------------------------------------------- // INSERT A TEASER OR CLOSING CARD (umtool redesign L6, item 2; components/projects/inspector/TeaserInspector.tsx): // the Cut tab's "Insert a teaser or closing card" -- where, the lines with a break and a hold, the beat -- writes @@ -11,7 +14,7 @@ import * as urls from "./urls"; // words, its row's Edit changes it after; no take touched. inspector-teaser-fixture (WRITES). // --------------------------------------------------------------------------- -test.describe.configure({ mode: "serial" }); +test.describe.configure({ mode: "serial", timeout: 120_000 }); const P = "reports/inspector-teaser-fixture"; const DIR = path.join(path.dirname(fileURLToPath(import.meta.url)), "..", ".e2e-song", "reports", "inspector-teaser-fixture"); diff --git a/umtool/e2e/inspector-title.spec.ts b/umtool/e2e/inspector-title.spec.ts @@ -1,16 +1,21 @@ -import { test, expect } from "@playwright/test"; +import { test, expect as baseExpect } from "@playwright/test"; import { readFileSync } from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; import { openPanel } from "./panels"; import * as urls from "./urls"; +// A write is a request under the app's lock, and this machine runs other suites beside this one: room for it. +const expect = baseExpect.configure({ timeout: 15_000 }); + // --------------------------------------------------------------------------- // THE TITLE PANEL (umtool redesign L6, item 7; 9 Nov: four news projects' title/subtitle set with jq): the Cut // tab's Project panel writes the manifest's `title` and `subtitle` in the draft (`umtool title` is the twin), // an empty subtitle removes it, no take touched. inspector-title-fixture (WRITES). // --------------------------------------------------------------------------- +test.describe.configure({ timeout: 120_000 }); + const P = "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 };