commit fc1877e50c8439afc922b21bb1a007121a717406
parent 93dadf7f6b94222c5ed2feeef3b6a5f4f1b57267
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 11 Nov 2026 05:06:53 -0500
umtool e2e: play-cut's "the clock never jumps back there" judges every frame after the late data was released, not "the second half of the frames" -- since A1 the fixture's deck really composes when the chrome preview is let through, the frames after it come slower, and the count's midpoint fell before the release (1.287 against 1.3, whole run 5; no frame went back). The spec's measurement was wrong; the rule it holds (never back to the opening place once the data arrives) is the same, and now actually exercised by a deck that arrives
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/umtool/e2e/play-cut.spec.ts b/umtool/e2e/play-cut.spec.ts
@@ -288,6 +288,8 @@ test("opened at ?clip=&at=, the clock never jumps back there when the render's e
await page.locator("[data-play-toggle]").click();
await expect.poll(() => tNow(page), { timeout: 20_000 }).toBeGreaterThan(1.3);
expect(held).toEqual(expect.arrayContaining(["/api/report/cut-points", "/api/report/chrome/preview"]));
+ // The frames from here on are the ones the late data could pull back (the clock is past 1.3 s now).
+ const released = await page.evaluate(() => ((window as Window & { __clock?: number[] }).__clock ?? []).length);
release();
await expect(root(page)).toHaveAttribute("data-play-edges", "render", { timeout: 30_000 });
// On past the re-plan: the clock goes on from where it was.
@@ -301,5 +303,8 @@ test("opened at ?clip=&at=, the clock never jumps back there when the render's e
// frames either way); a jump back to the place it opened at is a second and more.
const back = clock.slice(1).map((t, i) => clock[i] - t);
expect(Math.max(...back), `the clock went back: ${JSON.stringify(clock.map((t) => Math.round(t * 100) / 100))}`).toBeLessThan(0.25);
- expect(Math.min(...clock.slice(clock.length >> 1))).toBeGreaterThan(1.3);
+ // Never back to the place it opened at, once the late data arrived: every frame after the release. (Not "the second
+ // half of the frames": since the deck composes (A1, fitTallyLabel), the frames after it come slower, and half the
+ // count fell before the release.)
+ expect(Math.min(...clock.slice(released))).toBeGreaterThan(1.3);
});