Archilyzer · Source

archilyzer

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

commit ab4c81380eb2033f5b9a2e233896792d38c6109a
parent f14448008c2dca76388e0f5c64604c2c3b0aeae5
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Fri,  6 Nov 2026 00:44:27 -0500

umtool: the instruments in Play the cut -- the estimate carries the measure now

play-instruments-fixture is the extras' Play ledger with the dial, the
odometer and the trail on and the extras off (makeMeasureExtrasFixture takes
a name and deck keys); instruments.spec.ts plays it: the three layers are up
and ready at c04 and the dial reads 291.5, back at c01 it reads the dash.

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

Diffstat:
Mumtool/e2e/fixtures/make-fixture.mjs | 7+++++++
Mumtool/e2e/fixtures/measure-extras-fixture.mjs | 9++++++---
Mumtool/e2e/instruments.spec.ts | 22++++++++++++++++++++++
3 files changed, 35 insertions(+), 3 deletions(-)

diff --git a/umtool/e2e/fixtures/make-fixture.mjs b/umtool/e2e/fixtures/make-fixture.mjs @@ -2038,6 +2038,13 @@ await makeInstrumentsFixture({ reports, deckManifest, cachedWindow: path.join(RE // The same cut with a measure slice in its schedule (play-measure.spec.ts): the weight // video's goal stack, moving start, promise clock and diet badge drawn in Play the cut. await makeMeasureExtrasFixture({ reports, deckManifest, cachedWindow: path.join(REPORT, "out", "clips-raw", "vid1_0.00-9.00.mp4") }); +// The same ledger with the instruments on and the extras off (instruments.spec.ts): the dial, the odometer and +// the trail in Play the cut, from the estimate's measure slice. +await makeMeasureExtrasFixture({ + reports, deckManifest, cachedWindow: path.join(REPORT, "out", "clips-raw", "vid1_0.00-9.00.mp4"), + name: "play-instruments-fixture", title: "The Play Instruments Fixture", + deck: { dial: true, odometer: true, trail: true, goals: false, peak: false, promise: false, diet: false, streak: false }, +}); // Wrong speaker in Play the cut (play-modules.spec.ts), which WRITES (removes c02, then undoes): // its own copy, so no other spec's cut moves under it. diff --git a/umtool/e2e/fixtures/measure-extras-fixture.mjs b/umtool/e2e/fixtures/measure-extras-fixture.mjs @@ -48,11 +48,13 @@ export const MEASURE_LEDGER = [ ]; /** - * @param {{ reports: string, deckManifest: Function, cachedWindow: string }} o + * @param {{ reports: string, deckManifest: Function, cachedWindow: string, name?: string, title?: string, deck?: Record<string, any> }} o + * `name`/`title`/`deck`: another copy with more deck keys (play-instruments-fixture: the dial, the odometer and + * the trail on, the extras off -- instruments.spec.ts). */ -export async function makeMeasureExtrasFixture({ reports, deckManifest, cachedWindow }) { +export async function makeMeasureExtrasFixture({ reports, deckManifest, cachedWindow, name = "play-measure-fixture", title = "The Play Measure Fixture", deck = {} }) { const { dir } = makePlayCutFixture({ - reports, deckManifest, cachedWindow, name: "play-measure-fixture", title: "The Play Measure Fixture", + reports, deckManifest, cachedWindow, name, title, chrome: { // The tally's word fitted to its cell (the Play cut's own "Seizures" overflows it, so its chrome never composes). factcheck: { verdicts: { CORROBORATED: { label: "Seizures", tallyLabel: "Seized", color: "#6fa8dc" } }, stamp: { seconds: 1 } }, @@ -66,6 +68,7 @@ export async function makeMeasureExtrasFixture({ reports, deckManifest, cachedWi ...(m.render.chrome.deck ?? {}), measure: { scopes: ["weight", "regime"], asOf: "2026-11-05" }, promise: { label: "scale video" }, + ...deck, }; writeFileSync(file, JSON.stringify(m, null, 2) + "\n"); return { dir }; diff --git a/umtool/e2e/instruments.spec.ts b/umtool/e2e/instruments.spec.ts @@ -163,6 +163,28 @@ test("the odometer and the trail post ready and seek: the wheels only roll up, t await expect(trail.frame.locator('[data-k="uc1"]')).toBeVisible(); }); +test("Play the cut draws the dial, the odometer and the trail from the estimate's measure: laid at the column, ready, seeked to the playhead", async ({ page }) => { + test.skip(!manifest().render.fontRegular, "the deck refuses to draw without its faces, and make-fixture.mjs found no font on this machine"); + // play-instruments-fixture: the extras' Play ledger (one stated weight, 291.5, on c03) with the instruments on. + const PLAY = "reports/play-instruments-fixture"; + const root = page.locator("[data-play-cut]"); + await page.setViewportSize({ width: 1366, height: 1000 }); + await page.goto(urls.playHref(PLAY, { clip: "c04", at: 1 })); + await expect(root).toHaveAttribute("data-play-edges", "render", { timeout: 30_000 }); + await expect(root).toHaveAttribute("data-play-item", "c04"); + for (const id of ["dial", "odometer", "trail"]) { + await expect(page.locator(`[data-play-layer="${id}"]`)).toHaveAttribute("data-play-layer-up", "1", { timeout: 30_000 }); + await expect(page.getByTestId(`play-layer-${id}`)).toHaveAttribute("data-feed-ready", "1", { timeout: 30_000 }); + } + const dial = page.frameLocator('[data-testid="play-layer-dial-iframe"]'); + await expect.poll(() => visibleReadout(dial), { timeout: 15_000 }).toEqual(["291.5LB"]); + await page.screenshot({ path: test.info().outputPath("instruments-play-c04.png") }); + // Back to c01, before the weight is said: the dash. + await page.locator('[data-play-row="c01"]').press("Enter"); + await expect(root).toHaveAttribute("data-play-item", "c01"); + await expect.poll(() => visibleReadout(dial), { timeout: 15_000 }).toEqual(["—"]); +}); + test("the module panel lists the instruments and previews the dial alone, seeked by its scrubber", async ({ page }) => { test.skip(!manifest().render.fontRegular, "the deck refuses to draw without its faces, and make-fixture.mjs found no font on this machine"); await page.goto(urls.section(PROJECT, "onscreen"));