feat(short-drama-agent-front): 接入摄影审核与首帧制作
This commit is contained in:
1 parent
3503926d62
commit
751106985e
32 files changed
+1970
-153
No files matched your search
@@ -112,7 +112,7 @@ function stubFetch(fetcher: Mock<typeof fetch>) {
|
||||
let executionCount = 0
|
||||
fetcher.mockImplementation(async (url, init) => {
|
||||
const path = String(url)
|
||||
if (path.endsWith('/storyboard/quality-confirmation')) {
|
||||
if (path.endsWith('/storyboard-quality-confirmation')) {
|
||||
const current = preparationFixture(fixture.id)
|
||||
return jsonResponse({ ...current.approval, valid: true, confirmation: current.record })
|
||||
}
|
||||
@@ -1955,7 +1955,7 @@ describe('工作台页面交互', () => {
|
||||
fetcher.mock.calls.filter(
|
||||
([url, init]) =>
|
||||
(!init?.method || init.method === 'GET') &&
|
||||
!String(url).endsWith('/storyboard/quality-confirmation')
|
||||
!String(url).endsWith('/storyboard-quality-confirmation')
|
||||
)
|
||||
).toHaveLength(12)
|
||||
expect(fetcher.mock.calls.filter(([url]) => String(url).endsWith('/duration-budget'))).toHaveLength(2)
|
||||
@@ -2055,10 +2055,10 @@ describe('工作台页面交互', () => {
|
||||
expect(wrapper!.text()).not.toContain('第1集镜头1')
|
||||
/** 切换剧集只增加当前集查询,项目时长预算只在挂载时读取一次。 */
|
||||
expect(
|
||||
fetcher.mock.calls.filter(([url]) => !String(url).endsWith('/storyboard/quality-confirmation'))
|
||||
fetcher.mock.calls.filter(([url]) => !String(url).endsWith('/storyboard-quality-confirmation'))
|
||||
).toHaveLength(6)
|
||||
expect(
|
||||
fetcher.mock.calls.filter(([url]) => String(url).endsWith('/storyboard/quality-confirmation'))
|
||||
fetcher.mock.calls.filter(([url]) => String(url).endsWith('/storyboard-quality-confirmation'))
|
||||
).toHaveLength(1)
|
||||
expect(fetcher.mock.calls.filter(([url]) => String(url).endsWith('/duration-budget'))).toHaveLength(1)
|
||||
expect(fetcher.mock.calls.every(([, init]) => !init?.method || init.method === 'GET')).toBe(true)
|
||||
|
||||
Reference in new issue
Block a user