This is the demo repo for the blog article on Azure AD authentication in Cypress tests using MSAL.
You will need access to an Azure Active Directory instance. From your Azure portal need to get the Tenant ID, application Client ID, a Client Secret and a test user account. Add these values to the cypress.config.ts
file.
- Install dependencies
npm install
- Run the web app
npm start
- Run the Cypress test suite
npm run cypress:open