feat(web): 角色与音频工作台 - 完善素材选择、生成参数与同步交互

This commit is contained in:
ddcat666 committed 2026-10-01 09:43:02 +08:00
1 parent 5650da6d31
commit 22e7331d04
77 files changed
+3641 -721

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
import { describe, expect, test } from "bun:test";
import { resolveAddNodeMenuCommands, type AddNodeMenuContext } from "../src/lib/canvas/tool-registry";
describe("普通画布添加菜单", () => {
test("双击新建在未关联项目时也包含角色卡", () => {
const commands = resolveAddNodeMenuCommands({
workspaceMode: "professional",
isProjectLinked: false,
handlers: {} as AddNodeMenuContext["handlers"],
});
const character = commands.find((command) => command.id === "project-character");
expect(character?.label).toBe("角色卡");
expect(character?.section).toBe("node");
});
});