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
- A previous test's teardown closed the shared browser/context before this call ran
- The browser process crashed, often from running out of memory in CI
How to fix it
- Don't share a browser/context across tests without proper fixture scoping; each test should get its own context
- Check CI logs for an OOM kill on the browser process, and reduce parallel worker count if memory is the constraint