testcafe: Does not render the application when using MSAL for login.
What is your Test Scenario?
I am replacing react-adal to react-aad-msal. Cannot see the application rendered once I have logged in.
What is the Current behavior?
Does not render my application in tests
What is the Expected behavior?
Renders my application in tests
What is your web application and your TestCafe test code?
I have created a repo with instructions how it can be replicated - https://github.com/zsid/testcafe-azure-ad
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 30 (10 by maintainers)
Hi @zsid,
we cannot provide any estimates at this time.
We don’t have a workaround for this behavior yet.
@kerosan, Thank you for the additional information.
Good morning @AlexKamaev. Would you be able to suggest a work around to make the tests run until a fix is ready - our e2e tests are blocked at the moment as we cannot authenticate
At this moment it’s difficult to say why your scenario stopped working. We need to research it in detail.
The reason we are moving away is
adal jsis not being support anymore and they are advising people to move toreact-aad-msalmore info in this issue https://github.com/AzureAD/azure-activedirectory-library-for-js/issues/772.I dont know if the login loop problem will be present once we move to
react-aad-msal. Needs to be tested once the app is rendering@AlexKamaev,
--disable-page-cachinghas fixed the issue withreact-adalmodule.However, we are moving away from
react-adaland usingmsalandreact-aad-msal. Please let me know how we can run our tests when usingreact-aad-msal