fix(short-drama-agent-front): 统一全屏布局与问题处理交互
This commit is contained in:
1 parent
db91a4b871
commit
cc27d463e0
25 files changed
+838
-316
No files matched your search
@@ -45,11 +45,36 @@ describe('WorkflowExecution 前端契约', () => {
|
||||
error: ''
|
||||
}
|
||||
})
|
||||
expect(wrapper.text()).toContain('抽取任务 3 / 3')
|
||||
expect(wrapper.text().replace(/\s/g, '')).toContain('抽取任务3/3')
|
||||
expect(wrapper.text()).toContain('校验未通过')
|
||||
expect(wrapper.get('section').attributes('data-task-state')).toBe('error')
|
||||
expect(wrapper.find('details').exists()).toBe(false)
|
||||
expect(wrapper.text()).not.toContain('最新镜头资产状态')
|
||||
wrapper.unmount()
|
||||
})
|
||||
it.each([
|
||||
{ result: { storyboardShotValidation: { valid: true, issues: [] } }, state: 'success', label: '已完成' },
|
||||
{ result: null, state: 'unknown', label: '结果待确认' },
|
||||
{
|
||||
result: { storyboardShotValidation: { valid: true, issues: [] }, storyboardPendingQualityEpisodeNos: [1] },
|
||||
state: 'error',
|
||||
label: '待修订'
|
||||
}
|
||||
])('拆解终态仅在明确通过校验且没有待修订剧集时显示成功底色:$state', ({ result, state, label }) => {
|
||||
const wrapper = mount(WorkflowExecutionPanel, {
|
||||
props: {
|
||||
execution: execution({ workflowName: 'breakdown', status: 'completed', result }),
|
||||
loading: false,
|
||||
error: '',
|
||||
showStatusHint: false
|
||||
}
|
||||
})
|
||||
expect(wrapper.get('section').attributes('data-task-state')).toBe(state)
|
||||
expect(wrapper.text()).toContain(label)
|
||||
expect(wrapper.find('details').exists()).toBe(false)
|
||||
expect(wrapper.text()).toContain('更新时间')
|
||||
wrapper.unmount()
|
||||
})
|
||||
it('保留未知阶段并限制真实进度范围', () => {
|
||||
expect(executionStageLabel('repairing')).toBe('自动修复')
|
||||
expect(executionStageLabel('new_backend_stage')).toBe('new_backend_stage')
|
||||
|
||||
Reference in new issue
Block a user