Test login with MSAL React #6101
Unanswered
MadalenaPavao
asked this question in
Help
Replies: 1 comment
-
Did you find any solution @MadalenaPavao ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am using MSAL to authenticate into my app. I am writing tests using React Testing library and Jest, and I need to login into my app before running any test.
For that, I created a "beforeAll" where I click the login button:
But this is throwing the following error (last lines):
How can I login in my test file?
Edit: The actual login into the application works well, I don't have issues.
Beta Was this translation helpful? Give feedback.
All reactions