I have Playwright suite to test an Angular 15 app and I'm trying to set up an auth scheme so tests could use it to simulate an authenticated user.
According to the basic setup docs, I've added a globalSetup file that runs before all tests.
But, according to these authentication docs, I need to create a setup project to run the auth scheme:
Create a new setup project in the config and declare it as a dependency for all your testing projects. This project will always run and authenticate before all the tests. All testing projects should use the authenticated state as storageState.
What is the right way to do it? Are there supposed to be two "setup" places?