fix(short-drama-agent-front): 修复拆解进度展示与问题交互
This commit is contained in:
1 parent
3414cc8232
commit
db91a4b871
19 files changed
+870
-150
No files matched your search
@@ -30,6 +30,26 @@ afterEach(() => {
|
||||
})
|
||||
|
||||
describe('WorkflowExecution 前端契约', () => {
|
||||
it('拆解进度区分抽取计数与工作流完成,校验失败不显示全成功', () => {
|
||||
const wrapper = mount(WorkflowExecutionPanel, {
|
||||
props: {
|
||||
execution: execution({
|
||||
workflowName: 'breakdown',
|
||||
status: 'completed',
|
||||
current: 3,
|
||||
total: 3,
|
||||
metadata: { progressUnit: 'extraction_tasks' },
|
||||
result: { storyboardShotValidation: { valid: false, issues: [] } }
|
||||
}),
|
||||
loading: false,
|
||||
error: ''
|
||||
}
|
||||
})
|
||||
expect(wrapper.text()).toContain('抽取任务 3 / 3')
|
||||
expect(wrapper.text()).toContain('校验未通过')
|
||||
expect(wrapper.text()).not.toContain('最新镜头资产状态')
|
||||
wrapper.unmount()
|
||||
})
|
||||
it('保留未知阶段并限制真实进度范围', () => {
|
||||
expect(executionStageLabel('repairing')).toBe('自动修复')
|
||||
expect(executionStageLabel('new_backend_stage')).toBe('new_backend_stage')
|
||||
|
||||
Reference in new issue
Block a user