I have a weird issue. My worker fixture is based on this tutorial https://playwright.dev/docs/auth#moderate-one-account-per-parallel-worker. At the end of the authentication I close the session, but somehow randomly some of my dependent tests fail, because the browser, context or page is closed. I don’t know what causes this, because I didn’t close the session at the point in code.
Do you have any ideas how to fix this?
This thread is trying to answer question "Why does the browser, context, or page close unexpectedly in tests using worker-based authentication?"
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].