1509235c1b
将 UI 编辑器第三步和内部流程 ID 统一为自动切分素材。 重命名前端切分概览模块并更新完成、恢复和导航文案。 同步 Runtime 最终编辑器路由、测试与相关技术文档。
21 lines
738 B
TypeScript
21 lines
738 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
|
|
import {
|
|
appendWorkflowCheckPrompt,
|
|
workflowStepLabel,
|
|
} from '../src/view/ui-editor/components/workflowCompletionNotice';
|
|
|
|
describe('workflow completion notice helpers', () => {
|
|
it('appends the review prompt to a terminal status', () => {
|
|
expect(appendWorkflowCheckPrompt('已应用 3 条建议。')).toBe(
|
|
'已应用 3 条建议,请检查。',
|
|
);
|
|
});
|
|
|
|
it('maps every workflow step to a user-facing label', () => {
|
|
expect(workflowStepLabel('reference-analysis')).toBe('分析参考图');
|
|
expect(workflowStepLabel('structure-recognition')).toBe('识别界面结构');
|
|
expect(workflowStepLabel('asset-separation')).toBe('自动切分素材');
|
|
});
|
|
});
|