feat(short-drama-agent-front): 接入素材预览审核并完善创作流程
This commit is contained in:
1 parent
f8b0fbb8ca
commit
dc8bb17a23
66 files changed
+2864
-632
No files matched your search
@@ -32,6 +32,37 @@ afterEach(() => {
|
||||
})
|
||||
|
||||
describe('WorkflowExecution 前端契约', () => {
|
||||
it.each(['failed', 'completed'] as const)('派生任务 %s 保留部分结果,不用绿色表示全部完成', status => {
|
||||
const wrapper = mount(WorkflowExecutionPanel, {
|
||||
props: {
|
||||
loading: false,
|
||||
error: '',
|
||||
execution: execution({
|
||||
workflowName: 'storyboard-visual-state',
|
||||
status,
|
||||
current: 2,
|
||||
total: 2,
|
||||
result: {
|
||||
episodeCount: 2,
|
||||
completedEpisodes: 1,
|
||||
skippedEpisodes: 0,
|
||||
failedEpisodes: 1,
|
||||
manualReviewRequired: true,
|
||||
episodes: [
|
||||
{ episodeNo: 1, status: 'completed' },
|
||||
{ episodeNo: 2, status: 'failed', error: '来源发生变化' }
|
||||
]
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
expect(wrapper.text()).toContain('已保存 1 集')
|
||||
expect(wrapper.text()).toContain('第 2 集 · 失败')
|
||||
expect(wrapper.text()).toContain('来源发生变化')
|
||||
expect(wrapper.findAllComponents(NTag).some(tag => tag.props('type') === 'success')).toBe(false)
|
||||
expect(wrapper.findAllComponents(ContextNotice).some(notice => notice.props('type') === 'success')).toBe(false)
|
||||
wrapper.unmount()
|
||||
})
|
||||
it.each([
|
||||
{ projectStatus: 'need_review', type: 'warning', role: 'alert' },
|
||||
{ projectStatus: 'completed', type: 'success', role: undefined },
|
||||
|
||||
Reference in new issue
Block a user