4db6d28603
* 提示词:完善组件建议,增加容器背景与节点大小一致的实现 * 支持Delete删除节点 ctrl + -缩放 * 步骤结束弹窗提醒   * UI 树快捷删除  * zoom滑动条样式 before:  after:  Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/278 Co-authored-by: 王德宇 <kvtodev@outlook.com> Co-committed-by: 王德宇 <kvtodev@outlook.com>
21 lines
736 B
TypeScript
21 lines
736 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('visual-binding')).toBe('绑定视觉素材');
|
|
});
|
|
});
|