Archilyzer · Source

archilyzer

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

commit f42b67d5c45e4b362b8ed59d631279a50de1962b
parent 548f1750084d9916b4f46b1348b751c6894ba3be
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Thu, 29 Oct 2026 06:29:50 -0400

umtool e2e: modules.spec -- the controlled on/off box is clicked, not check()ed; the preset fixture at a deck's size

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

Diffstat:
Mumtool/e2e/fixtures/modules-fixture.mjs | 3+++
Mumtool/e2e/modules.spec.ts | 5+++--
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/umtool/e2e/fixtures/modules-fixture.mjs b/umtool/e2e/fixtures/modules-fixture.mjs @@ -30,6 +30,9 @@ export function makeModulesFixture({ reports, manifest, deckManifest }) { const pdir = path.join(reports, "modules-preset-fixture"); mkdirSync(pdir, { recursive: true }); const p = manifest("modules-preset-fixture", "The Modules Preset Fixture", { siteOrigin: "https://archive.example" }, [clip("c01", 3), clip("c02", 9)]); + // A deck's size, as deckManifest gives it, but no chrome: the preset brings the deck. + p.render = { ...p.render, width: 1920, height: 1080 }; + delete p.render.headerHeight; writeFileSync(path.join(pdir, "video.manifest.json"), JSON.stringify(p, null, 2) + "\n"); writeFileSync( path.join(pdir, "module-config.json"), diff --git a/umtool/e2e/modules.spec.ts b/umtool/e2e/modules.spec.ts @@ -85,7 +85,8 @@ test("the panel draws every module from its descriptor, and a module is switched await expect(panel.getByTestId("module-state-pair")).toHaveText("on"); const card = await openModule(page, "chapter"); - await card.getByTestId("module-toggle-chapter").check(); + // A controlled box: it turns when the write lands and the panel re-reads, so click, then wait. + await card.getByTestId("module-toggle-chapter").click(); await expect(panel.getByTestId("module-state-chapter")).toHaveText("on"); await expect.poll(() => readManifest().render.chrome.chapter).toEqual({ list: [] }); @@ -108,7 +109,7 @@ test("the panel draws every module from its descriptor, and a module is switched expect(readManifest().render.chrome.pair.pairs[0].then.clip).toBe("c01"); // Off: the object removed, nothing else of the deck moved. - await card.getByTestId("module-toggle-chapter").uncheck(); + await card.getByTestId("module-toggle-chapter").click(); await expect(panel.getByTestId("module-state-chapter")).toHaveText("off"); await expect.poll(() => "chapter" in readManifest().render.chrome).toBe(false); expect(readManifest().render.chrome.layout).toBe("deck");