-
Notifications
You must be signed in to change notification settings - Fork 93
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
test: logged in user gets redirected to Home with username on main Navigation bar #288
base: develop
Are you sure you want to change the base?
Conversation
Hello there!👋 Welcome to the project!💖 Thank you and congrats🎉 for opening your first pull request.✨ AnitaB.org is an inclusive community, committed to creating a safe and positive environment.🌸Please adhere to our Code of Conduct and Contribution Guidelines.🙌.We will get back to you as soon as we can.😄 Feel free to join us on AnitaB.org Open Source Zulip Community.💖 We have different streams for each active repository for discussions.✨ Hope you have a great time there!😄 |
c5525e4
to
4e794d5
Compare
Merge ConflictCurrently there is a merge conflict between this PR branch and Description
Possible SolutionThis seems like a confusing and misleading alias usage, since in the test we use aliases, but both of those aliases are overriding the default export names of different package objects. I think a better solution would be to remove the |
Description
Fixes Test: Write test successful login user gets redirected to Homepage with username on main navbar #33
Adds a test to check that the
Login
component will redirect toHome
after a successful login (or when directly accessing the /login route).The issue also requires a test to check that the logged in user's username is displayed on the
Navigation
bar after being redirected toHome
. As this is really checkingNavigation
component functionality, notLogin
, I have added a separate test file forNavigation
The
Login
test requires an import of thehistory
dependencyType of Change:
How Has This Been Tested?
npm run test
Checklist:
Code/Quality Assurance Only