diff --git a/tests/features/production/capabilities.test.ts b/tests/features/production/capabilities.test.ts index 13aa313..546ade5 100644 --- a/tests/features/production/capabilities.test.ts +++ b/tests/features/production/capabilities.test.ts @@ -29,6 +29,10 @@ afterEach(() => { }) /** 所有预检均是模拟 GET;生成接口只记录契约,不调用真实 Provider。 */ +function stageFixture() { + return { total: 1, planned: 1, skipped: 0, upstreamResolvable: 0, manualBlocked: 0 } +} + function server() { const context = testProjectContext() const form = formFixture('capability-test') @@ -70,17 +74,16 @@ function server() { }, videoGenerationResult: { total: 1, created: 1, skipped: 0, inProgress: 0, blocked: 0, failed: 0 } } - const stage = () => ({ total: 1, planned: 1, skipped: 0, upstreamResolvable: 0, manualBlocked: 0 }) const plan = { projectId: 'capability-test', completed: false, stage: 'subject_images', hasManualBlockers: false, manualBlocked: 0, - subjectImages: stage(), - keyframes: stage(), - videoPrompts: stage(), - videos: stage(), + subjectImages: stageFixture(), + keyframes: stageFixture(), + videoPrompts: stageFixture(), + videos: stageFixture(), details: { subjectImages: [ {