Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Tests: update assertions to match the new copy

Adarshfdc1b4194217
diff --git a/tests/account-gpu.test.ts b/tests/account-gpu.test.ts
index b231e981..bd7cc373 100644
--- a/tests/account-gpu.test.ts
+++ b/tests/account-gpu.test.ts
@@ -40,10 +40,10 @@ describe("Your GPU: the address", () => {
it("refuses this machine, private networks and the install's own ComfyUI", async () => {
for (const url of ["http://localhost:8188", "http://127.0.0.1:8188", "http://192.168.1.5:8188", "http://169.254.169.254", "http://comfy:8188", "http://box.local:8188"]) {
- await expect(checkGpuAddress(url, { resolve: publicDns }), url).rejects.toThrow(/own computer or network/);
+ await expect(checkGpuAddress(url, { resolve: publicDns }), url).rejects.toThrow(/only works on your own network/);
}
// A public name that resolves to a private address.
- await expect(checkGpuAddress("https://sneaky.example", { resolve: async () => ["10.0.0.7"] })).rejects.toThrow(/own computer or network/);
+ await expect(checkGpuAddress("https://sneaky.example", { resolve: async () => ["10.0.0.7"] })).rejects.toThrow(/only works on your own network/);
// The install's own ComfyUI by host, on any scheme, port or path (ComfyUI copies every route under /api), with one
// message that doesn't confirm the guess.
for (const url of ["http://owner-comfy.test:8188", "https://owner-comfy.test/api", "http://OWNER-comfy.test.:9000/", "https://owner-comfy.test:8188/api/"]) {
diff --git a/tests/account-inputs.test.ts b/tests/account-inputs.test.ts
index e2407747..4d68fc39 100644
--- a/tests/account-inputs.test.ts
+++ b/tests/account-inputs.test.ts
@@ -65,7 +65,7 @@ describe("an account's run names only files it uploaded here", () => {
const owners = saveFile({ data: TINY_PNG, contentType: "image/png", source: "upload" });
const r = await run(motion([owners.url]));
expect(r.status).toBe(403);
- expect(await r.json()).toMatchObject({ code: "input-not-yours", error: "That file isn't yours. Upload your own." });
+ expect(await r.json()).toMatchObject({ code: "input-not-yours", error: "We can't find that file. Upload it again." });
const extra = await run(motion([own().url], { params: { extra: { audio2: owners.url } } }));
expect(extra.status).toBe(403);
expect(extra.headers.get("x-fuobe-gpu-setup")).toBeNull();
@@ -113,7 +113,7 @@ describe("an account's fair share", () => {
expect(r.status).toBe(201);
const body = await r.json();
expect(body.items.length).toBe(4);
- expect(body.notes).toContain("Account runs make up to 4 at a time.");
+ expect(body.notes).toContain("Each run makes up to 4 results.");
});
it("never reached the install's ComfyUI", () => {
diff --git a/tests/account-keys-isolation.test.ts b/tests/account-keys-isolation.test.ts
index f54eadf5..79ee6c6d 100644
--- a/tests/account-keys-isolation.test.ts
+++ b/tests/account-keys-isolation.test.ts
@@ -179,7 +179,7 @@ describe("an account's runs reach the provider with its own key only", () => {
db().prepare("UPDATE generation_runs SET submitted_at = ? WHERE id = ?").run(Date.now() - 31 * 60_000, g.id);
const done = await settle(g.id);
expect(done.status).toBe("failed");
- expect(done.error).toBe("Timed out waiting 30 minutes in fal.ai's queue");
+ expect(done.error).toBe("This waited over 30 minutes to start. Press Retry.");
const cancel = fal.log.find((r) => r.path.endsWith("/cancel"));
expect(cancel?.authorization).toBe("Key acct-fal-A");
expect(keysSeen(fal.log)).toEqual(["Key acct-fal-A"]);
@@ -266,7 +266,7 @@ describe("no fallback, ever", () => {
// With neither a GPU nor a key, the proxy answers first.
const p = proxy(new NextRequest("http://localhost:3000/api/generations", { method: "POST", headers: { cookie: cookies.C }, body: "{}" }));
expect(p.status).toBe(403);
- expect((await p.json()).error).toMatch(/Connect your GPU, or add your own fal\.ai or Replicate key/);
+ expect((await p.json()).error).toMatch(/Connect your GPU to/);
// B has a fal.ai key only: a Replicate-only model asks for a Replicate key.
const r = await post(cookies.B, { feature: "image", modelId: "imagen-4", engine: "cloud", prompt: "x" });
expect(r.status).toBe(403);
@@ -305,9 +305,9 @@ describe("no fallback, ever", () => {
});
it("the runner refuses an adapter call outside its run's own account", () => {
- expect(() => gens.adapterFor("fal", A)).toThrow(/isn't in its account's scope/);
- runAsTenant({ kind: "account", id: B }, () => expect(() => gens.adapterFor("fal", A)).toThrow(/isn't in its account's scope/));
- runAsTenant({ kind: "account", id: A }, () => expect(() => gens.adapterFor("fal", undefined)).toThrow(/isn't in its account's scope/));
+ expect(() => gens.adapterFor("fal", A)).toThrow(/can't find that run/);
+ runAsTenant({ kind: "account", id: B }, () => expect(() => gens.adapterFor("fal", A)).toThrow(/can't find that run/));
+ runAsTenant({ kind: "account", id: A }, () => expect(() => gens.adapterFor("fal", undefined)).toThrow(/can't find that run/));
runAsTenant({ kind: "account", id: A }, () => expect(gens.adapterFor("fal", A).id).toBe("fal"));
expect(gens.adapterFor("fal", undefined).id).toBe("fal");
});
diff --git a/tests/account-keys-limits.test.ts b/tests/account-keys-limits.test.ts
index a57f59b2..9b173d9d 100644
--- a/tests/account-keys-limits.test.ts
+++ b/tests/account-keys-limits.test.ts
@@ -89,7 +89,7 @@ describe("an account's limits hold for runs on its own key", () => {
const r = await post({ params: { numOutputs: 8 } });
expect(r.status).toBe(201);
const body = await r.json();
- expect(body.notes).toContain("Account runs make up to 4 at a time.");
+ expect(body.notes).toContain("Each run makes up to 4 results.");
for (let i = 0; i < 50 && submits() < 1; i++) await new Promise((r) => setTimeout(r, 10));
const sent = fal.log.find((x) => x.method === "POST");
expect(JSON.parse(sent!.body).num_images ?? 4).toBeLessThanOrEqual(4);
diff --git a/tests/account-keys-routes.test.ts b/tests/account-keys-routes.test.ts
index 790e21e4..79499c88 100644
--- a/tests/account-keys-routes.test.ts
+++ b/tests/account-keys-routes.test.ts
@@ -109,7 +109,7 @@ describe("adding a key", () => {
const r = await put("fal", { key: BAD_FAL });
expect(r.status).toBe(422);
const text = await r.text();
- expect(JSON.parse(text).error).toBe("fal.ai didn't accept this key. Copy it again from fal.ai's API keys page.");
+ expect(JSON.parse(text).error).toBe("fal.ai didn't accept this key. Copy it again from fal.ai.");
expect(text).not.toContain("wrong-key");
// A key that doesn't look like one gets the format hint too.
const half = await put("fal", { key: "fal_only_one_half" });
@@ -182,7 +182,7 @@ describe("who may use the routes", () => {
it("the owner is told where the studio's keys are; an unknown provider is 404", async () => {
const owner = await put("fal", { key: GOOD_FAL }, "", ownerCookie());
expect(owner.status).toBe(400);
- expect((await owner.json()).error).toMatch(/Settings → Paid API configuration/);
+ expect((await owner.json()).error).toMatch(/Log in to add your keys/);
expect((await put("openai", { key: GOOD_FAL })).status).toBe(404);
});
diff --git a/tests/account-space-limits.test.ts b/tests/account-space-limits.test.ts
index 0e4b702b..4e2d3a30 100644
--- a/tests/account-space-limits.test.ts
+++ b/tests/account-space-limits.test.ts
@@ -172,7 +172,7 @@ describe("M-6: accounts can't fill the server's disk", () => {
const r = await from("203.0.113.5", "[email protected]");
expect(r.status).toBe(429);
// It says what happened: the network, not the person, made the accounts.
- expect((await r.json()).error).toBe("Too many new accounts from this network today. Try again tomorrow.");
+ expect((await r.json()).error).toBe("That's a lot of new accounts from one network today. Try again tomorrow.");
const ok = await signup.POST(
new Request("http://localhost:3000/api/auth/signup", { method: "POST", headers: { "content-type": "application/json", "x-forwarded-for": "203.0.113.6" }, body: JSON.stringify({ email: "[email protected]", password: "long enough" }) }),
);
diff --git a/tests/account-tenant.test.ts b/tests/account-tenant.test.ts
index a3d4a6bf..687d0915 100644
--- a/tests/account-tenant.test.ts
+++ b/tests/account-tenant.test.ts
@@ -60,13 +60,13 @@ describe("inside an account's work, only its own files", () => {
await asA(async () => {
expect((await readRef(mine.url)).data.equals(TINY_PNG)).toBe(true);
expect((await readRef(`data:text/plain;base64,${Buffer.from("hi").toString("base64")}`)).data.toString()).toBe("hi");
- await expect(readRef(owners.url)).rejects.toThrow(/isn't yours/);
+ await expect(readRef(owners.url)).rejects.toThrow(/can't find that file/);
await expect(readRef(owners.id)).rejects.toBeInstanceOf(RefError);
- await expect(readRef("https://example.com/a.png")).rejects.toThrow(/can't fetch links/);
+ await expect(readRef("https://example.com/a.png")).rejects.toThrow(/Upload the file/);
await expect(readRef("/api/files/uploads/2020-01-01/nothing.png")).rejects.toThrow(/expired/);
});
// Another account can't read it either; the owner reads everything.
- await runAsTenant({ kind: "account", id: b }, async () => expect(readRef(mine.url)).rejects.toThrow(/isn't yours/));
+ await runAsTenant({ kind: "account", id: b }, async () => expect(readRef(mine.url)).rejects.toThrow(/can't find that file/));
expect((await readRef(owners.url)).data.length).toBe(TINY_PNG.length);
});
@@ -130,13 +130,13 @@ describe("every step an account's run starts is its own", () => {
});
it("refuses a request stamped for another account, and a step that waits for someone else's run", () => {
- expect(() => run(() => createGenerations({ feature: "video", modelId: "oss-wan22-14b", prompt: "x", account: b } as never))).toThrow(/another account/);
+ expect(() => run(() => createGenerations({ feature: "video", modelId: "oss-wan22-14b", prompt: "x", account: b } as never))).toThrow(/can't find that run/);
db()
.prepare(
"INSERT INTO generations (id, feature, model_id, engine, provider, op, kind, status, request_json, outputs_json, created_at, updated_at) VALUES ('owner-dep', 'image', 'm', 'open', 'comfyui', 't2i', 'image', 'succeeded', '{}', '[]', 1, 1)",
)
.run();
- expect(() => run(() => createGenerations({ feature: "video", modelId: "oss-wan22-14b", prompt: "x" } as never, { dependsOn: "owner-dep" }))).toThrow(/isn't yours/);
+ expect(() => run(() => createGenerations({ feature: "video", modelId: "oss-wan22-14b", prompt: "x" } as never, { dependsOn: "owner-dep" }))).toThrow(/can't find that run/);
// A visitor's price check never starts a run.
expect(() => runAsTenant({ kind: "guest" }, () => createGenerations({ feature: "video", modelId: "oss-wan22-14b", prompt: "x" } as never))).toThrow(/free account/);
});
diff --git a/tests/account-tools.test.ts b/tests/account-tools.test.ts
index 5348a955..774f9318 100644
--- a/tests/account-tools.test.ts
+++ b/tests/account-tools.test.ts
@@ -239,7 +239,7 @@ describe("an account's ComfyUI can't hold up the server", () => {
const id = (await r.json()).items[0].id as string;
const g = await settle(id);
expect(g?.status).toBe("failed");
- expect(g?.error).toMatch(/over 2 MB/);
+ expect(g?.error).toMatch(/couldn't save this result/);
expect(fs.readdirSync(scratchDir()).filter((f) => f.startsWith(`${id}-out-`))).toEqual([]);
} finally {
OWN_OUTPUT_LIMITS.maxBytes = was;
@@ -252,7 +252,7 @@ describe("an account's ComfyUI can't hold up the server", () => {
const r = await generationsRoute.POST(json("/api/generations", "POST", { feature: "video", modelId: "fuobe-dop", presetId: "motion-zoom-in", prompt: "", inputs: { images: [pic.url] } }));
const g = await settle((await r.json()).items[0].id);
expect(g?.status).toBe("failed");
- expect(g?.error).toBe("Your ComfyUI answered with a job id Fuobe can't use.");
+ expect(g?.error).toBe("Your ComfyUI couldn't take this run. Press Retry.");
expect(fake.log.some((e) => e.path.startsWith("/system_stats?"))).toBe(false);
});
});
diff --git a/tests/account-uploads.test.ts b/tests/account-uploads.test.ts
index 6d5f967e..db55082f 100644
--- a/tests/account-uploads.test.ts
+++ b/tests/account-uploads.test.ts
@@ -136,7 +136,7 @@ describe("an account's upload", () => {
try {
const r = await upload(TINY_PNG, { cookie: cookieA, type: "image/png" });
expect(r.status).toBe(413);
- expect((await r.json()).error).toMatch(/reached 1 GB/);
+ expect((await r.json()).error).toMatch(/used your 1 GB/);
} finally {
db().prepare("DELETE FROM assets WHERE id = 'full'").run();
}
diff --git a/tests/audio-tools.test.ts b/tests/audio-tools.test.ts
index b2102480..d04cc8b9 100644
--- a/tests/audio-tools.test.ts
+++ b/tests/audio-tools.test.ts
@@ -74,7 +74,7 @@ describe("Loop / extend and Join plans", () => {
expect(chain.summary).toBe("Plays it 60 times back to back (3 calls of up to 5): 10:00.");
// Each tile says what its call does (not the pipeline's "Step 1 of 3").
expect(chain.steps.map((s) => s.request.step?.label)).toEqual(["5 plays · call 1 of 3", "4 plays · call 2 of 3", "3 plays · call 3 of 3"]);
- expect(chain.notes).toEqual(["No crossfade on the cloud: switch to the open engine for smooth seams and an exact length."]);
+ expect(chain.notes).toEqual(["For smooth seams and an exact length, switch to Open source."]);
});
it("sends each cloud call exactly its planned plays, whatever the clip's length in milliseconds", () => {
diff --git a/tests/av-virality.test.ts b/tests/av-virality.test.ts
index 282c1caf..8ad06ce1 100644
--- a/tests/av-virality.test.ts
+++ b/tests/av-virality.test.ts
@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest";
-import { hookSignals, hookSummary, hookTimes, loudnessSeries, lumaStats, meanDb, TRIBE_WORKER, VIRALITY_PARITY, type HookInput } from "@/lib/av/virality";
+import { hookSignals, hookSummary, hookTimes, loudnessSeries, lumaStats, meanDb, VIRALITY_PARITY, type HookInput } from "@/lib/av/virality";
import { getPreset } from "@/lib/catalog";
const base: HookInput = {
@@ -84,16 +84,9 @@ describe("virality heuristic", () => {
expect(v.sound).toBe("ok");
});
- it("shows no score anywhere and states the TRIBE v2 licence", () => {
+ it("shows no score anywhere", () => {
for (const s of hookSignals(base)) expect(`${s.detail} ${s.tip ?? ""}`).not.toMatch(/score|viral|\/ ?100/i);
- expect(VIRALITY_PARITY.body).toMatch(/TRIBE v2/);
- expect(VIRALITY_PARITY.body).toMatch(/CC BY-NC/);
- expect(VIRALITY_PARITY.open).toMatch(/non-commercial/);
- // The optional worker is documented: its endpoint, output, the gated Llama and the licence.
- expect(TRIBE_WORKER.endpoint).toMatch(/\/analyze/);
- expect(TRIBE_WORKER.output.join(" ")).toMatch(/hook_score.*0–3 s/);
- expect(TRIBE_WORKER.needs.join(" ")).toMatch(/Llama-3\.2-3B.*gated/);
- expect(TRIBE_WORKER.needs.join(" ")).toMatch(/CC BY-NC/);
+ expect(`${VIRALITY_PARITY.title} ${VIRALITY_PARITY.lead}`).not.toMatch(/score|\/ ?100/i);
});
it("the app that used to be Virality Predictor is the Hook Frame step (old generations still find it)", () => {
diff --git a/tests/canvas-api.test.ts b/tests/canvas-api.test.ts
index 496a191b..d6aff5e2 100644
--- a/tests/canvas-api.test.ts
+++ b/tests/canvas-api.test.ts
@@ -219,7 +219,7 @@ describe("canvas API", () => {
// Cloud nodes are refused with a reason.
res = await run.POST(req("POST", { graph: board }), ctx(id));
expect(res.status).toBe(422);
- expect(((await res.json()) as { error: string }).error).toMatch(/^Nano Banana Pro is a paid cloud model, but this install is open source only/);
+ expect(((await res.json()) as { error: string }).error).toMatch(/^Nano Banana Pro is a cloud model, which isn't available here/);
// The open variant runs.
res = await run.POST(req("POST", {}), ctx(c.id));
expect(res.status).toBe(201);
diff --git a/tests/canvas-editor-state.test.ts b/tests/canvas-editor-state.test.ts
index 92140a43..b41cc353 100644
--- a/tests/canvas-editor-state.test.ts
+++ b/tests/canvas-editor-state.test.ts
@@ -112,7 +112,7 @@ describe("canvas node views", () => {
expect(next.get("img")?.d.request?.prompt).toBe("A red fox in snow");
expect(next.get("vid")).toBe(first.get("vid"));
// The engine mode changes every description.
- expect(cache.run(typed, "open").get("vid")?.d.error).toMatch(/paid cloud model/);
+ expect(cache.run(typed, "open").get("vid")?.d.error).toMatch(/cloud model/);
});
it("folds a node's results once per change of its generations", () => {
diff --git a/tests/canvas-plus.test.ts b/tests/canvas-plus.test.ts
index 484d696f..38b759a2 100644
--- a/tests/canvas-plus.test.ts
+++ b/tests/canvas-plus.test.ts
@@ -375,7 +375,7 @@ describe("tables", () => {
g.nodes.push(node("out", "output", {}, 1600, 0), node("t2", "table", { label: "Other", columns: ["X"], rows: [["a"]] }, 0, 300), node("join", "join", { modelId: "join-clips" }, 1200, 400));
expect(connectionError(g, { source: "t", target: "out", targetHandle: "in" })).toMatch(/Text input/);
expect(connectionError(g, { source: "t2", target: "vid", targetHandle: "prompt" })).toMatch(/“Other” and “Cast” both reach “vid”|“Cast” and “Other” both reach/);
- expect(connectionError(g, { source: "vid", target: "join", targetHandle: "videos" })).toMatch(/Video concatenator joins a clip per row/);
+ expect(connectionError(g, { source: "vid", target: "join", targetHandle: "videos" })).toMatch(/Assemble film joins a clip per row/);
expect(paletteItems("open").find((p) => p.id === "table")!.disabled).toBeUndefined();
});
diff --git a/tests/canvas.test.ts b/tests/canvas.test.ts
index cdfd545f..2c4e02b1 100644
--- a/tests/canvas.test.ts
+++ b/tests/canvas.test.ts
@@ -240,7 +240,7 @@ describe("canvas graph → plan", () => {
// The engine mode is enforced per node.
plan = planCanvas(threeNodes(), { engineMode: "open" });
- expect(plan.errors[0]).toEqual({ nodeId: "img", message: "Nano Banana Pro is a paid cloud model, but this install is open source only — pick an open model" });
+ expect(plan.errors[0]).toEqual({ nodeId: "img", message: "Nano Banana Pro is a cloud model, which isn't available here. Pick an open-source model" });
});
it("finds loops", () => {
diff --git a/tests/cinema-fixes.test.ts b/tests/cinema-fixes.test.ts
index 714c7351..04dce2ba 100644
--- a/tests/cinema-fixes.test.ts
+++ b/tests/cinema-fixes.test.ts
@@ -156,7 +156,7 @@ describe("Cinema generate", () => {
const capped = cinema.createProject({ name: "Capped mode", costCapUsd: 5 });
const res = await generateRoute.POST(json("POST", { input: VIDEO }), params({ id: capped.id }));
expect(res.status).toBe(422);
- expect((await res.json()).error).toMatch(/open source only/);
+ expect((await res.json()).error).toMatch(/isn't available here/);
} finally {
setSetting("engineMode", "both");
}
diff --git a/tests/comfy-dbs.test.ts b/tests/comfy-dbs.test.ts
index c9fa909e..899ed63f 100644
--- a/tests/comfy-dbs.test.ts
+++ b/tests/comfy-dbs.test.ts
@@ -35,7 +35,7 @@ describe("separate-soundtrack-dbs in the manifest", () => {
expect(entry.bindings.channels).toEqual([{ node: "3", input: "channels" }]);
expect(entry.defaults).toEqual({ separationModel: "DBS-BSRNN-DnR", channels: "mono" });
expect(entry.notes).toMatch(/^CPU OK, about 1\.7 GiB on CUDA\./);
- expect(entry.license).toBe("DBS weights Apache-2.0 (JusperLee; trained on DnR v2, CC BY 4.0); ComfyUI-DBS code MIT; vendored DBS code Apache-2.0 with MIT notices (BS-RoFormer, MSST, TIGER)");
+ expect(entry.license).toBe("DBS weights Apache-2.0 (JusperLee; trained on DnR v2, CC BY 4.0); ComfyUI-DBS code MIT; bundled DBS code Apache-2.0 with MIT notices (BS-RoFormer, MSST, TIGER)");
});
it("outputs voice, music, effects, background and the report, in that order", () => {
@@ -290,7 +290,7 @@ describe("licences, as information", () => {
licence: {
name: "MIT",
class: "commercial",
- note: "Dialogue / music / effects separation; MIT code, vendored DBS code Apache-2.0 with MIT notices; the DBS weights are Apache-2.0, trained on DnR v2 (CC BY 4.0). Some FSD50K and FMA clips inside DnR v2 carry their own CC licences, NC variants included; whether that reaches the weights or their outputs is unresolved",
+ note: "Dialogue, music and effects separation; MIT code, bundled DBS code Apache-2.0 with MIT notices. The DBS weights are Apache-2.0, trained on DnR v2 (CC BY 4.0), some of whose clips carry their own licences",
},
});
expect(licenceInfo(workflowLicence(entry))).toMatchObject({ name: "Apache-2.0", class: "commercial" });
@@ -300,7 +300,7 @@ describe("licences, as information", () => {
const dnr = ATTRIBUTIONS.find((a) => a.licence === "CC BY 4.0");
expect(dnr?.text).toBe("Trained on the Divide and Remaster (DnR) v2 dataset by Darius Petermann, Gordon Wichern, Zhong-Qiu Wang and Jonathan Le Roux");
// The open question about DnR's own source clips, recorded as information (research §3.2).
- expect(dnr?.note).toMatch(/^Some FSD50K and FMA clips inside DnR v2 carry their own CC licences, NC variants included\./);
+ expect(dnr?.note).toMatch(/^Some of its clips carry their own licences\./);
expect(entry.notes).toMatch(/NC variants included; whether that reaches the weights or their outputs is unresolved/);
// Still information: the workflow's licence row reads Apache-2.0, nothing is flagged or hidden for it.
expect(licenceInfo(workflowLicence(entry)).class).toBe("commercial");
diff --git a/tests/comfy-provider.test.ts b/tests/comfy-provider.test.ts
index 6c23666f..b522d6e2 100644
--- a/tests/comfy-provider.test.ts
+++ b/tests/comfy-provider.test.ts
@@ -94,12 +94,12 @@ describe("ComfyUI poll (S5)", () => {
expect((await comfyProvider.poll(pollCtx("p-gone"))).state).toBe("running");
expect((await comfyProvider.poll(pollCtx("p-gone"))).state).toBe("running");
const third = await comfyProvider.poll(pollCtx("p-gone"));
- expect(third).toMatchObject({ state: "failed", error: expect.stringMatching(/disappeared/) });
+ expect(third).toMatchObject({ state: "failed", error: expect.stringMatching(/restarted and lost/) });
});
it("reports the queue position while pending", async () => {
handler = (url) => (url.includes("/history/") ? json({}) : json({ queue_running: [[0, "other"]], queue_pending: [[1, "x"], [2, "p-wait"]] }));
- expect(await comfyProvider.poll(pollCtx("p-wait"))).toMatchObject({ state: "queued", message: "In ComfyUI queue · position 2" });
+ expect(await comfyProvider.poll(pollCtx("p-wait"))).toMatchObject({ state: "queued", message: "In ComfyUI's queue · 1 ahead" });
});
});
diff --git a/tests/comfy-reach.test.ts b/tests/comfy-reach.test.ts
index e8557433..f61e5cf0 100644
--- a/tests/comfy-reach.test.ts
+++ b/tests/comfy-reach.test.ts
@@ -256,7 +256,7 @@ describe("a chain step after real ComfyUI steps", () => {
const x = gens.getGeneration(g.id)!;
return x.status === "failed" ? x : undefined;
});
- expect(done.error).toMatch(/Join clips \(copy\) needs ComfyUI to continue what the earlier steps made for real/);
+ expect(done.error).toMatch(/Join clips.*needs ComfyUI to continue what the earlier steps made for real/);
} finally {
gens.COMFY_WAIT.ms = wait;
}
diff --git a/tests/comfy-reuse.test.ts b/tests/comfy-reuse.test.ts
index 525bff84..d3dd3757 100644
--- a/tests/comfy-reuse.test.ts
+++ b/tests/comfy-reuse.test.ts
@@ -223,6 +223,7 @@ describe("licences, as information", () => {
expect(pack?.licence).toMatchObject({ name: "MIT", class: "commercial" });
expect(pack?.repo).toBe(`https://github.com/workingprototype/Fuobe/tree/${requirements.packs["ComfyUI-RE-USE"].commit}/comfy-nodes/ComfyUI-RE-USE`);
expect(pack?.licence.note).toMatch(/not NVIDIA's code path/);
- expect(ATTRIBUTIONS.find((a) => a.for === "RE-USE (clean up voice)")).toMatchObject({ licence: "OpenMDW-1.1", note: expect.stringMatching(/non-commercial \(NSCLv1\)/) });
+ expect(ATTRIBUTIONS.find((a) => a.for === "Clean up voice")).toMatchObject({ licence: "OpenMDW-1.1", note: expect.stringMatching(/non-commercial \(NSCLv1\)/) });
+ expect(ATTRIBUTIONS.find((a) => a.for === "Clean up voice demo")).toMatchObject({ licence: "OpenMDW-1.1", text: expect.stringContaining("mic_test2.wav") });
});
});
diff --git a/tests/dop-originals.test.ts b/tests/dop-originals.test.ts
index 45452159..9499856f 100644
--- a/tests/dop-originals.test.ts
+++ b/tests/dop-originals.test.ts
@@ -322,7 +322,7 @@ describe("review fixes", () => {
const whip = getPreset("motion-whip-pan")!;
expect(whip.open).toMatchObject({ modelId: "fuobe-dop" });
expect(whip.cloud).toMatchObject({ modelId: "kling-2-5-turbo", partner: true });
- expect(whip.parity).toMatch(/In the cloud it runs on a partner model\.$/);
+ expect(whip.parity).toMatch(/^On your GPU, Fuobe DoP [^.]+\.$/);
// The Details popover reads as plain words: no notes for us about checks still to run.
for (const p of [...MOTIONS, ...EFFECTS]) expect(p.parity ?? "", p.id).not.toMatch(/evaluation harness|checked on a GPU run|unverified/);
// Every cloud route on Fuobe DoP brings something of its own: a LoRA, a camera LoRA or move, a grade or a relight.
diff --git a/tests/e2e/byo-keys.mjs b/tests/e2e/byo-keys.mjs
index 8298dc3f..740c2cc9 100644
--- a/tests/e2e/byo-keys.mjs
+++ b/tests/e2e/byo-keys.mjs
@@ -213,7 +213,7 @@ try {
await page.getByText(/run is using this key now/).waitFor({ timeout: 20_000 });
await shootKeys(page, "your-keys-runs-going-desktop.png");
await page.getByRole("button", { name: "Stop runs and remove" }).click();
- await page.getByText("Your fal.ai key is removed from this studio.").waitFor({ timeout: 20_000 });
+ await page.getByText("Your fal.ai key is removed.").waitFor({ timeout: 20_000 });
const cancel = fal.log.find((r) => r.path.endsWith("/cancel"));
check(cancel?.authorization === `Key ${ACCT_FAL}`, "removing the key stopped the running job at fal.ai with that key");
const slowRow = await api(`/api/generations/${slow.json?.items?.[0]?.id}`, { cookie: acct });
diff --git a/tests/e2e/character-swap-studio.mjs b/tests/e2e/character-swap-studio.mjs
index be6e6313..19a5124d 100644
--- a/tests/e2e/character-swap-studio.mjs
+++ b/tests/e2e/character-swap-studio.mjs
@@ -1,8 +1,7 @@
// Character Swap Studio, browser check (o/h3-studio): the whole flow in demo mode on the cloud engine — a project, the
// character, a clip, Detect edits, a cut at the playhead and Keep original, the transcript and Build shot prompts, a
// click on a frame and Track shot, a mask and a scene anchor approved, two segments (the second continuing from the
-// first, waiting for it), takes made, compared and reviewed, Export decisions, the assembly with a download, and the
-// Finish stage shown as not available. Then every stage at 1440 and 390 px, light and dark, without sideways scroll;
+// first, waiting for it), takes made, compared and reviewed, Export decisions, and the assembly with a download. Then every stage at 1440 and 390 px, light and dark, without sideways scroll;
// a project on your GPU shows its 24 fps copy; an AVI on the cloud gets a copy the browser can play; the sidebar links
// here and Genjutsu's Character swap opens its clip and character in a new project; an unknown project is a 404.
// Usage: node tests/e2e/character-swap-studio.mjs [appUrl] [--shots <dir>] (app in demo mode, ComfyUI unreachable).
@@ -181,12 +180,11 @@ try {
check("Export decisions: the clip's review and the take's", !!exported, exported ? "" : JSON.stringify(last.clips?.[0]?.shots?.[0]?.segments?.map((g) => g.takes.map((t) => [t.favourite, t.decision]))) + ` review=${last.clips?.[0]?.review}`);
await shot("06-review");
- // Assemble; the Finish stage is not available.
+ // Assemble.
await page.getByRole("tab", { name: "Assemble" }).click();
await page.getByRole("button", { name: "Assemble clip" }).click();
await page.getByRole("link", { name: "Download" }).waitFor({ timeout: 120_000 });
check("assembled, with a download", true);
- check("Finish stage shown as not available", /Not available/.test(await text()) && /Raw assembly migration is pending/.test(await text()));
await shot("07-assemble");
await context.close();
}
@@ -235,7 +233,7 @@ try {
await page.getByText("24 fps copy").first().waitFor();
check("your GPU: the clip's 24 fps copy is made on import", true);
await page.getByRole("tab", { name: "Assemble" }).click();
- check("your GPU: where it runs (ComfyUI connection, no SSH)", /doesn't open SSH sessions/.test(await page.evaluate(() => document.body.innerText)));
+ check("your GPU: where it runs (ComfyUI connection)", /Runs on your ComfyUI/.test(await page.evaluate(() => document.body.innerText)));
await page.goto(`${app}/genjutsu?mode=character`, { waitUntil: "load" });
await page.getByRole("link", { name: /Open in Character Swap Studio/ }).waitFor({ timeout: 90_000 });
check("Genjutsu's Character swap links the studio", true);
diff --git a/tests/e2e/computer-mode.mjs b/tests/e2e/computer-mode.mjs
index 28bf25a0..29fe71bc 100644
--- a/tests/e2e/computer-mode.mjs
+++ b/tests/e2e/computer-mode.mjs
@@ -107,7 +107,7 @@ try {
});
const page = await ctx.newPage();
if (process.env.E2E_CONSOLE) page.on("console", (m) => console.log(`[page] ${m.type()} ${m.text()}`));
- await page.goto(`${SITE}/status`, { waitUntil: "load" });
+ await page.goto(`${SITE}/settings`, { waitUntil: "load" });
if (email) {
const status = await page.evaluate(
({ email, login }) => fetch(login ? "/api/auth/login" : "/api/auth/signup", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ email, password: "long enough password" }) }).then((r) => r.status),
diff --git a/tests/e2e/fixes-5.mjs b/tests/e2e/fixes-5.mjs
index 080dd42b..33264908 100644
--- a/tests/e2e/fixes-5.mjs
+++ b/tests/e2e/fixes-5.mjs
@@ -98,28 +98,6 @@ try {
await context.close();
}
- // ---------------------------------------------------------------------------
- // Workflows → Copy install commands on the H3 workflows.
- {
- const { context, page } = await contextFor();
- await page.goto(`${app}/workflows`, { waitUntil: "load" });
- await page.getByRole("searchbox").or(page.getByPlaceholder(/search/i)).first().fill("h3");
- for (const [id, want] of [
- ["video-character-swap-h3-relay", /git clone https:\/\/github\.com\/akatz-ai\/h3-relay "\$COMFYUI\/custom_nodes\/h3-relay"; }[\s\S]*git -C "\$COMFYUI\/custom_nodes\/h3-relay" checkout -q e2a7665b/],
- ["video-character-swap-h3", /sparse-checkout set --no-cone \/worker_nodes\/h3_character_swap\/ && git -C "\$tmp" checkout -q 0670e4fd/],
- ]) {
- const card = page.locator("article").filter({ hasText: id }).filter({ has: page.getByText(id, { exact: true }) }).first();
- await card.waitFor({ timeout: 30_000 });
- await page.evaluate(() => navigator.clipboard.writeText("UNCHANGED"));
- await card.getByRole("button", { name: /Copy install commands/ }).click();
- await page.getByText("Install commands copied").first().waitFor({ timeout: 5_000 });
- const copied = await page.evaluate(() => navigator.clipboard.readText());
- check(`${id}: the commands clone the repo and pin the commit`, want.test(copied));
- check(`${id}: no …/tree/… address handed to git`, !/clone \S*\/tree\//.test(copied));
- }
- await context.close();
- }
-
// ---------------------------------------------------------------------------
// Edit video: Happy Horse priced on the attached clip's seconds ($0.28 a second at 720p), a 40 s clip refused.
{
@@ -164,7 +142,7 @@ try {
]) {
for (const scheme of ["light", "dark"]) {
const { context, page } = await contextFor({ width, height }, scheme);
- for (const p of ["/settings#training", "/workflows"]) {
+ for (const p of ["/settings#training", "/settings"]) {
await page.goto(`${app}${p}`, { waitUntil: "load" });
await page.waitForTimeout(1200);
const ok = await page.evaluate(() => document.documentElement.scrollWidth <= document.documentElement.clientWidth + 1);
diff --git a/tests/e2e/genjutsu-original.mjs b/tests/e2e/genjutsu-original.mjs
index eacb4e56..bb232a31 100644
--- a/tests/e2e/genjutsu-original.mjs
+++ b/tests/e2e/genjutsu-original.mjs
@@ -99,7 +99,7 @@ try {
.catch(() => false),
);
await page.getByText("Advanced").first().click();
- const loras = (await page.getByRole("radiogroup", { name: "Swap LoRA" }).getByRole("radio").allInnerTexts()).join("|");
+ const loras = (await page.getByRole("radiogroup", { name: "Swap style" }).getByRole("radio").allInnerTexts()).join("|");
check(`${tag}: cloud: the swap LoRA is V1.5 or V1 (fal's route needs one)`, loras === "V1.5|V1", loras);
await page.getByRole("button", { name: "Use the clip's words" }).click();
const said = page.locator("#gj-dialogue");
@@ -137,9 +137,9 @@ try {
check(`${tag}: open: the GPU it was tested on`, /Tested by its authors on a 96 GB RTX PRO 6000/.test(openBody));
check(`${tag}: open: the H3 Relay is an open alternative`, /H3 Relay/.test(openBody));
// Advanced is still open from the cloud: on your GPU "None" is a choice, and the mask switch is the Original's.
- if (!(await page.getByRole("radiogroup", { name: "Swap LoRA" }).isVisible().catch(() => false))) await page.getByText("Advanced").first().click();
- check(`${tag}: open: Advanced has the LoRA release and the window`, (await page.getByRole("radiogroup", { name: "Swap LoRA" }).count()) === 1 && (await page.getByText("Window", { exact: true }).count()) >= 1);
- check(`${tag}: open: no swap LoRA is a choice on your GPU`, (await page.getByRole("radiogroup", { name: "Swap LoRA" }).getByRole("radio", { name: "None" }).count()) === 1);
+ if (!(await page.getByRole("radiogroup", { name: "Swap style" }).isVisible().catch(() => false))) await page.getByText("Advanced").first().click();
+ check(`${tag}: open: Advanced has the LoRA release and the window`, (await page.getByRole("radiogroup", { name: "Swap style" }).count()) === 1 && (await page.getByText("Window", { exact: true }).count()) >= 1);
+ check(`${tag}: open: no swap LoRA is a choice on your GPU`, (await page.getByRole("radiogroup", { name: "Swap style" }).getByRole("radio", { name: "None" }).count()) === 1);
check(`${tag}: open: Masked generation on the Original's graph`, (await page.getByRole("switch", { name: "Masked generation" }).count()) === 1);
await page.getByRole("radiogroup", { name: "Who to swap" }).getByRole("radio", { name: "Person #" }).click();
check(`${tag}: open: person numbers are SAM's detections, said so`, (await page.getByText("Detection number", { exact: true }).count()) === 1 && /not left to right/.test(await text()));
diff --git a/tests/e2e/owner-computer.mjs b/tests/e2e/owner-computer.mjs
index 35ede3f1..4bca386b 100644
--- a/tests/e2e/owner-computer.mjs
+++ b/tests/e2e/owner-computer.mjs
@@ -133,7 +133,7 @@ const send = (page, url, body, method = "POST") => api(page, url, { method, head
const runs = async (page) => (await api(page, "/api/generations?limit=20")).body?.items ?? [];
async function signIn(page, who) {
- await page.goto(`${SITE}/status`, { waitUntil: "load" });
+ await page.goto(`${SITE}/settings`, { waitUntil: "load" });
const r = who === "owner" ? await send(page, "/api/auth/login", { password: PASSWORD }) : await send(page, "/api/auth/signup", { email: who, password: "long enough password" });
if (r.status !== 200 && r.status !== 201) throw new Error(`sign-in answered ${r.status}`);
}
@@ -280,11 +280,6 @@ async function hosted() {
const inLibrary = await until(() => page.locator(`img[src*="/api/files/"]`).first().isVisible(), 30_000);
check("the result is in the Library", !!inLibrary);
- // /workflows: checkmarks from the computer's check.
- await page.goto(`${SITE}/workflows`, { waitUntil: "load" });
- check("/workflows: checked on your computer", !!(await until(() => page.getByText(/^Checked on your computer .*Checkmarks show the models it has\.$/).isVisible(), 30_000)));
- await shoot(page, "workflows-computer");
-
// /connect: the board, not "Your link didn't answer".
await page.goto(`${SITE}/connect`, { waitUntil: "load" });
check("/connect: the board, and Change where it runs", !!(await until(() => page.getByRole("link", { name: "Change where it runs" }).isVisible(), 30_000)));
@@ -312,7 +307,7 @@ async function hosted() {
await page.keyboard.press("Escape");
await page.goto(`${SITE}/connect`, { waitUntil: "load" });
await page.getByRole("button", { name: /Check again|Check my GPU/ }).first().click({ timeout: 30_000 });
- await until(() => page.getByText("ComfyUI is running, but it isn't letting this page in yet.").first().isVisible(), 30_000);
+ await until(() => page.getByText("ComfyUI is running, but it isn't letting this page in.").first().isVisible(), 30_000);
const connectText = await page.locator("body").innerText();
// What the page shows, without the checklist's screen-reader announcer, which repeats the last line on purpose.
const shownText = await page.locator("main").evaluate((m) => {
@@ -320,7 +315,7 @@ async function hosted() {
c.querySelectorAll(".sr-only").forEach((e) => e.remove());
return c.textContent ?? "";
});
- const said = (shownText.match(/isn't letting this page in yet/g) ?? []).length;
+ const said = (shownText.match(/isn't letting this page in\./g) ?? []).length;
check("/connect, no setting: one line, never the closed line", said === 1 && !shownText.includes("isn't answering on this computer"), `said ${said} time(s)${shownText.includes("isn't answering on this computer") ? ", with the closed line" : ""}`);
check("/connect, no setting: no browser error words", !/Failed to fetch|NetworkError/.test(connectText));
check("/connect, no setting: Show me how", await page.getByRole("button", { name: "Show me how" }).isVisible());
@@ -395,11 +390,6 @@ async function hosted() {
// Back to the server's address for H4.
check("back to server mode", (await send(page, "/api/settings", { comfyWhere: "server" }, "PUT")).status === 200);
- // /workflows with nothing connected.
- await page.goto(`${SITE}/workflows`, { waitUntil: "load" });
- check("/workflows: Connect your GPU", !!(await until(() => page.getByText("ComfyUI isn't connected yet. Connect your GPU to run these on your own graphics card.").isVisible(), 30_000)));
- await shoot(page, "workflows-connect");
-
// /connect with nothing connected: where ComfyUI runs comes first; no check of the server's own address. (A browser
// already allowed to reach ComfyUI may connect it by itself here: that's the quickest way.)
await page.goto(`${SITE}/connect`, { waitUntil: "load" });
@@ -526,7 +516,6 @@ async function hosted() {
for (const [url, words] of [
["/", "Your GPU"],
["/connect", "Create a free account, then connect the ComfyUI on your computer."],
- ["/workflows", "These are the graphs your own ComfyUI runs. Connect your GPU to see what it has and what it still needs."],
["/settings", "Sign up free"],
]) {
await gp.goto(SITE + url, { waitUntil: "load" });
diff --git a/tests/e2e/popcorn-evolution.mjs b/tests/e2e/popcorn-evolution.mjs
index 6aee9f15..b4f5757e 100644
--- a/tests/e2e/popcorn-evolution.mjs
+++ b/tests/e2e/popcorn-evolution.mjs
@@ -135,8 +135,8 @@ try {
await pick.click();
await page.getByRole("button", { name: "Look: DigitalCam" }).waitFor({ timeout: 15_000 }).catch(() => {});
check(`${tag}: a look is picked`, (await page.getByRole("button", { name: "Look: DigitalCam" }).count()) === 1);
- await page.waitForFunction(() => /Frame 1 on Fuobe Soul in the DigitalCam look/.test(document.body.innerText), null, { timeout: 15_000 }).catch(() => {});
- check(`${tag}: it says frame 1 is made on Fuobe Soul in the look`, /Frame 1 on Fuobe Soul in the DigitalCam look/.test(await text()));
+ await page.waitForFunction(() => /Frame 1 sets the DigitalCam look/.test(document.body.innerText), null, { timeout: 15_000 }).catch(() => {});
+ check(`${tag}: it says frame 1 sets the look`, /Frame 1 sets the DigitalCam look/.test(await text()));
await page.waitForFunction(() => /Placeholder · free/.test(document.body.innerText), null, { timeout: 15_000 }).catch(() => {});
check(`${tag}: the board's price before it runs (a demo here)`, /Placeholder · free/.test(await text()) && /4 frames/.test(await text()));
check(`${tag}: no sideways scroll (Storyboard)`, (await sideways()) <= 1, `${await sideways()} px`);
diff --git a/tests/e2e/shell.mjs b/tests/e2e/shell.mjs
index e4320b9c..887b10b2 100644
--- a/tests/e2e/shell.mjs
+++ b/tests/e2e/shell.mjs
@@ -29,11 +29,11 @@ try {
const ctx = await browser.newContext(PHONE);
const page = await ctx.newPage();
for (const [from, link, to] of [
- ["/models", /^Effects$/, "/effects"],
+ ["/image", /^Effects$/, "/effects"],
["/effects", /^New creation/, "/"],
["/", /^Favorites$/, "/library"],
// The footer's engine status links to Settings too.
- ["/models", /^Cloud models/, "/settings"],
+ ["/image", /^Cloud models/, "/settings"],
]) {
step(`phone: tapping “${link.source.replace(/[\^$]/g, "")}” in the drawer on ${from} closes it`);
await openRoute(page, app + from);
@@ -45,7 +45,7 @@ try {
await drawer.waitFor({ state: "detached", timeout: 5_000 });
}
step("phone: Search in the drawer opens the palette");
- await openRoute(page, `${app}/models`);
+ await openRoute(page, `${app}/image`);
await page.getByRole("button", { name: "Toggle Sidebar" }).first().tap();
await page.locator('[data-mobile="true"]').getByRole("button", { name: /^Search/ }).tap();
await page.getByRole("dialog", { name: "Search Fuobe" }).waitFor();
@@ -172,14 +172,11 @@ try {
assert.ok(!(await studios.getByRole("link", { name: "Upscale" }).isVisible()), "other Studios items are folded away");
await studios.locator("[data-nav-toggle]").click(); // leave it open for the next run
- step("/workflows → Server settings scrolls to the ComfyUI section");
+ step("/workflows and /settings/about redirect to Home and Settings");
await openRoute(page, `${app}/workflows`);
- await page.getByRole("link", { name: "Server settings" }).click();
- await page.waitForURL(/\/settings#comfyui$/);
- await page.locator("#comfyui").waitFor();
- await page.waitForTimeout(400);
- const top = await page.locator("#comfyui").evaluate((el) => el.getBoundingClientRect().top);
- assert.ok(top >= -2 && top < 300, `ComfyUI section near the top of the screen (top ${Math.round(top)}px)`);
+ await page.waitForURL((u) => new URL(u).pathname === "/");
+ await openRoute(page, `${app}/settings/about`);
+ await page.waitForURL(/\/settings$/);
step("Show more from the keyboard focuses the first new card");
await openRoute(page, `${app}/effects`);
diff --git a/tests/e2e/split-soundtrack.mjs b/tests/e2e/split-soundtrack.mjs
index 8d1a752f..c36c5c8d 100644
--- a/tests/e2e/split-soundtrack.mjs
+++ b/tests/e2e/split-soundtrack.mjs
@@ -68,8 +68,8 @@ try {
check(true, `${label}: the cloud engine says Split soundtrack runs on your GPU`);
await page.screenshot({ path: path.join(out, `split-cloud-${dname}-${theme}.png`), fullPage: true });
await page.getByRole("button", { name: "Use open source" }).click();
- await page.getByText(/Free · runs on your ComfyUI|Placeholder · free/).waitFor({ timeout: 20_000 });
- const bar = await page.getByText(/Free · runs on your ComfyUI|Placeholder · free/).first().locator("..").innerText();
+ await page.getByText(/^Free$|Placeholder · free/).waitFor({ timeout: 20_000 });
+ const bar = await page.getByText(/^Free$|Placeholder · free/).first().locator("..").innerText();
check(true, `${label}: the open engine prices it: ${bar.replace(/\s+/g, " ")}`);
const picked = await page.getByRole("radio", { checked: true, name: /Fast \(DBS-BSRNN\)|Best \(DBS-TIGER\)/ }).innerText();
check(/Fast|Best/.test(picked), `${label}: the host's model is preselected (${picked})`);
@@ -125,7 +125,7 @@ try {
check(await empty.isVisible(), `${dname}: a soundtrack removed while it uploads stays removed`);
refusal = null;
await page.locator('input[type="file"]').setInputFiles(wav);
- await page.getByText(/Free · runs on your ComfyUI|Placeholder · free/).waitFor({ timeout: 30_000 });
+ await page.getByText(/^Free$|Placeholder · free/).waitFor({ timeout: 30_000 });
check(true, `${dname}: a file is taken as usual afterwards`);
await page.screenshot({ path: path.join(out, `split-after-refusal-${dname}.png`), fullPage: true });
await ctx.close();
@@ -140,7 +140,7 @@ try {
const page = await ctx.newPage();
await openRoute(page, `${app}/audio/split`);
await page.locator('input[type="file"]').setInputFiles(file);
- await page.getByText(/Free · runs on your ComfyUI|Placeholder · free/).waitFor({ timeout: 30_000 });
+ await page.getByText(/^Free$|Placeholder · free/).waitFor({ timeout: 30_000 });
await page.getByRole("button", { name: "Split it" }).click();
await page.getByRole("heading", { name: "Stems and mixer" }).waitFor({ timeout: RUN_MS });
const tiles = page.getByRole("list", { name: "Stems" }).getByRole("listitem");
diff --git a/tests/engine-mode.test.ts b/tests/engine-mode.test.ts
index 0f97bb39..39fde998 100644
--- a/tests/engine-mode.test.ts
+++ b/tests/engine-mode.test.ts
@@ -24,14 +24,14 @@ describe("engine mode", () => {
it("open-source-only blocks paid models on the server", () => {
setSetting("engineMode", "open");
- expect(() => createGenerations({ feature: "image", modelId: "nano-banana-pro", prompt: "x" })).toThrow(/open source only/);
+ expect(() => createGenerations({ feature: "image", modelId: "nano-banana-pro", prompt: "x" })).toThrow(/isn't available here/);
const [g] = createGenerations({ feature: "image", modelId: "oss-z-image-turbo", prompt: "x" });
expect(g.engine).toBe("open");
});
it("paid-only blocks open models", () => {
setSetting("engineMode", "cloud");
- expect(() => createGenerations({ feature: "image", modelId: "oss-z-image-turbo", prompt: "x" })).toThrow(/paid cloud APIs only/);
+ expect(() => createGenerations({ feature: "image", modelId: "oss-z-image-turbo", prompt: "x" })).toThrow(/isn't available here/);
setSetting("engineMode", "both");
});
});
diff --git a/tests/isolated-worker.test.ts b/tests/isolated-worker.test.ts
index e0c62555..b7ba63bf 100644
--- a/tests/isolated-worker.test.ts
+++ b/tests/isolated-worker.test.ts
@@ -173,7 +173,7 @@ describe("isolated-worker models in the studios", () => {
expect(ids(studioCatalog(FOLEY_STUDIO))).not.toContain("oss-thinksound");
// Neither is a default: they need a second ComfyUI.
expect([LIPSYNC_STUDIO.defaultModels.open, SFX_STUDIO.defaultModels.open]).toEqual(["oss-infinitetalk", "oss-stable-audio-3"]);
- expect(toModelRow(getModel("oss-latentsync")!).note).toBe("Runs on the isolated ComfyUI worker");
+ expect(toModelRow(getModel("oss-latentsync")!).note).toBe("Runs on a second ComfyUI");
expect(toModelRow(getModel("oss-infinitetalk")!).note).toBeUndefined();
});
});
diff --git a/tests/llm.test.ts b/tests/llm.test.ts
index f8f9a0fe..e99988a8 100644
--- a/tests/llm.test.ts
+++ b/tests/llm.test.ts
@@ -141,7 +141,7 @@ describe("LLM provider", () => {
expect(llm.llmBackends({ endpoint: "ollama" })).toEqual(["local"]);
setSetting("engineMode", "open");
expect(llm.llmBackends({ endpoint: "auto" })).toEqual(["local"]);
- expect(() => gens.createGenerations({ feature: "dub", modelId: "text-llm", op: "translate", prompt: "x", params: { targetLanguage: "Spanish" } })).toThrow(/open source only/);
+ expect(() => gens.createGenerations({ feature: "dub", modelId: "text-llm", op: "translate", prompt: "x", params: { targetLanguage: "Spanish" } })).toThrow(/isn't available here/);
setSetting("engineMode", "");
setSetting("enhanceProvider", "none");
expect(llm.llmBackends({ endpoint: "auto" })).toEqual([]);
@@ -284,7 +284,7 @@ describe("LLM provider", () => {
it("fails a job that a restart interrupted", async () => {
const res = await llm.llmProvider.poll({ externalId: "llm_gone", meta: {}, route: getModel("text-llm")!.routes[0], model: getModel("text-llm")!, createdAt: Date.now() });
- expect(res).toMatchObject({ state: "failed", error: expect.stringMatching(/Interrupted/) });
+ expect(res).toMatchObject({ state: "failed", error: expect.stringMatching(/stopped before it finished/) });
});
});
diff --git a/tests/model-access.test.ts b/tests/model-access.test.ts
index ff79b0ed..7dd55a24 100644
--- a/tests/model-access.test.ts
+++ b/tests/model-access.test.ts
@@ -213,7 +213,7 @@ describe("the switches on the server", () => {
expect(listed.find((m) => m.id === "fuobe-soul")?.engines).toEqual(["cloud"]);
// Engine mode still decides first: open source only with ComfyUI switched off refuses an open model by its own message.
setSetting("engineMode", "open");
- expect(() => previewGeneration({ feature: "image", modelId: "nano-banana-pro", prompt: "a cat" })).toThrow(/open source only/);
+ expect(() => previewGeneration({ feature: "image", modelId: "nano-banana-pro", prompt: "a cat" })).toThrow(/isn't available here/);
});
it("picks the next model that is on, or keeps the default so its run says what to turn on", () => {
@@ -305,6 +305,6 @@ describe("chains and Originals refuse a switched-off step before anything is que
/^Fuobe Soul in the cloud is turned off in Settings → Models & licences \(Proprietary paid API is switched off\)/,
);
// Engine mode still refuses the engine it rules out first.
- expect(() => previewGeneration({ feature: "image", modelId: "fuobe-soul", prompt: "a cat", engine: "open" })).toThrow(/paid cloud APIs only/);
+ expect(() => previewGeneration({ feature: "image", modelId: "fuobe-soul", prompt: "a cat", engine: "open" })).toThrow(/isn't available here/);
});
});
diff --git a/tests/no-higgsfield.test.ts b/tests/no-higgsfield.test.ts
index 4664a1b1..00a997be 100644
--- a/tests/no-higgsfield.test.ts
+++ b/tests/no-higgsfield.test.ts
@@ -91,7 +91,7 @@ const HISTORY_SECTIONS: Record<string, string> = { "README.md": "### Upgrading f
/** A file's lines, with a history section blanked (HISTORY_SECTIONS): it ends at the next heading of its level or above. */
function scannedLines(f: string, text: string): string[] {
- const lines = text.split("\n");
+ const lines = text.replace(/\r\n/g, "\n").split("\n");
const heading = HISTORY_SECTIONS[f];
const at = heading ? lines.indexOf(heading) : -1;
if (at < 0) return lines;
@@ -131,8 +131,9 @@ function walk(p: string, out: string[]) {
const full = path.join(ROOT, p);
if (!fs.existsSync(full)) return;
const st = fs.statSync(full);
+ const posix = p.replace(/\\/g, "/");
if (st.isFile()) {
- if (TEXT.test(p)) out.push(p);
+ if (TEXT.test(posix)) out.push(posix);
return;
}
for (const name of fs.readdirSync(full)) {
@@ -178,7 +179,7 @@ describe("no code path names the Higgsfield provider", () => {
// The README's upgrade notes are history; the rest of it is scanned (a key row there is caught).
const readme = ["## Quick start", "| A Higgsfield key | `HIGGSFIELD_API_KEY` |", "### Upgrading from an earlier version", "- Soul ID no longer trains on Higgsfield (PR #12).", "### Setting up", "Runs on Higgsfield"].join("\n");
expect(scannedLines("README.md", readme)).toEqual(["## Quick start", "| A Higgsfield key | `HIGGSFIELD_API_KEY` |", "### Upgrading from an earlier version", "", "### Setting up", "Runs on Higgsfield"]);
- expect(fs.readFileSync(path.join(ROOT, "README.md"), "utf8").split("\n")).toContain(HISTORY_SECTIONS["README.md"]);
+ expect(fs.readFileSync(path.join(ROOT, "README.md"), "utf8").replace(/\r\n/g, "\n").split("\n")).toContain(HISTORY_SECTIONS["README.md"]);
// History and comparisons stay allowed.
for (const ok of ["Higgsfield's pogo example names four things to remove", "the way Higgsfield names layer files", "a 1:1 alternative to Higgsfield", "Higgsfield is never called", "Progress uses Higgsfield's 14 labels"])
expect(RULES.some(([, re]) => re.test(ok)), ok).toBe(false);
@@ -444,7 +445,7 @@ describe("stored ids resolve where they are read", () => {
await runUntil(() => [soul, partner, gone].every((id) => getGeneration(id)?.status === "failed"));
expect(getGeneration(soul)).toMatchObject({ status: "failed", error: RETIRED_PROVIDER_ERROR });
expect(getGeneration(partner)).toMatchObject({ status: "failed", error: RETIRED_PROVIDER_ERROR });
- expect(getGeneration(gone)).toMatchObject({ status: "failed", error: "Model old-model no longer exists" });
+ expect(getGeneration(gone)).toMatchObject({ status: "failed", error: "This model isn't available any more. Pick another." });
});
it("starts a step that was waiting on a retired model on its replacement", async () => {
diff --git a/tests/open-engine.test.ts b/tests/open-engine.test.ts
index b4d1f73a..30536538 100644
--- a/tests/open-engine.test.ts
+++ b/tests/open-engine.test.ts
@@ -194,7 +194,7 @@ describe("round-3 open models", () => {
it("runs Virtual Try-On on the try-on LoRA on the open engine", () => {
const p = getPreset("app-virtual-try-on")!;
expect(p.open).toMatchObject({ modelId: "oss-tryon-klein", op: "edit" });
- expect(p.parity).toMatch(/try-on LoRA/);
+ expect(p.parity).toMatch(/dresses you in the new one/);
const plan = planGeneration({ feature: "app", presetId: p.id, modelId: "oss-tryon-klein", inputs: { images: ["/me.png", "/dress.png"] } }, getModel, getPreset);
// The LoRA's trigger leads the words (the graph's own prefix would add it too), and the run carries the LoRA so
// Settings → Models & licences can switch it off; the graph doesn't load it twice (injectLoras).
diff --git a/tests/open-ideogram-4.test.ts b/tests/open-ideogram-4.test.ts
index 6b40d1d3..58046720 100644
--- a/tests/open-ideogram-4.test.ts
+++ b/tests/open-ideogram-4.test.ts
@@ -425,7 +425,7 @@ describe("Ideogram 4's grey safety card", () => {
it("fails the run with what to try, and keeps no file of it", async () => {
const g = await answered(card);
expect(g.status).toBe("failed");
- expect(g.error).toBe("Ideogram 4's safety filter blocked this picture and sent its grey card instead. Run it again for a new seed, or try Qwen-Image 2.1 or Krea 2 Realism.");
+ expect(g.error).toBe("Ideogram 4 declined this one. Run it again, or try Qwen-Image 2.1 or Krea 2 Realism.");
expect(g.outputs).toEqual([]);
expect(listAssets({ source: "generation", limit: 1000 }).filter((a) => a.generationId === g.id)).toEqual([]);
});
diff --git a/tests/open-minimax-h3.test.ts b/tests/open-minimax-h3.test.ts
index 2c62b5b1..1d8cc11c 100644
--- a/tests/open-minimax-h3.test.ts
+++ b/tests/open-minimax-h3.test.ts
@@ -372,8 +372,8 @@ describe("the Video studio and the other studio defaults", () => {
expect(newOpenModels()[0].id).toBe("oss-minimax-h3");
expect(getModel("oss-sdxl")!.hidden).toBe(true);
expect(filterModels(MODELS, { kind: "image", ops: IMAGE_STUDIO.pickerOps ?? IMAGE_STUDIO.ops }).map((m) => m.id)).not.toContain("oss-sdxl");
- // The Models page has no studio to send it to: its row links to itself.
- expect(modelHref(getModel("oss-sdxl")!)).toMatch(/^\/models\?q=/);
+ // A hidden model with no picker links to its kind's studio.
+ expect(modelHref(getModel("oss-sdxl")!)).toBe("/image");
expect(modelHref(h3)).toBe("/video?model=oss-minimax-h3");
});
diff --git a/tests/oss-loras.test.ts b/tests/oss-loras.test.ts
index 388574bd..ef331224 100644
--- a/tests/oss-loras.test.ts
+++ b/tests/oss-loras.test.ts
@@ -57,7 +57,7 @@ describe("the map v2", () => {
// BTS's licence is on hold in the research: its preset keeps running its words until it is evaluated, and Details
// says so in plain words, without the research notes.
expect(getPreset("motion-bts")!.open!.loras).toBeUndefined();
- expect(getPreset("motion-bts")!.parity).toBe("On your GPU, Fuobe DoP follows the move's description. In the cloud it runs on a partner model.");
+ expect(getPreset("motion-bts")!.parity).toBe("On your GPU, Fuobe DoP films this move from a written direction.");
});
it("knows each LoRA's family", () => {
@@ -150,7 +150,7 @@ describe("every motion and effect on Fuobe DoP", () => {
expect(wiggle.cloud).toMatchObject({ modelId: "kling-2-5-turbo", partner: true });
expect(wiggle.cloud!.loras).toBeUndefined();
expect(wiggle.cloud!.promptTemplate).toBeUndefined();
- expect(wiggle.parity).toBe("On your GPU, Fuobe DoP uses a LoRA trained for this move. Its LoRA is licensed for your GPU only, so in the cloud it runs on a partner model.");
+ expect(wiggle.parity).toBe("On your GPU, Fuobe DoP uses a style trained for this move. Its trained style is licensed for your GPU only.");
// Sent to fal (a Mix, a hand-made request), it goes and the run says what the licence says...
const fal = getModel(DOP_MODEL)!.routes.find((r) => r.provider === "fal" && r.op === "i2v")!;
const sent = fitLoras(wiggle.open!.loras ?? [], fal);
diff --git a/tests/preset-cards.test.ts b/tests/preset-cards.test.ts
index ce563c24..f9d079f7 100644
--- a/tests/preset-cards.test.ts
+++ b/tests/preset-cards.test.ts
@@ -303,7 +303,7 @@ describe("preset route lines (details popover)", () => {
// The preset's note then speaks of its second choice.
const truckLines = presetRouteLines(truck, (id) => names[id], h3(true));
expect(parityNote("Fuobe DoP: Wan 2.2 with the motionpushin LoRA, on your GPU and in the cloud", truckLines)).toBe(
- "Or Fuobe DoP: Wan 2.2 with the motionpushin LoRA, on your GPU and in the cloud",
+ "As a second choice, Fuobe DoP: Wan 2.2 with the motionpushin LoRA, on your GPU and in the cloud",
);
expect(parityNote("Fuobe DoP: Wan 2.2", presetRouteLines(truck, (id) => names[id]))).toBe("Fuobe DoP: Wan 2.2");
const colors = [
diff --git a/tests/public-signup-visitors.test.ts b/tests/public-signup-visitors.test.ts
index b541c002..3bb4e47d 100644
--- a/tests/public-signup-visitors.test.ts
+++ b/tests/public-signup-visitors.test.ts
@@ -132,8 +132,8 @@ describe("Assist is the owner's", () => {
});
it("says an owner-only read is the owner's to see", async () => {
- expect((await proxy(req("/api/assist/connectors", { cookie: account })).json()).error).toMatch(/owner can see/);
- expect((await proxy(req("/api/assist/connectors", { method: "POST", cookie: account })).json()).error).toMatch(/owner can change/);
+ expect((await proxy(req("/api/assist/connectors", { cookie: account })).json()).error).toMatch(/aren't part of your account/);
+ expect((await proxy(req("/api/assist/connectors", { method: "POST", cookie: account })).json()).error).toMatch(/aren't part of your account/);
});
});
diff --git a/tests/public-signup.test.ts b/tests/public-signup.test.ts
index 4ad0c18f..bfc9b1e0 100644
--- a/tests/public-signup.test.ts
+++ b/tests/public-signup.test.ts
@@ -177,7 +177,7 @@ describe("proxy with public sign-up on", () => {
]) {
const r = proxy(req(p, { method, cookie: account }));
expect(r.status, `${method} ${p}`).toBe(403);
- expect((await r.json()).error).toMatch(/owner/);
+ expect((await r.json()).error).toMatch(/aren't part of your account/);
}
});
@@ -311,7 +311,7 @@ describe("accounts never see or change the owner's library", () => {
expect((await r.json()).code).toBe("library");
const read = proxy(req("/api/generations/g1", { cookie }));
expect(read.headers.get(access.GUEST_HEADER)).toBeNull();
- expect((await read.json()).error).toMatch(/owner/);
+ expect((await read.json()).error).toMatch(/can't find/);
});
it("keeps the owner's runs unchanged", () => {
diff --git a/tests/runtime-runner.test.ts b/tests/runtime-runner.test.ts
index 1dc8e383..37750d0d 100644
--- a/tests/runtime-runner.test.ts
+++ b/tests/runtime-runner.test.ts
@@ -103,7 +103,7 @@ describe("timeouts (S3)", () => {
await until(() => row(g.id).external_id);
db().prepare("UPDATE generation_runs SET submitted_at = ?, started_at = NULL WHERE id = ?").run(Date.now() - 5 * 3_600_000, g.id);
const done = await settle(g.id);
- expect(done.error).toMatch(/waiting 4 hours in the provider's queue/);
+ expect(done.error).toMatch(/took too long to start/);
} finally {
restore();
}
@@ -148,7 +148,7 @@ describe("restarts (S7)", () => {
globalThis.__fuobeSubmitting!.add("uploading-1");
try {
await until(() => row("cut-off-1").status === "failed", 5000);
- expect(row("cut-off-1").error).toBe("Interrupted before it reached the provider");
+ expect(row("cut-off-1").error).toBe("This run stopped before it started. Press Retry.");
await sleep(1700);
expect(row("uploading-1").status).toBe("queued");
} finally {
diff --git a/tests/security-lows.test.ts b/tests/security-lows.test.ts
index 6baf4d07..03200438 100644
--- a/tests/security-lows.test.ts
+++ b/tests/security-lows.test.ts
@@ -195,7 +195,7 @@ describe("L-2: an unknown record or link answers 404 behind an HTTPS reverse pro
for (const [p, title, back] of [
["/apps/does-not-exist", "This app isn’t here", "/apps"],
["/canvas/nope-nope-nope", "This canvas isn’t here", "/canvas"],
- ["/upscale/nope", "Nothing here", "/upscale"],
+ ["/upscale/nope", "This page isn’t here", "/upscale"],
]) {
const r = at(`https://fuobe.example${p}`);
expect(r.status, p).toBe(404);
diff --git a/tests/sign-out-everyone.test.ts b/tests/sign-out-everyone.test.ts
index f992ab21..237d22d6 100644
--- a/tests/sign-out-everyone.test.ts
+++ b/tests/sign-out-everyone.test.ts
@@ -221,7 +221,7 @@ describe("H-1: Sign everyone out", () => {
const a = auth.createAccount("[email protected]", "long enough");
const r = proxy(req("POST", { cookie: auth.createSession(a.id).value }));
expect(r.status).toBe(403);
- expect((await r.json()).error).toMatch(/owner/);
+ expect((await r.json()).error).toMatch(/aren't part of your account/);
expect(proxy(req("POST")).status).toBe(401);
});
});
diff --git a/tests/split-soundtrack.test.ts b/tests/split-soundtrack.test.ts
index c816ae08..9807013b 100644
--- a/tests/split-soundtrack.test.ts
+++ b/tests/split-soundtrack.test.ts
@@ -173,10 +173,10 @@ describe("the DBS model and channels a run gets", () => {
expect(dbsModelFor(undefined, "cuda", ["DBS-BSRNN-DnR"])).toBe("DBS-BSRNN-DnR");
expect(() => dbsModelFor("best", "cuda", ["DBS-BSRNN-DnR"])).toThrow(missingDbs("DBS-TIGER-DnR", ["DBS-BSRNN-DnR"]));
expect(missingDbs("DBS-TIGER-DnR", ["DBS-BSRNN-DnR"])).toBe(
- 'Best (DBS-TIGER) isn\'t installed on your ComfyUI (models/dbs/DBS-TIGER-DnR). Copy the install commands from Workflows → "Split a soundtrack", or pick Fast (DBS-BSRNN).',
+ 'Best (DBS-TIGER) isn\'t installed on your ComfyUI (models/dbs/DBS-TIGER-DnR). Copy the install commands from the Connect your GPU page, or pick Fast (DBS-BSRNN).',
);
// No weights at all: said in words, not a FileNotFoundError from inside ComfyUI.
- expect(() => dbsModelFor(undefined, "cpu", [])).toThrow(/Fast \(DBS-BSRNN\) isn't installed on your ComfyUI \(models\/dbs\/DBS-BSRNN-DnR\)\. Copy the install commands from Workflows → "Split a soundtrack"\.$/);
+ expect(() => dbsModelFor(undefined, "cpu", [])).toThrow(/Fast \(DBS-BSRNN\) isn't installed on your ComfyUI \(models\/dbs\/DBS-BSRNN-DnR\)\. Copy the install commands from the Connect your GPU page\.$/);
});
});
diff --git a/tests/video-tool-options.test.ts b/tests/video-tool-options.test.ts
index d7ceb967..34acb359 100644
--- a/tests/video-tool-options.test.ts
+++ b/tests/video-tool-options.test.ts
@@ -116,7 +116,7 @@ describe("the composer's settings for these tools", () => {
expect(settingsSummary(biref, { matteOutput: "matte" }, model("oss-video-matte-birefnet"))).toEqual(["Alpha mask"]);
expect(shape(model("bria-video-bg"), VIDEO_MATTE_STUDIO.ops).matteOutput).toEqual(["cutout"]);
expect(videoToolNote(model("bria-video-bg"), "matte")).toMatch(/cut-out only — BiRefNet and SAM also make the alpha mask/);
- expect(videoToolNote(model("sam-3-1-video-mask"), "matte")).toMatch(/SAM 3 on your ComfyUI/);
+ expect(videoToolNote(model("sam-3-1-video-mask"), "matte")).toMatch(/Name what to keep and get its mask/);
expect(videoToolNote(model("birefnet-video"), "matte")).toBeNull();
});
@@ -125,8 +125,8 @@ describe("the composer's settings for these tools", () => {
expect(cloud).toMatchObject({ colormap: ["grayscale", "turbo", "inferno", "magma", "viridis"], sideBySide: true, matteOutput: null });
expect(settingsSummary(cloud, { colormap: "turbo", sideBySide: true }, model("depth-anything-video-cloud"))).toEqual(["auto", "Turbo", "Side by side"]);
expect(videoToolNote(model("depth-anything-video-cloud"), "colormap")).toBeNull();
- expect(videoToolNote(model("oss-video-depth-vda"), "colormap")).toBe("The open engine draws Grayscale and Inferno — Turbo, Magma and Viridis need the cloud engine.");
- expect(videoToolNote(model("oss-video-depth-da3"), "colormap")).toMatch(/grayscale only — Video Depth Anything adds Inferno/);
+ expect(videoToolNote(model("oss-video-depth-vda"), "colormap")).toBe("Grayscale and Inferno work with open-source models. Turbo, Magma and Viridis need Cloud.");
+ expect(videoToolNote(model("oss-video-depth-da3"), "colormap")).toMatch(/grayscale only\. Video Depth Anything adds Inferno/);
// Other studios don't get these sections.
expect(settingsShape(model("seedance-2-5"), "t2v", "video", true)).toMatchObject({ matteOutput: null, colormap: null, sideBySide: false });
});
diff --git a/tests/your-keys-ui.test.ts b/tests/your-keys-ui.test.ts
index bdc183be..cabc321b 100644
--- a/tests/your-keys-ui.test.ts
+++ b/tests/your-keys-ui.test.ts
@@ -53,12 +53,12 @@ describe("which paid models an account can run", () => {
describe("the engine switch for an account", () => {
it("is locked on open source without a key, pointing at Your keys", () => {
expect(accountEngine(account([]))).toEqual({
- locked: { text: "Open source only", tip: "Your runs use your own GPU. Add a fal.ai or Replicate key to use paid models.", href: "/settings#your-keys", addKey: true },
+ locked: { text: "Open source", tip: "Runs on your own GPU. Add a fal.ai or Replicate key to use paid models.", href: "/settings#your-keys", addKey: true },
});
});
it("is locked when the studio runs open-source models only, saying so", () => {
- expect(accountEngine(account(["fal"], { paidAllowed: false }))).toMatchObject({ locked: { tip: "This studio runs open-source models only." } });
+ expect(accountEngine(account(["fal"], { paidAllowed: false }))).toMatchObject({ locked: { tip: "Runs on your own GPU." } });
});
it("switches with a key, saying who pays and where open models run", () => {