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.
This commit is contained in:
WeiCHEN
2026-09-22 22:30:02 +08:00
parent 235def6dbf
commit c5999f9c30
+5 -3
View File
@@ -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: [
{