Documentation on how to use Playwright for E2E testing when EasyAuth is enabled
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
I'm trying to set up a end-to-end testing flow using Playwright. However my Static Web App (Angular) is protected using EasyAuth (AAD provider). I don't want to rely on username/password if possible for a test user and I was thinking if managed identities are the way to go. I don't know how to authenticate a test user since I can't use Bearer tokens and the Static Web App seems to rely on the `StaticWebAppsAuthCookie`-cookie.
**Describe the solution you'd like**
Some best practices as to how end-to-end testing of a Static Web App is conducted. Especially when EasyAuth is enabled.
**Describe alternatives you've considered**
Using a test user with username/password but troublesome because of MFA and policies to change password.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.