Revamped: Authentication with Playwright #236
Replies: 2 comments
-
Nice, just got this method working thanks to your tutorial! Just starting a new project and thought i'd try this method instead of the old global setup config. I did spent a bit of time troubleshooting why the tests were being skipped after adding the setup project as a dependency, turns out you cannot place the |
Beta Was this translation helpful? Give feedback.
-
Thanks! I got this working as well for my multiple users when using the browser. However, when I tried to use API requests instead, only one of the json files would get populated with the session state. |
Beta Was this translation helpful? Give feedback.
-
Revamped: Authentication with Playwright - Tim Deschryver
Playwright (v1.31) introduces a new feature to make the authentication process easier. This approach unifies the authentication flow with the rest of the test cases, and more importantly makes it possible to test with different user roles.
https://timdeschryver.dev/blog/revamped-authentication-with-playwright
Beta Was this translation helpful? Give feedback.
All reactions