| @@ -17,11 +17,16 @@ | ||
| 17 | 17 | baseURL: WP_BASE_URL, |
| 18 | 18 | // Local environments that terminate TLS in front of wp-env use a self-signed certificate. |
| 19 | 19 | ignoreHTTPSErrors: true, |
| 20 | 20 | storageState: STORAGE_STATE_PATH, |
| 21 | - video: 'retain-on-failure', | |
| 21 | + /* | |
| 22 | + * retain-on-failure still records every test and discards the passing ones, which costs | |
| 23 | + * CPU on a runner where WordPress is the bottleneck. on-first-retry records only the rerun | |
| 24 | + * of a test that already failed, and CI retries twice, so failures still ship a video and trace. | |
| 25 | + */ | |
| 26 | + video: 'on-first-retry', | |
| 22 | 27 | screenshot: 'only-on-failure', |
| 23 | - trace: 'retain-on-failure', | |
| 28 | + trace: 'on-first-retry', | |
| 24 | 29 | }, |
| 25 | 30 | projects: [ |
| 26 | 31 | { |
| 27 | 32 | name: 'chromium', |