commit 9e50701314684bfc73b017cfe8838d6bda20f602
parent 54c7b8b5a7cc8b80f48a02c53efe955e3237a30d
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 4 Nov 2026 23:56:14 -0500
umtool e2e: take-items' Play check reads the item's state (narrated, its picture beside the card) -- the card's words are drawn, not DOM text
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/umtool/e2e/take-items.spec.ts b/umtool/e2e/take-items.spec.ts
@@ -87,7 +87,7 @@ test("--in-take: set-item and narrate --pick land in the take's patch only; narr
expect(umtool(["posts", "set-item", P, "p-2", "hold=4"]).status).not.toBe(0);
});
-test("Play on the take plays the imported item: its row between p-1 and p-3, its card and picture -- the project's cut has no p-2", async ({ page }) => {
+test("Play on the take plays the imported item: its row between p-1 and p-3, narrated, its picture beside the card -- the project's cut has no p-2", async ({ page }) => {
await page.setViewportSize({ width: 1366, height: 1000 });
await page.goto(urls.playHref(P, { take: TAKE, clip: "p-2" }));
await expect(page.locator(`[data-play-take="${TAKE}"]`)).toBeVisible();
@@ -96,7 +96,9 @@ test("Play on the take plays the imported item: its row between p-1 and p-3, its
expect(await rows.evaluateAll((els) => els.map((x) => x.getAttribute("data-play-row")))).toEqual(["p-1", "p-2", "p-3"]);
await expect(page.locator("[data-play-cut]")).toHaveAttribute("data-play-item", "p-2");
await expect(page.locator('[data-post-play="p-2"]')).toBeVisible();
- await expect(page.locator('[data-post-play="p-2"]')).toContainText("The imported words.");
+ // Narrated (its imported take plays) and its imported picture beside the card.
+ await expect(page.locator('[data-post-play="p-2"]')).toHaveAttribute("data-post-narrated", "1");
+ await expect(page.locator('[data-post-play="p-2"]')).toHaveAttribute("data-post-step", "image");
await page.screenshot({ path: test.info().outputPath("take-items-play.png") });
await page.goto(urls.playHref(P, { bare: true }));
await expect(page.locator("[data-play-row]")).toHaveCount(2);