commit 3e7a5a8de68264c2ea442e5ecf70f0b1d8794859
parent cf477274857a3f9904584144851dee56174f0c6c
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Fri, 30 Oct 2026 14:44:52 -0400
takes.spec render mode: no editor-stub log yet is no lane asks
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/umtool/e2e/takes.spec.ts b/umtool/e2e/takes.spec.ts
@@ -244,10 +244,16 @@ test("Give renders the machine: the take runs with --priority, holds the lane it
test.setTimeout(240_000);
const SONG = path.join(HERE, "..", ".e2e-song");
const STATE = path.join(SONG, "render-priority.json");
- const laneAsks = () =>
- (JSON.parse(readFileSync(path.join(SONG, "editor-stub.requests.json"), "utf8")) as Array<{ route: string; lane?: string; held?: boolean }>)
- .filter((x) => x.route === "lane")
- .map((x) => `${x.lane}:${x.held}`);
+ // The stub writes its log on its first request after the fixture is built: none yet is no asks.
+ const laneAsks = () => {
+ let asks: Array<{ route: string; lane?: string; held?: boolean }> = [];
+ try {
+ asks = JSON.parse(readFileSync(path.join(SONG, "editor-stub.requests.json"), "utf8"));
+ } catch {
+ /* not written yet */
+ }
+ return asks.filter((x) => x.route === "lane").map((x) => `${x.lane}:${x.held}`);
+ };
const before = laneAsks().length;
// The toggle is this browser's: every take the page starts carries priority.