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: [ {