You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During signup flow add appropriate validations and e2e tests for automatic generation of username from First Name and Last Name fields.
Expected Behavior
When user is in the signup flow, it should not allow blank spaces to be added in the first name and last name fields, Also the username must be atleast 4 character long for reference -
First Name - Abhay
Last Name - Patil
The generated username (if no Abhay patil was there before in the DB) - Abhay-Patil,
If some other user with same First Name and Last Name the generated username - Abhay-Patil-1
Current Behavior
Currently on the signup flow there is a username field, the username gets generated automatically after entering the first name and last name field, however if a blank space is added in the first name or last name field it accepts it and create an unusual username, and there is a restriction that username must be at leaast 4 characters long due to adding space in the first name and last name field the username does not get generated as expected.
Screenshots
Error when the username is less than 4 characters long
Error when blank space is added in the first name and last name fields
Reproducibility
This issue is reproducible
This issue is not reproducible
Steps to Reproduce
Visit the /new-signup route
Add your First Name, Last Name and then Submit button.
The username should be generated for you with your added First Name and Last Name.
Severity/Priority
Critical
High
Medium
Low
Additional Information
Writing/Reviewing good e2e tests to ensure the username generate flow works smoothly considering all scenarios like -
The first name and last name field should not be blank.
No Blank spaces should be allowed to be entered in the fields.
User should not be allowed to enter the username manually it should be generated automatically.
If user with similar full name gets added the username should be generated accordingly first_name-last_name, first_name-last_name-1, first_name-last_name-2 ...
Checklist
I have read and followed the project's code of conduct.
I have searched for similar issues before creating this one.
I have provided all the necessary information to understand and reproduce the issue.
I am willing to contribute to the resolution of this issue.
The text was updated successfully, but these errors were encountered:
Issue Description
During signup flow add appropriate validations and e2e tests for automatic generation of username from First Name and Last Name fields.
Expected Behavior
When user is in the signup flow, it should not allow blank spaces to be added in the first name and last name fields, Also the username must be atleast 4 character long for reference -
First Name - Abhay
Last Name - Patil
The generated username (if no Abhay patil was there before in the DB) - Abhay-Patil,
If some other user with same First Name and Last Name the generated username - Abhay-Patil-1
Current Behavior
Currently on the signup flow there is a username field, the username gets generated automatically after entering the first name and last name field, however if a blank space is added in the first name or last name field it accepts it and create an unusual username, and there is a restriction that username must be at leaast 4 characters long due to adding space in the first name and last name field the username does not get generated as expected.
Screenshots
Error when the username is less than 4 characters long
Error when blank space is added in the first name and last name fields
Reproducibility
Steps to Reproduce
Severity/Priority
Additional Information
Writing/Reviewing good e2e tests to ensure the username generate flow works smoothly considering all scenarios like -
Checklist
The text was updated successfully, but these errors were encountered: