commit fc870c7f5f63e9f04a1516ef6bc2b505b675afed
parent 738acde2434774c01299decabfb37ef847f532aa
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 11 Nov 2026 02:32:45 -0500
umtool e2e: post-narration's fast-forward test samples the speed only once the deck has composed and the post plays steadily -- it sampled straight after Play, and the deck's frame composing mid-sample remounts the player (the read's-rate test beside it already waited for that, saying why): readings of 0.08x, 0.73 and 1.43 across this lane's runs, and one failure in L7b's whole run 1 before it. A pre-existing flake (the cut draws no tally, so A1 changes nothing on its page); the spec was wrong to measure across a remount or a load. Both speed samples wait for steady play (no "loading…", the post's clock past its start)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat:
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/umtool/e2e/post-narration.spec.ts b/umtool/e2e/post-narration.spec.ts
@@ -79,6 +79,13 @@ test("Play plays the take over the attachment, muffled under the read, then open
});
/** Over `ms` of wall time inside the page: how far the item's clock, its video and its voice moved, and how often the video seeked. */
+/** Playing for real before a speed is sampled: no "loading…" on the transport, and the post's clock past its start. */
+const steadyPlay = async (page: Page, id: string) => {
+ await expect(page.locator("[data-play-waiting]")).toHaveCount(0, { timeout: 15_000 });
+ await expect
+ .poll(async () => Number(await page.locator(`[data-post-play="${id}"]`).getAttribute("data-post-s")), { timeout: 15_000 })
+ .toBeGreaterThan(0.2);
+};
const sampleSpeed = (page: Page, id: string, ms: number) =>
page.evaluate(async ({ id, ms }) => {
const p = document.querySelector(`[data-post-play="${id}"]`)!;
@@ -97,6 +104,9 @@ test("FAST-FORWARD SPEEDS A POST ITEM UP (operator, 3 Nov: \"it's just skipping
await page.setViewportSize({ width: 1366, height: 1000 });
await page.goto(urls.playHref(PROJECT, { bare: true, clip: "p-11" }));
await expect(root(page)).toHaveAttribute("data-play-item", "p-11");
+ // The deck composed first, as the read's-rate test below waits: its frame mounts the player afresh, and a sample
+ // across that reads a player gone (the clock "moving" at 0.08x).
+ await expect(root(page)).toHaveAttribute("data-play-compose", "ready", { timeout: 60_000 });
const player = page.locator('[data-post-play="p-11"]');
await expect(player).toHaveAttribute("data-post-step", "video");
await page.locator("[data-play-rate]").selectOption("2");
@@ -104,6 +114,8 @@ test("FAST-FORWARD SPEEDS A POST ITEM UP (operator, 3 Nov: \"it's just skipping
await expect(player).toHaveAttribute("data-post-narration-playing", "1", { timeout: 15_000 });
await expect(page.locator("video[data-post-video]")).toHaveAttribute("data-post-video-rate", "2");
await expect(page.locator("[data-post-narration-audio]")).toHaveAttribute("data-post-narration-rate", "2");
+ // Sampled once it plays steadily: a window that opens on the media still loading measures the load, not the rate.
+ await steadyPlay(page, "p-11");
const r = await sampleSpeed(page, "p-11", 600);
// The clock at ~2x wall time; the video and the voice moving with it (played, not jumped); no re-seek.
expect(r.ds / r.dw).toBeGreaterThan(1.6);
@@ -132,6 +144,8 @@ test("THE READ's RATE in Play: render.postNarration.rate 1.25 plays the voice at
await expect(player).toHaveAttribute("data-post-narration-playing", "1", { timeout: 15_000 });
await expect(page.locator("[data-post-narration-audio]")).toHaveAttribute("data-post-narration-rate", "1.25");
await expect(page.locator("video[data-post-video]")).toHaveAttribute("data-post-video-rate", "1");
+ // Sampled once it plays steadily: a window that opens on the media still loading measures the load, not the rate.
+ await steadyPlay(page, "p-11");
const r = await sampleSpeed(page, "p-11", 600);
expect(r.ar).toBe(1.25);
expect(r.vr).toBe(1);