feat(short-drama-agent-front): 接入首帧授权与连续性审核
This commit is contained in:
1 parent
dbf97e6f98
commit
518b630a46
35 files changed
+3070
-97
No files matched your search
@@ -171,7 +171,7 @@ describe('WorkflowExecution 前端契约', () => {
|
||||
const scope = effectScope()
|
||||
const tracker = scope.run(() => useWorkflowExecution(ref('project-1'), 'video-quality'))!
|
||||
await flushPromises()
|
||||
expect(fetcher.mock.calls[0]?.[0]).toBe('/api/workflow-executions/execution-1')
|
||||
expect(fetcher.mock.calls[0]?.[0]).toBe('/api/workflow-executions/execution-1?projectId=project-1')
|
||||
expect(tracker.query.data.value?.stage).toBe('validating')
|
||||
tracker.dismiss()
|
||||
expect(localStorage.getItem('short-drama:workflow-execution:project-1:video-quality')).toBe('execution-1')
|
||||
|
||||
@@ -150,7 +150,8 @@ function stubFetch(fetcher: Mock<typeof fetch>) {
|
||||
warningCount: 0,
|
||||
issues: []
|
||||
})
|
||||
if (path.includes('/workflow-executions/')) return jsonResponse(executions.get(path.split('/').at(-1)!))
|
||||
if (path.includes('/workflow-executions/'))
|
||||
return jsonResponse(executions.get(path.split('?')[0]!.split('/').at(-1)!))
|
||||
const response = await implementation(url, init)
|
||||
const workflowName = path.endsWith('/storyboard-directions/generate')
|
||||
? 'storyboard-direction'
|
||||
@@ -1943,9 +1944,11 @@ describe('工作台页面交互', () => {
|
||||
for (const route of ['storyboard-directions', 'storyboard-visual-states'])
|
||||
expect(fetcher.mock.calls.filter(([url]) => String(url).includes('/' + route + '?'))).toHaveLength(2)
|
||||
expect(fetcher.mock.calls.filter(([url]) => String(url).endsWith('/duration-budget'))).toHaveLength(2)
|
||||
expect(fetcher.mock.calls.some(([url]) => String(url) === '/api/workflow-executions/page-execution-1')).toBe(
|
||||
true
|
||||
)
|
||||
expect(
|
||||
fetcher.mock.calls.some(
|
||||
([url]) => String(url) === `/api/workflow-executions/page-execution-1?projectId=${fixture.id}`
|
||||
)
|
||||
).toBe(true)
|
||||
})
|
||||
|
||||
it('后台终态部分失败不显示全成功,默认补齐与显式覆盖参数独立', async () => {
|
||||
|
||||
Reference in new issue
Block a user