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)

Most upvoted comments

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 js is not being support anymore and they are advising people to move to react-aad-msal more 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-caching has fixed the issue with react-adal module.

However, we are moving away from react-adal and using msal and react-aad-msal. Please let me know how we can run our tests when using react-aad-msal