commit 7a2e46ecadc77bd53c4bc89be8221469eef32af4
parent 871bfb529e5a5d70b528fca6f51c36b999b34f74
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 10 Nov 2026 18:20:35 -0500
umtool e2e: the "vid1 0.00-41.00" order hazard -- add-clip.spec waits for its clip's fetch to END (data-add-clip-fetch done or failed) before the test does, so its afterEach removes the window it made; "not running" was already true while the fetch was still idle, and the window (12.5-21 with AddClip's 20 s pads) landed in the shared fixture corpus after the cleanup looked, where every later spec reading vid1 (clip-bench, projects) saw a wider window (E5 A7)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/umtool/e2e/add-clip.spec.ts b/umtool/e2e/add-clip.spec.ts
@@ -76,9 +76,10 @@ test("Add a clip: find the words, in and out on the cues, after a row, added and
await expect.poll(() => timeline().map((e) => e.id).indexOf(id!)).toBe(1);
const e = timeline()[1];
expect(e).toMatchObject({ type: "clip", video: "vid1", start: 12.5, end: 21 });
- // Its window, through the editor's paced fetch: the job runs and ends (done, or the stub's own answer).
- await expect(added).not.toHaveAttribute("data-add-clip-fetch", "running", { timeout: 60_000 });
- await expect(added).not.toHaveAttribute("data-add-clip-fetch", "idle");
+ // Its window, through the editor's paced fetch: the job runs and ENDS (done, or the stub's own answer) before the
+ // test does -- "not running" was true while it was still idle, so the window (vid1 0.00-41.00, a 20 s pad each
+ // side) landed after the afterEach looked, and every later spec read a wider vid1 window (clip-bench, projects).
+ await expect(added).toHaveAttribute("data-add-clip-fetch", /^(done|failed)$/, { timeout: 60_000 });
});
test("Add a clip from a pasted link: the recording the cut already carries, at its time", async ({ page }) => {