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('自动切分素材'); }); });