Playwright · tool · fg-0321

Videos are missing for most tests when one page is created in beforeAll and reused

If you see Only one video file appears for a whole describe block, the cause and the fix for Playwright are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
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

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun