I am try to write E2E tests on my Blazor 8 WebApp using Playwright. I would like to setup the Azure AD authentication to have a user with a certain roles depending on the tests. Could not find a working example anywhere?
As a note, I am using Azure AD authentication with a tenant using certificates rather than secrets.
Any documentation or any pointers or sample projects would be hugely appreciated.
I have tried using the codegen but that wouldn’t work as the tests are meant to kind of impersonate the users in some way or the other.