test: logged in user gets redirected to Home with username on main Navigation bar#288
test: logged in user gets redirected to Home with username on main Navigation bar#288rkraeher wants to merge 6 commits intoanitab-org:developfrom
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
Logincomponent will redirect toHomeafter 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
Navigationbar after being redirected toHome. As this is really checkingNavigationcomponent functionality, notLogin, I have added a separate test file forNavigationThe
Logintest requires an import of thehistorydependencyType of Change:
How Has This Been Tested?
npm run testChecklist:
Code/Quality Assurance Only