From 89feacc1a2f28678c2497a7eee523ea9b6fd574f Mon Sep 17 00:00:00 2001 From: GouJ Date: Thu, 24 Sep 2026 18:25:59 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=8F=90=E5=8D=87=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E8=83=BD=E5=8A=9B=E6=B5=8B=E8=AF=95=E8=BE=85=E5=8A=A9=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E4=BD=9C=E7=94=A8=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/features/production/capabilities.test.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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: [ {