feat: add general video generation workflow

This commit is contained in:
xuejianwu
2026-08-05 17:59:38 +08:00
parent 8c044424c4
commit e53d21a819
6 changed files with 494 additions and 13 deletions

View File

@@ -44,3 +44,13 @@ test("人物素材支持任选 1 到 3 张,且提供独立通用素材库", ()
assert.doesNotMatch(input, /\srequired(?:\s|>)/);
}
});
test("提供独立通用视频生成页签并允许不选择人物素材", () => {
const html = readFileSync(new URL("../public/index.html", import.meta.url), "utf8");
const server = readFileSync(new URL("../server.mjs", import.meta.url), "utf8");
assert.match(html, /data-module="general-video"/);
assert.match(html, /id="generalVideoForm"/);
assert.match(html, /id="generalAssetPicker"/);
assert.match(html, /id="generalResultList"/);
assert.doesNotMatch(server, /assetReferences\.length\s*<\s*1/);
});