diff --git a/apps/ai-game-creator-shell/tests/workflowCompletionNotice.test.ts b/apps/ai-game-creator-shell/tests/workflowCompletionNotice.test.ts index af3f2d1cc..ca52a001f 100644 --- a/apps/ai-game-creator-shell/tests/workflowCompletionNotice.test.ts +++ b/apps/ai-game-creator-shell/tests/workflowCompletionNotice.test.ts @@ -4,6 +4,7 @@ import { appendWorkflowCheckPrompt, workflowStepLabel, } from '../src/view/ui-editor/components/workflowCompletionNotice'; +import { UI_EDITOR_STEPS } from '../src/view/ui-editor/model'; describe('workflow completion notice helpers', () => { it('appends the review prompt to a terminal status', () => { @@ -12,9 +13,10 @@ describe('workflow completion notice helpers', () => { ); }); - 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('自动切分素材'); + it('maps every catalog step to its user-facing label', () => { + // 按步骤目录取标签:步骤退役或新增时用例会跟着目录走,不再断言已删除的步骤。 + for (const step of UI_EDITOR_STEPS) { + expect(workflowStepLabel(step.id)).toBe(step.label); + } }); });