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;