commit 83caf7e451ab4c6061d125ccdacf6e9a282346f9
parent c10c03f6a582faf85cda7d3c1d13ccf5532221a6
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 11 Nov 2026 03:42:15 -0500
umtool e2e: post-narration's speed samples wait only for "loading…" to go, not for the post's clock to pass its start -- a sample started late runs past the 1.6 s read's end and the voice reads slow (the read's-rate test, which passed 14 times before fc870c7f, read 0.92 in whole run 3); the compose wait, the fast-forward test's real fix, stays
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat:
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/umtool/e2e/post-narration.spec.ts b/umtool/e2e/post-narration.spec.ts
@@ -79,12 +79,10 @@ 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) => {
+/** Playing for real before a speed is sampled: no "loading…" on the transport. (Not a wait on the post's clock: a
+ * sample that starts late runs past a short read's end, and the voice reads slow.) */
+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 }) => {