Rayrun
← Back to Discord Forum

Worker based authentication sometimes closes before done

sustainjane98posted in #help-playwright
Open in Discord
sustainjane98
sustainjane98

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?"

1 reply

Really nothing here for anyone to help. Could be anything missing awaits, bugs in the product or test code...?

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

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].