Skip to content
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: Write test successful login user gets redirected to Homepage with username on main navbar #33

Open
4 tasks
mtreacy002 opened this issue Jun 26, 2020 · 56 comments · May be fixed by #288
Open
4 tasks
Assignees
Labels
Category: Coding Changes to code base or refactored code that doesn't fix a bug. Category: Quality Assurance Changes to code or files that improve testing or fixes bugs.

Comments

@mtreacy002
Copy link
Member

mtreacy002 commented Jun 26, 2020

Description

As a developer,
I need test if redirection post successful login works
so that I can make sure user who has successfully logged-in gets redirected to the homepage with the main navbar showing username of login user.

Mocks

Acceptance Criteria

Update [Required]

  • Write tests using React Testing Library in the Login.test.js file
  • test if user gets redirected to homepage with main navbar showing their username after successful login

Enhancement to Update [Optional]

NA

Definition of Done

  • All of the required items are completed.
  • Approval by 1 mentor.

Estimation

1 day

@meenakshi-dhanani meenakshi-dhanani added Category: Coding Changes to code base or refactored code that doesn't fix a bug. Category: Quality Assurance Changes to code or files that improve testing or fixes bugs. Status: Available Issue was approved and available to claim or abandoned for over 3 days. labels Aug 19, 2020
@Shashwati-tidke
Copy link

@meenakshi-dhanani Can I work on this issue?

@aastha985
Copy link
Contributor

Hi! @mtreacy002 Can I work on this issue?

@mtreacy002
Copy link
Member Author

sure @aastha985. Go ahead 👍.

@mtreacy002 mtreacy002 removed the Status: Available Issue was approved and available to claim or abandoned for over 3 days. label Sep 11, 2020
@aastha985
Copy link
Contributor

Hi! I had to update about the status in 3 days. Haven't been able to work on this yet. I will do it by the weekend. I hope that's fine.

@mtreacy002
Copy link
Member Author

Yep, sure, @aastha985. Thank you for notifying us on your situation. Let me know if you need any help with the task.

@aastha985
Copy link
Contributor

Yep, sure, @aastha985. Thank you for notifying us on your situation. Let me know if you need any help with the task.

Sure! Thanks😊

@mtreacy002
Copy link
Member Author

Hi @aastha985 , I'll make this issue available again since you are now working on backend issue#70

@mtreacy002 mtreacy002 added the Status: Available Issue was approved and available to claim or abandoned for over 3 days. label Sep 18, 2020
@aastha985
Copy link
Contributor

Sure! @mtreacy002

@rpattath
Copy link
Member

rpattath commented Oct 3, 2020

Hi @mtreacy002, I would like to work on this but have no experience. Looking forward to learning something new.

@mtreacy002
Copy link
Member Author

Sure, @rpattath , I'll assign you to this. Let me know if you are facing any issue. we can try work it out together 😉

@mtreacy002 mtreacy002 removed the Status: Available Issue was approved and available to claim or abandoned for over 3 days. label Oct 3, 2020
@somayaj
Copy link
Contributor

somayaj commented Oct 19, 2020

Can this be worked?

@mtreacy002
Copy link
Member Author

@rpattath , are you still working on this issue? Can you please give me an update?

@mtreacy002 mtreacy002 added Status: Available Issue was approved and available to claim or abandoned for over 3 days. and removed hacktoberfest labels Dec 4, 2020
@mtreacy002
Copy link
Member Author

Update. This issue is now open to anyone that would like to work on it.

@nlok5923
Copy link
Contributor

nlok5923 commented Dec 8, 2020

@mtreacy002 can you please assign this issue to me.

@Aaishpra
Copy link
Member

Aaishpra commented Dec 8, 2020

@nlok5923 you are already assigned to #131 and according to the guidelines you can be assigned to only one issue at a time in a Repo. So, wait patiently until your PR gets reviewed and merged to claim other issues.😄

@Bucky25
Copy link

Bucky25 commented Dec 11, 2020

@mtreacy002 i would like to give it a go .

@mtreacy002 mtreacy002 added the Status: Available Issue was approved and available to claim or abandoned for over 3 days. label Feb 25, 2021
@emmanuelhashy
Copy link

emmanuelhashy commented Feb 25, 2021 via email

@mtreacy002
Copy link
Member Author

@emmanuelhashy, can you give us an update on this then?

@rkraeher
Copy link

rkraeher commented Mar 9, 2021

@mtreacy002 Since this is available again, is this issue something doable for a first time contributor? There are currently no unassigned "first timer" issues available.

@mtreacy002
Copy link
Member Author

@rkraeher, this issue might be a bit complicated for a first-timer. But if you have some experience in the tech stack and confident you can work on it, I can assign you to this. For their first contribution to the project, a contributor doesn't have to limit themselves to a First-timers only issue. That label is there to make sure that the issue is not too challenging for new contributors who might not have the background on the tech stack.

So, let me know if you do want to work on this 😉

@rkraeher
Copy link

rkraeher commented Mar 9, 2021

ok thank you. I have experience with React and jest. I looked at the Login.test file and briefly at the React Testing Library docs and I believe I can do it but I was wondering if I can get some clarification on the user story?

Right now there is one test for a successful login testing that an error message doesn't show up (lines 29-46 in Login.test). Am I on the right track to begin something like:

it('redirects the user after successful login,' async()=> {
// successful post request
render( <MemberPortfolio /> 
//Rest of the test
)}

@mtreacy002
Copy link
Member Author

You're on the right target, @rkraeher . Would you like me to assign you to this?

@rkraeher
Copy link

rkraeher commented Mar 9, 2021

great! yes can you please assign it to me? thanks!

@rkraeher
Copy link

If I'm having some trouble setting up the environment should I ask you here or get some help in Zulip?

@mtreacy002 mtreacy002 removed the Status: Available Issue was approved and available to claim or abandoned for over 3 days. label Mar 10, 2021
@mtreacy002
Copy link
Member Author

mtreacy002 commented Mar 10, 2021

Done, I've assigned you on this @rkraeher . Yep, if you are facing trouble setting up, please reach out to us. Zulip will be a better option for trouble related to setting up, since you'll reach a wider audience compared to here on GitHub. Others who might have experienced the same issue can suggest a solution based on their experience. The post will also be helpful to other contributors that also trying to set up their project. So, I always encourage people to ask questions on zulip for issues related to setting up 😉.

@mtreacy002
Copy link
Member Author

@rkraeher , any update on this issue?

@rkraeher
Copy link

Sorry for the delayed response. I wrote some of this on Zulip but with your help I managed to get the app running in the browser but there is now another missing module error that I need to figure out so I'm still working on getting my environment set up.

@rkraeher
Copy link

missing module: psycopg2._psycopg

@mtreacy002
Copy link
Member Author

mtreacy002 commented Mar 20, 2021

@rkraeher perhaps try installing psycopg2 separately (after the initial dependencies install through requirements.txt) as suggested by @vj-codes here (point 2). Let me know if it works.

@rkraeher
Copy link

rkraeher commented Apr 1, 2021

@mtreacy002 Ok I did as you suggested, installed psycopg2 separately, and it is now working. I will now proceed to link up BIT with MS so I have both servers running.

@mtreacy002
Copy link
Member Author

@rkraeher , any updates on this issue?

@rkraeher
Copy link

rkraeher commented Apr 5, 2021

@mtreacy002 I now have successfully set up both servers and have the frontend site up locally. Starting today I can begin working on writing the test.

@mtreacy002 mtreacy002 changed the title Test: Write test successful login user gets redirected to Member Profile page Test: Write test successful login user gets redirected to Homepage with username on main navbar Apr 9, 2021
@mtreacy002
Copy link
Member Author

@rkraeher , any updates on this issue?

@mtreacy002 mtreacy002 added the Status: On Hold Issue or PR needs more info, a discussion, a review or approval from a Maintainer/Code Owner. label Apr 29, 2021
@mtreacy002
Copy link
Member Author

mtreacy002 commented Apr 29, 2021

Putting this on hold following discussion with the contributor on zulip

@rkraeher
Copy link

hey there @mtreacy002. i'm feeling better and was interested in getting involved again on the project during hacktober. Can I get back to work on this issue? Or if there are other areas where contribution would be more helpful im flexible and open to suggestion :)

@vj-codes
Copy link
Member

@rkraeher welcome back 🎉
Removing the issue from 'hold' and you can work on it, have a great start :)

@vj-codes vj-codes removed the Status: On Hold Issue or PR needs more info, a discussion, a review or approval from a Maintainer/Code Owner. label Oct 17, 2021
@rkraeher
Copy link

rkraeher commented Mar 4, 2022

hi @vj-codes and @mtreacy002 I finally managed to open the PR for this. sorry for the delay. Tagging you both here since the zulip stream seems a bit stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Coding Changes to code base or refactored code that doesn't fix a bug. Category: Quality Assurance Changes to code or files that improve testing or fixes bugs.
Projects
None yet