commit 738acde2434774c01299decabfb37ef847f532aa
parent d486648015307ab5778eec1ebca3180cdb72daa2
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 11 Nov 2026 00:04:41 -0500
umtool e2e: workspace's "a write since the undo ends the redo" waits for the Redo's answer (its POST /api/report/timeline) before reading what the page says -- the page says nothing while a write is out, and under load the refusal took longer than an expect's 5 s (data-ws-undo-said absent, whole suite at 4ac8b3b8). The spec was wrong to give a server round-trip the default timeout; the refusal itself is the same (passes alone, 2.9 s; a title takes no undo point, so A3's guard is not involved)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/umtool/e2e/workspace.spec.ts b/umtool/e2e/workspace.spec.ts
@@ -200,7 +200,10 @@ test("a write since the undo ends the redo: Redo is refused and the write is kep
const r = await request.put("/api/report/window", { data: { project: P, clip: "c01", title: "Titled since the undo" } });
expect(r.ok(), await r.text()).toBe(true);
const titled = manifestText();
+ // The Redo's answer first (the page says nothing while it is out -- under load, longer than an expect's 5 s).
+ const answered = page.waitForResponse((r) => r.url().includes("/api/report/timeline") && r.request().method() === "POST", { timeout: 60_000 });
await page.locator("[data-ws-redo]").click();
+ await answered;
// Refused: on the page's token (the draft moved since it was read), never retried on a fresh one...
await expect(page.locator("[data-ws-undo-said]")).toHaveAttribute("data-ws-undo-said", "error");
await expect(page.locator("[data-ws-undo-said]")).toContainText("changed since");