commit e92d317b15e758240fe76b24185ee6f5eada4338
parent 0d2aa04550b23356e3f1dddfd99827086292d7d3
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 10 Nov 2026 14:16:33 -0500
umtool e2e: workspace.spec's Undo after Redo waits for the page's "Redone" -- the manifest is written before the page has read the redo back, and a Ctrl+Z pressed while it is busy is dropped (failed 3 of 4 runs here: the poll saw the file 18 ms before the POST answered)
Co-Authored-By: Claude Opus 5.5 (1M context) <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
@@ -102,6 +102,9 @@ test("a clip block: the inspector is the bench's window and word strip; a nudged
await expect(page.locator("[data-ws-redo]")).toBeEnabled();
await page.locator("[data-ws-redo]").click();
await expect.poll(manifestText, { timeout: 15_000 }).toBe(nudged);
+ // The file is written before the page has read the redo back (it is busy until then, and a key pressed meanwhile is
+ // dropped): wait for its word first.
+ await expect(page.locator("[data-ws-undo-said]")).toContainText("Redone");
await page.locator("body").press("Control+z");
await expect.poll(manifestText, { timeout: 15_000 }).toBe(original);
expect(takeText()).toBe(take);