From e6b2539dfecd93376cd7a41633573502f359c256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 4 Sep 2026 15:32:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E6=96=87=E6=A1=88=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 覆盖请检查提示去重 覆盖三项步骤标题映射 --- .../workflowCompletionNotice.test.ts | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 apps/ai-game-creator-shell/src/view/ui-editor/components/workflowCompletionNotice.test.ts diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/components/workflowCompletionNotice.test.ts b/apps/ai-game-creator-shell/src/view/ui-editor/components/workflowCompletionNotice.test.ts new file mode 100644 index 000000000..1ea14ec73 --- /dev/null +++ b/apps/ai-game-creator-shell/src/view/ui-editor/components/workflowCompletionNotice.test.ts @@ -0,0 +1,23 @@ +import { describe, expect, it } from 'vitest'; + +import { + appendWorkflowCheckPrompt, + workflowStepLabel, +} from './workflowCompletionNotice'; + +describe('workflow completion notice helpers', () => { + it('appends the review prompt without duplicating it', () => { + expect(appendWorkflowCheckPrompt('已应用 3 条建议。')).toBe( + '已应用 3 条建议,请检查。', + ); + 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('绑定视觉素材'); + }); +});