commit 8c427629033859ab6169c6f17bbc5a2db0af3eb8
parent 0f19472e2899de9844aff05a41473381329d4100
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 20 Oct 2026 22:21:21 -0400
e2e: the policy summary names the video assistant (release 38 lane E's task); the transcode spec polls for audio.mp3 instead of racing fake-ffmpeg's own "wrote" line
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
3 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/editor/e2e/video-page.spec.ts b/editor/e2e/video-page.spec.ts
@@ -145,14 +145,21 @@ test("transcode keeps source and writes audio.<target>", async ({ page }) => {
await page
.getByRole("button", { name: /^Transcode audio\.m4a → mp3$/ })
.click();
+ // Gate on the durable artifact, not the streamed "[fake-ffmpeg] wrote …"
+ // line: that line is printed before transcodeAudio renames the temp file
+ // over audio.mp3, so on a loaded machine an immediate check races it.
+ await expect
+ .poll(
+ () =>
+ pathExists(
+ `${testPaths().transcriptsDir}/channels/test-transcribe/data/vidA/audio.mp3`,
+ ),
+ { timeout: 30_000 },
+ )
+ .toBe(true);
await expect(
page.getByLabel("Transcode audio.m4a to mp3 output"),
- ).toContainText("wrote", { timeout: 30_000 });
- expect(
- await pathExists(
- `${testPaths().transcriptsDir}/channels/test-transcribe/data/vidA/audio.mp3`,
- ),
- ).toBe(true);
+ ).toContainText("Wrote ");
// Source file still on disk.
expect(
await pathExists(
diff --git a/umtool/e2e/create.spec.ts b/umtool/e2e/create.spec.ts
@@ -78,7 +78,7 @@ test("the lines, grouped Research · Article · Video · Song; the policy chip l
await expect(line(page, "video-report")).toContainText(/ · \d+ found/);
const chip = page.locator("[data-policy-chip]");
await expect(chip).toHaveAttribute("data-policy-chip", "balanced");
- await expect(chip).toHaveText("Generation: balanced · Claude Code: sweeps · API: report revisions, research, frames · local: video revisions, drafts, verdicts, clip labels");
+ await expect(chip).toHaveText("Generation: balanced · Claude Code: sweeps · API: report revisions, research, frames · local: video revisions, drafts, verdicts, clip labels, the video assistant");
await expect(chip).toHaveAttribute("href", urls.generationPolicyHref());
const rail = page.locator("[data-app-rail]");
await expect(rail.locator("[data-rail-create]")).toHaveAttribute("aria-current", "page");
diff --git a/umtool/e2e/settings.spec.ts b/umtool/e2e/settings.spec.ts
@@ -50,7 +50,7 @@ test("/settings lists generation and system; both light Settings", async ({ page
test("generation: presets write their routes, a route alone makes it custom, caps are the editor's to refuse; the key is a file", async ({ page }) => {
await page.goto(urls.generationPolicyHref());
await expect(page.locator("[data-policy-summary]")).toHaveText(
- "Generation: balanced · Claude Code: sweeps · API: report revisions, research, frames · local: video revisions, drafts, verdicts, clip labels",
+ "Generation: balanced · Claude Code: sweeps · API: report revisions, research, frames · local: video revisions, drafts, verdicts, clip labels, the video assistant",
);
const policy = page.getByRole("region", { name: "generation policy" });
await expect(policy).toHaveAttribute("data-policy-preset", "balanced");