Playwright error

Error: browserContext.newPage: Target page, context or browser has been closed

You tried to open a new page in a context (or browser) that was already closed or crashed.

Why this happens

How to fix it

  1. Don't share a browser/context across tests without proper fixture scoping; each test should get its own context
  2. Check CI logs for an OOM kill on the browser process, and reduce parallel worker count if memory is the constraint