Archilyzer · Source

archilyzer

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

commit 7afea3ba551600c014a4a3f31f17e97958e8f8bb
parent b673beb5d15a42633d531f2a32e815425975876c
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sun,  1 Nov 2026 01:33:54 -0500

Merge lane/owed-fixes-1031 (live-preview roll timing) into the fetch-per-piece branch

Diffstat:
Mumtool/e2e/live-preview.spec.ts | 19+++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/umtool/e2e/live-preview.spec.ts b/umtool/e2e/live-preview.spec.ts @@ -89,28 +89,31 @@ test("the live preview: the deck over the clip, the tally and the stamp at the p await expect(page.locator("[data-live-tally]")).toHaveAttribute("data-live-tally", "CORROBORATED:0,CONTRADICTED:0"); await expect(page.locator("[data-live-stamp]")).toHaveAttribute("data-live-stamp", ""); - // 1.5 s on (source 5.5): the stamp has landed on its source second, the tally has stepped -- and its - // roll (STAMP_MOTION.roll, 0.4 s from 5.0) is over: at 5.4 the playhead sat on the roll's last frames, - // where the outgoing 0 (power2.in) still reads ~0.2. - await nudgePlayer(page, 1.5); - await expect.poll(async () => Number(await live.getAttribute("data-live-t"))).toBeCloseTo(t0 + 1.5, 1); + // 1.4 s on (source 5.4): the stamp has landed on its source second, the tally has stepped. + await nudgePlayer(page, 1.4); + await expect.poll(async () => Number(await live.getAttribute("data-live-t"))).toBeCloseTo(t0 + 1.4, 1); await expect(page.locator("[data-live-stamp]")).toHaveAttribute("data-live-stamp", "k1:on"); await expect(page.locator("[data-live-tally]")).toHaveAttribute("data-live-tally", "CORROBORATED:0,CONTRADICTED:1"); // And the pages say the same: the stamp's page shows k1, the deck's tally shows Grift 1. await expect(page.getByTestId("live-stamp")).toHaveAttribute("data-feed-ready", "1", { timeout: 15_000 }); await expect.poll(() => opacityIn(frameOf(page, /stamp-preview/), '.stamp[data-claim="k1"]')).toBeGreaterThan(0.9); await expect.poll(() => opacityIn(frameOf(page, /\/sourced\/index\.html/), '[data-k="ty.CONTRADICTED.n1"]')).toBeGreaterThan(0.9); + // The outgoing 0 rolls out (power2.in) over STAMP_MOTION.roll, 0.4 s from 5.0: at 5.4 the playhead + // may sit on the roll's last frames (it read ~0.2 there), so it is judged a tenth on. + await nudgePlayer(page, 0.1); await expect.poll(() => opacityIn(frameOf(page, /\/sourced\/index\.html/), '[data-k="ty.CONTRADICTED.n0"]')).toBeLessThan(0.1); - // 0.8 s more (source 6.3): the clip's second mark, its own stamp and step. - await nudgePlayer(page, 0.8); + // 0.7 s more (source 6.2): the clip's second mark, its own stamp and step (its stamp is out by 6.3). + await nudgePlayer(page, 0.7); await expect(page.locator("[data-live-stamp]")).toHaveAttribute("data-live-stamp", "k1b:on"); await expect(page.locator("[data-live-tally]")).toHaveAttribute("data-live-tally", "CORROBORATED:1,CONTRADICTED:1"); await expect.poll(() => opacityIn(frameOf(page, /stamp-preview/), '.stamp[data-claim="k1b"]')).toBeGreaterThan(0.9); + // Its 1 rolls in over 0.4 s from 6.0 (it read 0.88 at 6.2): judged once the roll is over. + await nudgePlayer(page, 0.2); await expect.poll(() => opacityIn(frameOf(page, /\/sourced\/index\.html/), '[data-k="ty.CORROBORATED.n1"]')).toBeGreaterThan(0.9); // Back before both (source 4.7): no stamp, nothing counted -- the pages are seeked back too. - await nudgePlayer(page, -1.6); + await nudgePlayer(page, -1.7); await expect(page.locator("[data-live-stamp]")).toHaveAttribute("data-live-stamp", ""); await expect(page.locator("[data-live-tally]")).toHaveAttribute("data-live-tally", "CORROBORATED:0,CONTRADICTED:0"); await expect.poll(() => opacityIn(frameOf(page, /stamp-preview/), '.stamp[data-claim="k1"]')).toBeLessThan(0.1);