fix(canvas): 分镜生成 - 强化模型选择提示并补齐资产引用与角色音频

This commit is contained in:
ddCat
2026-08-30 19:03:10 +08:00
parent 75bde772b5
commit 6b341e284e
8 changed files with 90 additions and 17 deletions

View File

@@ -0,0 +1,12 @@
import { expect, test } from "bun:test";
test("分镜生成模型选择器具有明确的下拉控件状态", async () => {
const css = await Bun.file(new URL("../src/pages/projects/detail/workflow.css", import.meta.url)).text();
const rule = css.match(/\.workflow-model-picker\.canvas-composer-model-picker\s*\{([\s\S]*?)\}/)?.[1] || "";
expect(rule).toContain("border: 1px solid var(--workspace-border-strong)");
expect(rule).toContain("height: 44px");
expect(css).toContain('.workflow-model-picker.canvas-composer-model-picker[aria-expanded="true"]');
expect(css).toContain(".workflow-model-picker .canvas-model-picker-chevron");
expect(css).toContain("box-shadow: 0 0 0 2px");
});