How to integrate with Wallaby integration tests #62
Labels
discuss
Share your constructive thoughts on how to make progress with this issue
documentation
Improvements or additions to documentation
enhancement
New feature or enhancement of existing functionality
help wanted
If you can help make progress with this issue, please comment!
priority-1
Highest priority issue. This is costing us money every minute that passes.
T4h
Time Estimate 4 Hours
technical
A technical issue that requires understanding of the code, infrastructure or dependencies
user-feedback
Feedback from people using the App
Hi,
When a user signs in with his company's credentials and is redirected back to the provided endpoint, we get the user profile from
ElixirAuthMicrosoft.get_user_profile(token.access_token)
We store this in the session and redirect the user to the app:
Fair enough, but how do I replicate this in a
sign_in_user
function in my Wallaby tests?I found this post on ElixirForum. I've tried to massage it to fit with the auth logic provided by elixir-auth-mirosoft, but I don't understand everything and could need help to get the last pieces to fit together.
A simple test to see if a user has signed in
This is the session we inspect:
TestHelpers
What obvious steps am I missing?
How can I build a sign_in helper that mimics what we do in the MicrosoftAuthController callback?
BTW: I've been using ElixirAuthMicrosoft for 6 months now, and it works like a charm! I just need to get this final piece in place. 😊
The text was updated successfully, but these errors were encountered: