Skip to content

Skip Github flow on local for easier testing of user creation flows#56

Merged
ChrisPenner merged 8 commits into
mainfrom
cp/user-creation-tests
Apr 29, 2025
Merged

Skip Github flow on local for easier testing of user creation flows#56
ChrisPenner merged 8 commits into
mainfrom
cp/user-creation-tests

Conversation

@ChrisPenner
Copy link
Copy Markdown
Member

@ChrisPenner ChrisPenner commented Apr 11, 2025

Overview

When running in the local deployment, going through the "login" flow will short-circuit going to github and will instead complete the auth flow using dummy github user info, which helps make testing the user creation flow a lot easier.

Implementation notes

The only difference is that it skips redirecting through Github, and doesn't call the github APIs to get the user data and instead uses constant dummy user info.

Test coverage

I added a new user creation transcript to ensure we don't break the user creation flow.

Loose Ends

@hojberg you could optionally wire up the "Login", "Register" and "Logout" buttons in the local UI if you like :)

@ChrisPenner ChrisPenner marked this pull request as ready for review April 11, 2025 18:12
@ChrisPenner ChrisPenner requested a review from hojberg April 11, 2025 18:12
@ChrisPenner ChrisPenner changed the base branch from main to bump-unison April 25, 2025 18:43
@ChrisPenner ChrisPenner requested a review from a team as a code owner April 25, 2025 18:43
@ChrisPenner ChrisPenner changed the base branch from bump-unison to main April 25, 2025 18:43
@ChrisPenner ChrisPenner merged commit 7345e89 into main Apr 29, 2025
4 checks passed
@ChrisPenner ChrisPenner deleted the cp/user-creation-tests branch April 29, 2025 01:01
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

Successfully merging this pull request may close these issues.

2 participants