commit e6242199219cacbf76976196487c996ce2216b6b
parent fb3f18d3d29cc1f2369f8f5ac228f29bf0c08f97
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Mon, 2 Nov 2026 23:15:59 -0500
umtool e2e: the stub's tts job finishes under a follower that always asks for the tail; post-narration.spec waits for each picture before its still
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/umtool/e2e/fixtures/editor-stub.mjs b/umtool/e2e/fixtures/editor-stub.mjs
@@ -1380,7 +1380,8 @@ const server = http.createServer((req, res) => {
req.resume();
const j = ttsJobs.get(opsJob[1]);
const tail = url.searchParams.get("tail");
- if (!tail) j.polls += 1;
+ // A poll that asks for the tail counts too (umtool's job follower always asks for it: case-editor.ts jobState).
+ j.polls += 1;
// One poll of latency: the follow path, not only the finished one.
const status = j.polls <= 1 ? "running" : "done";
return json(res, 200, {
diff --git a/umtool/e2e/post-narration.spec.ts b/umtool/e2e/post-narration.spec.ts
@@ -86,6 +86,8 @@ test("four pictures cycle beside the card while it is read; the words stay up th
await expect(player).toHaveAttribute("data-post-step", "image");
await expect(page.frameLocator('[data-post-card-frame="read"]').locator("[data-post-words]")).toContainText("Four pictures of the thing");
seen.push(String(await page.locator("[data-post-image]").first().getAttribute("src")));
+ await expect.poll(() => page.locator("[data-post-image]").first().evaluate((i: HTMLImageElement) => i.complete && i.naturalWidth > 0)).toBe(true);
+ if (SHOTS) await page.waitForTimeout(400);
if (SHOTS) await page.screenshot({ path: path.join(SHOTS, `post-narration-pictures-${k + 1}.png`) });
}
expect(new Set(seen).size).toBe(3);