commit 0103f74a202b27478e85ee09537cb05328e4f11e
parent c145be798dc16d2077778e36afc9a3e9c65226b6
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Mon, 2 Nov 2026 05:21:13 -0500
umtool e2e cut-integrity #6: the take patch's markers are polled like the manifest -- the patch is synced just after it, and one read raced it under load (saw the pre-removal "c04")
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/cut-integrity.spec.ts b/umtool/e2e/cut-integrity.spec.ts
@@ -208,8 +208,10 @@ test("#6 removing a clip re-anchors the take patch's markers; the hand-made one
await page.locator('[data-row-menu="c04"]').click();
await page.locator('[data-entry="c04"] [data-row-action="remove"]').click();
await expect.poll(() => entries().map((e) => e.id)).toEqual(["c01", "c03", "c02"]);
- const patch = JSON.parse(readFileSync(path.join(DIR, "draft-1.patch.json"), "utf8")) as { render: { chrome: { deck: { markers: { after: string; label: string }[] } } } };
- expect(patch.render.chrome.deck.markers).toEqual([{ after: "c02", label: "After four" }, { after: "gone", label: "Hand-made" }]);
+ // The patch is synced just after the manifest: poll it too (a single read raced it under load).
+ const patchMarkers = () =>
+ (JSON.parse(readFileSync(path.join(DIR, "draft-1.patch.json"), "utf8")) as { render: { chrome: { deck: { markers: { after: string; label: string }[] } } } }).render.chrome.deck.markers;
+ await expect.poll(patchMarkers).toEqual([{ after: "c02", label: "After four" }, { after: "gone", label: "Hand-made" }]);
await page.goto(urls.projectHref(PROJECT));
await expect(row(page, "patch-markers-stale", "draft-1.patch.json")).toContainText('"Hand-made" after gone — a take made with --patch draft-1.patch.json is refused');
await expect(row(page, "patch-markers-stale", "draft-1.patch.json")).not.toContainText("After four");