From ecd8e94e243c0a7ebb08fbfb1f4d056437f3e0ec Mon Sep 17 00:00:00 2001 From: WeiCHEN Date: Wed, 23 Sep 2026 03:09:24 +0800 Subject: [PATCH] fix(e2e): raise squad wait timeout to 10m for UI-03 Intake completion landed ~20s after the old 7m expect wall; keep claim-before-edit fix and avoid false pending failures. --- web/e2e/document-revision-runtime.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/e2e/document-revision-runtime.spec.ts b/web/e2e/document-revision-runtime.spec.ts index 90f57a02..685be0e6 100644 --- a/web/e2e/document-revision-runtime.spec.ts +++ b/web/e2e/document-revision-runtime.spec.ts @@ -364,7 +364,8 @@ function turnAssistantLocator(page: Page, userPromptSnippet: string) { async function waitForSquadCompletion( page: Page, userPromptSnippet: string, - timeoutMs = 420_000, + // Real intake often lands ~6–8m; 7m wall caused a false fail while server completed ~20s later. + timeoutMs = 600_000, opts?: { requireInflight?: boolean }, ) { const startedAt = Date.now(); @@ -1104,7 +1105,7 @@ test.describe.serial('document-revision-runtime UI acceptance', () => { const t0 = Date.now(); const promptSlice = '请基于本项目编制首轮'; // UI-02 已观测 inflight;此处只等同一 assistant 到 terminal,避免快速完成竞态。 - await waitForSquadCompletion(page, promptSlice, 420_000, { requireInflight: false }); + await waitForSquadCompletion(page, promptSlice, 600_000, { requireInflight: false }); const selected = await openWorkflowDocByLabel(page, /用户初始需求|需求摸底|intake/i); controlledDocId = selected.docId; controlledTitle = selected.title;