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:
@@ -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: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user