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.

Skills W1: browser checks leave My skills as they found it

Claudea7c8af155cb8
diff --git a/tests/e2e/no-horizontal-scroll.mjs b/tests/e2e/no-horizontal-scroll.mjs
index 26e349f9..22fc5a18 100644
--- a/tests/e2e/no-horizontal-scroll.mjs
+++ b/tests/e2e/no-horizontal-scroll.mjs
@@ -125,6 +125,8 @@ for (const scheme of schemes) {
await ctx.close();
}
await browser.close();
+// The sample skill would stand in for "No skills of your own yet" in the Assist flows: it goes again.
+if (!only) await fetch(`${app}/api/assist/skills/layout-check-run`, { method: "DELETE" }).catch(() => {});
const checks = routes.length * schemes.length;
console.log("");
if (wide.length) console.log(`${wide.length} of ${checks} pages scroll sideways at 390 px: ${wide.join(", ")}`);
diff --git a/tests/e2e/skills-run.mjs b/tests/e2e/skills-run.mjs
index a7e31034..8b6e52a4 100644
--- a/tests/e2e/skills-run.mjs
+++ b/tests/e2e/skills-run.mjs
@@ -218,6 +218,8 @@ try {
} finally {
await browser.close();
await send("PUT", "/api/settings", { cloudProvider: "auto" });
+ // Other checks (the Assist flows) expect My skills to start empty.
+ await send("DELETE", `/api/assist/skills/${NAME}`);
}
console.log(failures.length ? `\n${failures.length} failed` : "\nall passed");
process.exit(failures.length ? 1 : 0);