feat(short-drama-agent-front): 接入首帧授权与连续性审核

This commit is contained in:
GJ committed 2026-11-07 12:23:19 +08:00
1 parent dbf97e6f98
commit 518b630a46
35 files changed
+3070 -97

No files matched your search

+7 -4
View File
@@ -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 () => {