merge: feature/docrev-ui-rerun-2026-09-22 (squad/playwright timeouts)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user