feat: add general video generation workflow
This commit is contained in:
@@ -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/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user