Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E Testing a create-react-app with react-adal setup #90

Open
LoganArnett opened this issue Oct 8, 2019 · 2 comments
Open

E2E Testing a create-react-app with react-adal setup #90

LoganArnett opened this issue Oct 8, 2019 · 2 comments

Comments

@LoganArnett
Copy link

I am currently trying to setup End to End testing for a CRA with typescript. I have react-adal in place and working as expected but I am not sure of the best way to handle the basic login in order for the tests to run through the application. Would it make more sense to conditionally wrap the app with react-adal anytime the environment is not test and to remove that wrapper when testing and perform the login via an API request? I am trying to find a good solution but so far I have had no luck

@salvoravida
Copy link
Owner

@LoganArnett if you use Cypress can have a look here
cypress-io/cypress#1342

@vudaysai
Copy link

Any luck, in implementing tests? I'm also facing issue while trying to implement tests using jest and react-testing-library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants