From c5999f9c30638af36b60d9cee2f2292300711fdd Mon Sep 17 00:00:00 2001 From: WeiCHEN Date: Tue, 22 Sep 2026 22:26:34 +0800 Subject: [PATCH] fix(e2e): retain Playwright artifacts only on failure for docrev UI Avoid ENOENT on in-flight traces when long UI-03 squad runs while outputDir is cleaned by a concurrent acceptance attempt. --- web/playwright.config.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web/playwright.config.ts b/web/playwright.config.ts index b1752f2e..1bd3f4c9 100644 --- a/web/playwright.config.ts +++ b/web/playwright.config.ts @@ -39,9 +39,11 @@ export default defineConfig({ headless: true, actionTimeout: 30_000, locale: 'zh-CN', - trace: runAcceptance ? 'on' : 'off', - screenshot: runAcceptance ? 'on' : 'off', - video: runAcceptance ? 'on' : 'off', + // retain-on-failure: long UI-03 squad waits write many chunks; concurrent cleans of + // outputDir caused ENOENT on in-flight .trace (false FAIL after green assertions). + trace: runAcceptance ? 'retain-on-failure' : 'off', + screenshot: runAcceptance ? 'only-on-failure' : 'off', + video: runAcceptance ? 'retain-on-failure' : 'off', }, projects: [ {