Archilyzer · Source

archilyzer

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

commit 26b026069ba3afa4d777575d48253cd1b3adad46
parent 69b2e7a6cbe747b03bf7a7b6015bc32c09827c23
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Fri,  6 Nov 2026 02:35:44 -0500

umtool: the e2e specs read the instruments' new defaults

instruments.spec.ts: before a stated weight the dial reads its pre-state
("NO WEIGHT STATED YET"), not a dash. play-measure.spec.ts: its fixture draws
a measure, so the instruments are on -- the moving start is off beside the
dial and the promise clock stands in the column's trail slot (its compact
header "scale video · offered 23 Oct").

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

Diffstat:
Mumtool/e2e/instruments.spec.ts | 8++++----
Mumtool/e2e/play-measure.spec.ts | 18+++++++++---------
2 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/umtool/e2e/instruments.spec.ts b/umtool/e2e/instruments.spec.ts @@ -111,9 +111,9 @@ test("the dial's page posts dial:ready and is seeked in the cut's seconds: the n const h = await harness(page, dial.src!, baseURL!); await expect.poll(h.messages, { timeout: 30_000 }).toContain("dial:ready"); - // Before any stated weight: the dash, the needle at rest on the scale's foot (220 lb: -135°). + // Before any stated weight: the pre-state in words (rev 9), the needle at rest on the scale's foot (220 lb: -135°). await h.seek(0.2); - await expect.poll(() => visibleReadout(h.frame)).toEqual(["—"]); + await expect.poll(() => visibleReadout(h.frame)).toEqual(["NO WEIGHTSTATED YET"]); await expect.poll(() => needleDeg(h.frame)).toBe(-135); // After "over 240" has settled (and the ≈390 is said): its weight, the needle at 240 (-105°), its wedge up. const settled = tOf("w21", 0.9); @@ -179,10 +179,10 @@ test("Play the cut draws the dial, the odometer and the trail from the estimate' 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. + // Back to c01, before the weight is said: the pre-state. 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(["—"]); + await expect.poll(() => visibleReadout(dial), { timeout: 15_000 }).toEqual(["NO WEIGHTSTATED YET"]); }); test("the module panel lists the instruments and previews the dial alone, seeked by its scrubber", async ({ page }) => { diff --git a/umtool/e2e/play-measure.spec.ts b/umtool/e2e/play-measure.spec.ts @@ -19,7 +19,9 @@ import * as urls from "./urls"; // --------------------------------------------------------------------------- const PROJECT = "reports/play-measure-fixture"; -const IDS = ["streak", "diet", "peak", "goals", "promise"] as const; +// The fixture draws a measure, so the instruments are on (rev 9): the moving start is off beside the dial, and the +// promise clock stands in the column's trail slot. +const IDS = ["streak", "diet", "goals", "promise"] as const; const root = (page: Page) => page.locator("[data-play-cut]"); const layer = (page: Page, id: string) => page.locator(`[data-play-layer="${id}"]`); @@ -60,8 +62,11 @@ test("the measure extras play in Play the cut, each page seeked to the playhead' await page.goto(urls.playHref(PROJECT, { clip: "c04", at: 1 })); await ready(page); await expect(root(page)).toHaveAttribute("data-play-item", "c04"); - // Laid in the build's z order: the streak (65), diet (66), peak (67), goals (68), the promise clock (95, over the finale). - expect(await page.locator("[data-play-layer]").evaluateAll((els) => els.map((e) => e.getAttribute("data-play-layer")))).toEqual([...IDS]); + // Laid in the build's z order: the streak (65), diet (66), goals (68), the promise clock (95, over the finale). + const laid = await page.locator("[data-play-layer]").evaluateAll((els) => els.map((e) => e.getAttribute("data-play-layer"))); + expect(laid.filter((id) => (IDS as readonly string[]).includes(id ?? ""))).toEqual([...IDS]); + expect(laid).toContain("dial"); + expect(laid).not.toContain("peak"); await expect.poll(() => shown(page, "goals"), { timeout: 10_000 }).toContain("LOSE 65"); const goals = await shown(page, "goals"); @@ -69,12 +74,8 @@ test("the measure extras play in Play the cut, each page seeked to the playhead' expect(goals).toContain("needs 226.5"); expect(goals).toContain("×2"); expect(goals).toContain("3 goals set"); - const peak = await shown(page, "peak"); - expect(peak).toContain("≈390"); - expect(peak).toContain("365.7"); - expect(peak).toContain("+24.3 lb"); const promise = await shown(page, "promise"); - expect(promise).toContain("scale video offered 23 Oct"); + expect(promise).toContain("scale video · offered 23 Oct"); expect(promise).toContain("11 days"); expect(promise).toContain("None posted"); // Her claim (SYNTHETIC in the fixture): the counterparty under the header. @@ -98,7 +99,6 @@ test("the measure extras play in Play the cut, each page seeked to the playhead' expect(await shown(page, "diet")).toContain("Keto"); expect(await shown(page, "diet")).toContain("Diet #1"); expect(await shown(page, "streak")).toContain("Keto"); - await expect.poll(() => shown(page, "peak"), { timeout: 10_000 }).toContain("365.7"); expect(await shown(page, "promise")).toBeNull(); await page.screenshot({ path: test.info().outputPath("play-measure-c02.png") }); });