commit 8de12d052867930e55932ee6ae1d610d8179f6e2
parent bdd65fd064dd0a0263a0a8b659148e079b697f07
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Sun, 1 Nov 2026 01:33:54 -0500
umtool e2e live-preview: judge each tally roll after it ends -- the stamps and steps at 5.4 and 6.2 as before, the outgoing 0 a tenth later (5.5), the incoming 1 at 6.4; at 6.3 the k1b stamp is already out, so the checks cannot share one playhead
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
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);