I'm following this guide to create a centralized authentication to re-use the cookie and avoid excessive logins: https://playwright.dev/docs/auth#reuse-signed-in-state
However, I have a few specific tests where I don't want this cookie. For example, I want to test different corner cases of the authentication flow. How can I do this? Like opting out of the storage state, some how.
Thanks in advance!
PS: I'm using NodeJS.
This thread is trying to answer question "How can I opt out of the storage state for specific tests when using centralized 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].