-
-
Notifications
You must be signed in to change notification settings - Fork 769
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
Code Coverage: Create tests for src/components/UserPortal/Login/Login.tsx #1032
Comments
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue. |
I read the current tests in Login.test.tsx and observed the current code coverage. talawa-admin/src/components/UserPortal/Login/Login.tsx Lines 54 to 55 in d8e6a7d
After trying all the possible case locally I found out that the control does not reach on the above lines in any cases. In other words when Thus to get the test coverage of this component to 100% is to simply remove the else condition i.e talawa-admin/src/components/UserPortal/Login/Login.tsx Lines 54 to 55 in d8e6a7d
It does not break the functioning of user portal and the test coverage also reaches to 100%. cc : @noman2002 |
Try to mock the situation in which it goes to the else condition. And write the test for the same. Removing the else condition will not be a good approach. |
I will try |
@noman2002 Steps to reproduce
|
Yes admin can login to user portal. |
@noman2002 |
@noman2002 Please observe from the diagram that there are only three possible cases when any person tries to login into user portal
We can observe that there is no other case than this in which control will execute line 54 and 55 What do you think? If there is anything that I missed please help me through. |
@noman2002 Any suggestions? |
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue. |
Unassigning due to inactivity and no related PR |
@noman2002, @palisadoes I would like to work on this. There is no case which will enter into else condition as described by @MahendraDani. Actually that else condition was used in admin login where it used to filter normal users to not enter into admin portal. But in user portal admins can also login. In case if request does not carry any data it will always go to catch block. |
I am unassigning myself, this is now up for grabs. |
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue. |
please assign the issue to me, would love to work |
I am interested,please assign this to me |
@shankeleven Sorry I missed this earlier! You currently have 2 issues in another repo, so I am going to assign it to @Shashankpantiitbhilai. |
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue. |
Unassigning due to inactivity. |
Please assign me I want to work on this issue |
@Sauradip07 Our policy is to assign no more than two issues to each contributor across all repositories. This way everyone gets a chance to participate in the projects. We sometimes give exceptions for more urgent cases and sometimes we lose track, but the policy stands. You have reached your limit, please wait until your existing issues are closed before requesting more issues. You could unassign yourself from one of the other issues too. |
Please assign me this issue , love to work on it. |
|
@palisadoes Sir, Is this issue still open and stale? I can work on this. |
please assign this issue to me @palisadoes @Cioppolo14 |
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue. |
Unassigning due to no activity. |
Hey @Cioppolo14, @palisadoes. Is this completed? |
We will need unittests done for all methods, classes and functions found in this file.
Any widgets, components, modals referenced in this file must also have unittests done
PR Acceptance Criteria
The text was updated successfully, but these errors were encountered: