Files
Genarrative/apps/ai-game-creator-shell/tests/workflowCompletionNotice.test.ts
T
k88936 fe813802a5
Project CI / Repository checks (pull_request) Failing after 12s
Project CI / Backend tests (pull_request) Failing after 10s
Project CI / Frontend tests (pull_request) Successful in 3m26s
Project CI / Native shell tests (pull_request) Successful in 20m41s
简化工作流检查提示拼接
移除请检查文案探测逻辑
终态文案统一直接追加检查提示
2026-09-04 16:09:19 +08:00

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('绑定视觉素材');
});
});