From c456bf6865f366e40a894cd45aa938920b24aa10 Mon Sep 17 00:00:00 2001 From: GouJ Date: Thu, 15 Oct 2026 18:19:29 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E4=B8=BA=E5=88=86=E9=95=9C=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=96=B0=E5=A2=9E=E7=9A=84=E6=97=B6=E9=95=BF=E9=A2=84?= =?UTF-8?q?=E7=AE=97=E8=AF=B7=E6=B1=82=E8=A1=A5=E5=85=85=E6=98=8E=E7=A1=AE?= =?UTF-8?q?=20Mock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/features/workflows/pages.test.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/features/workflows/pages.test.ts b/tests/features/workflows/pages.test.ts index 2528101..16316be 100644 --- a/tests/features/workflows/pages.test.ts +++ b/tests/features/workflows/pages.test.ts @@ -100,6 +100,19 @@ function stubFetch(fetcher: Mock) { const path = String(url) if (path.endsWith('/generation-models')) return jsonResponse(imageCatalog) if (path.endsWith('/creative-profile')) return jsonResponse(generationProfile(fixture.id)) + if (path.endsWith('/duration-budget')) + return jsonResponse({ + projectId: fixture.id, + mode: 'auto', + episodeCount: 1, + targetDurationSeconds: null, + episodeMinSeconds: null, + episodeMaxSeconds: null, + episodes: [{ episodeNo: 1, targetDurationSeconds: null, plannedSeconds: null, shotSeconds: null, shotCount: 0, audit: null }], + targetWarningCount: 0, + willCallModel: false, + willModifyAssets: false + }) if (path.endsWith('/storyboard/duration-audit')) return jsonResponse({ projectId: fixture.id,