commit 01bb7c57c29add8c27a52ce26ed894e14a214381
parent def73e20e13c4295683243c689e79cc6db4f0761
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 3 Nov 2026 16:27:20 -0500
umtool e2e: a redacted phrase is a bar per word (each in its own card-word slot, since the merge with the word zoom); none holds a letter
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/umtool/e2e/post-items.spec.ts b/umtool/e2e/post-items.spec.ts
@@ -104,7 +104,7 @@ test("Play plays a post item: its card, the private parent blurred, its video pl
await expect(root(page)).toHaveAttribute("data-play-item", "p-vid");
});
-test("a redacted term: Play shows the words; As published draws a blank bar and the term is nowhere in the card's DOM", async ({ page }) => {
+test("a redacted term: Play shows the words; As published draws blank bars and the term is nowhere in the card's DOM", async ({ page }) => {
// A made-up term on the fixture's words (post-redact.mjs; knobs.md, "Redacted words").
umtool(["posts", "redact", PROJECT, "add", "here is"]);
expect(umtool(["posts", "redact", PROJECT, "ls"])).toContain("1. here is");
@@ -118,12 +118,13 @@ test("a redacted term: Play shows the words; As published draws a blank bar and
await expect(card.locator("[data-post-words]")).toContainText("Yes, and here is the video.");
await expect(card.locator("[data-post-blanked]")).toHaveCount(0);
await page.locator("[data-play-as-published]").check();
- await expect(card.locator("[data-post-blanked]")).toHaveCount(1);
+ // A bar per word of the phrase, each in its own word's slot (a word zoom's indices hold).
+ await expect(card.locator("[data-post-blanked]")).toHaveCount(2);
await expect(card.locator("[data-post-words]")).toContainText("Yes, and");
await expect(card.locator("[data-post-words]")).toContainText("the video.");
const dom = await card.locator("html").evaluate((el) => el.outerHTML);
expect(dom.toLowerCase()).not.toContain("here is");
- expect(await card.locator("[data-post-blanked]").evaluate((el) => el.textContent)).toBe("");
+ expect(await card.locator("[data-post-blanked]").evaluateAll((els) => els.map((el) => el.textContent).join(""))).toBe("");
if (SHOTS) await page.screenshot({ path: path.join(SHOTS, "post-items-as-published.png") });
// The snapshot is never rewritten.
expect(JSON.stringify(timeline())).toContain("here is the video");