From ecd8e94e243c0a7ebb08fbfb1f4d056437f3e0ec Mon Sep 17 00:00:00 2001 From: WeiCHEN Date: Wed, 23 Sep 2026 03:09:24 +0800 Subject: [PATCH 1/2] 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; From 84cc3b98614c3e0b9f923d2de2a19d6d79b634c3 Mon Sep 17 00:00:00 2001 From: WeiCHEN Date: Wed, 23 Sep 2026 03:11:20 +0800 Subject: [PATCH 2/2] fix(e2e): raise Playwright per-test timeout to 15m Pair with 10m squad waits so UI-03 does not race the test wall when intake finishes near the expect limit. --- web/playwright.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/playwright.config.ts b/web/playwright.config.ts index 03befab5..229bb289 100644 --- a/web/playwright.config.ts +++ b/web/playwright.config.ts @@ -28,7 +28,8 @@ export default defineConfig({ forbidOnly: !!process.env.CI, retries: 0, workers: 1, - timeout: 600_000, + // Per-test wall: UI-03/05/11 each wait up to 10m for real squad; leave headroom past expect(). + timeout: 900_000, outputDir: path.join(evidenceRoot, phaseDirs.outputDirName), reporter: [ ['list'],