From cd2c0d5fb408a4d825f33f9593a530fd73b36651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=B5=E5=BA=94?= Date: Fri, 14 Aug 2026 13:35:18 +0800 Subject: [PATCH] fix(e2e): align confirm generation response assertion with BatchGenerationTaskResponse The confirm generation API (POST /tasks/{task_id}/confirm) returns BatchGenerationTaskResponse with items[] and total, not plan_id / generation_task_id. Update the E2E assertion to match the actual response schema. Fixes CI Run #29700 Staging E2E Tests failure. --- apps/web/e2e/core-generation.spec.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/web/e2e/core-generation.spec.ts b/apps/web/e2e/core-generation.spec.ts index 07b29ce85..238d43943 100755 --- a/apps/web/e2e/core-generation.spec.ts +++ b/apps/web/e2e/core-generation.spec.ts @@ -258,9 +258,12 @@ test.describe("Core generation flow", () => { // Generate API may return 400 in test env if template has no ready segments // That is OK for a wizard flow smoke test if (genResp.ok()) { - const genData = (await genResp.json()) as { plan_id: string; generation_task_id: string } - expect(genData.plan_id).toBeTruthy() - expect(genData.generation_task_id).toBeTruthy() + const genData = (await genResp.json()) as { + items: Array<{ id: string; status: string }> + total: number + } + expect(genData.items.length).toBeGreaterThan(0) + expect(genData.items[0].id).toBeTruthy() } else { console.log(`[E2E] Generate API returned ${genResp.status()}, wizard flow test still passes`) } -- 2.54.0