-
Notifications
You must be signed in to change notification settings - Fork 9
How to integrate with Wallaby integration tests #62
Copy link
Copy link
Open
Labels
T4hTime Estimate 4 HoursTime Estimate 4 HoursdiscussShare your constructive thoughts on how to make progress with this issueShare your constructive thoughts on how to make progress with this issuedocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or enhancement of existing functionalityNew feature or enhancement of existing functionalityhelp wantedIf you can help make progress with this issue, please comment!If you can help make progress with this issue, please comment!priority-1Highest priority issue. This is costing us money every minute that passes.Highest priority issue. This is costing us money every minute that passes.technicalA technical issue that requires understanding of the code, infrastructure or dependenciesA technical issue that requires understanding of the code, infrastructure or dependenciesuser-feedbackFeedback from people using the AppFeedback from people using the App
Metadata
Metadata
Assignees
Labels
T4hTime Estimate 4 HoursTime Estimate 4 HoursdiscussShare your constructive thoughts on how to make progress with this issueShare your constructive thoughts on how to make progress with this issuedocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or enhancement of existing functionalityNew feature or enhancement of existing functionalityhelp wantedIf you can help make progress with this issue, please comment!If you can help make progress with this issue, please comment!priority-1Highest priority issue. This is costing us money every minute that passes.Highest priority issue. This is costing us money every minute that passes.technicalA technical issue that requires understanding of the code, infrastructure or dependenciesA technical issue that requires understanding of the code, infrastructure or dependenciesuser-feedbackFeedback from people using the AppFeedback 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_userfunction 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. 😊