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.
This commit is contained in:
WeiCHEN
2026-09-23 03:09:24 +08:00
parent 01bf599bd4
commit ecd8e94e24
+3 -2
View File
@@ -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;