commit c7dc4703b90027fd65f153eb1be0db333ef299c4
parent 7f4857a91e889d79e7a0f3f4a90537b0b33f0ab1
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Thu, 1 Oct 2026 01:19:19 -0400
umtool e2e: the posts preview asserts real cards — every window composes and the overlay reports posts:ready (the pending branch for a missing region is gone)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 7 insertions(+), 12 deletions(-)
diff --git a/umtool/e2e/onscreen-posts.spec.ts b/umtool/e2e/onscreen-posts.spec.ts
@@ -221,12 +221,10 @@ test("the preview composes the posts region per window and overlays it while the
expect(pv.posts.windows.map(({ segment, from, to }) => ({ segment, from, to }))).toEqual(postWindows(pv.schedule));
expect(pv.posts.windows.map((w) => w.segment)).toEqual(["c01", "c02"]);
expect(pv.posts.geometry.width).toBe(600);
- const composed = pv.posts.windows.every((w) => w.src);
- if (!composed) {
- // compose-chrome has no posts region on this branch yet (P1). The route
- // made the call and says why it failed, per window, beside a working deck.
- test.info().annotations.push({ type: "pending", description: "posts region not in compose-chrome yet (P1)" });
- for (const w of pv.posts.windows) expect(w.error).toMatch(/posts/);
+ // Every window composes: compose-chrome draws the posts region.
+ for (const w of pv.posts.windows) {
+ expect(w.error).toBeUndefined();
+ expect(w.src).toMatch(new RegExp(`posts-preview-${w.segment}/index\\.html`));
}
// The bench's strip asks for no posts windows at all.
@@ -248,12 +246,9 @@ test("the preview composes the posts region per window and overlays it while the
await expect(overlay).toHaveAttribute("data-segment", "c02");
await expect(postRow(page, "p-late")).toHaveAttribute("data-current", "1");
await expect(postRow(page, "p-mid")).toHaveAttribute("data-current", "0");
- if (composed) {
- await expect(overlay).toHaveAttribute("data-posts-ready", "1", { timeout: 30_000 });
- await expect(page.getByTestId("onscreen-posts-preview-iframe")).toHaveAttribute("src", /posts-preview-c02\/index\.html/);
- } else {
- await expect(overlay.getByTestId("onscreen-posts-preview-error")).toContainText("posts on c02: not composed");
- }
+ await expect(overlay).toHaveAttribute("data-posts-ready", "1", { timeout: 30_000 });
+ await expect(page.getByTestId("onscreen-posts-preview-iframe")).toHaveAttribute("src", /posts-preview-c02\/index\.html/);
+ await expect(overlay.getByTestId("onscreen-posts-preview-error")).toHaveCount(0);
// The overlay sits at the posts rect inside the 16:9 frame.
const frame = (await page.getByTestId("onscreen-preview").boundingBox())!;