- Symptom
- Only one video file appears for a whole describe blockpage.video().path() points to a file that is empty or not yet writtenvideo: 'retain-on-failure' keeps nothing for tests after the first
- Cause
- A video covers the page from creation to close and is written only after the page or context closes. A page shared across tests produces one recording that no single test owns.
- Fix
- Use the per-test page fixture, or record a trace instead of a video for serial suites.
- Apply
test('checkout', async ({ page }) => { /* fresh page, own video */ }) // serial suites: use: { trace: 'retain-on-failure' }- Affected
- Playwright Test, all versions (open issue since 1.22)
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders