Open eraytech opened 1 year ago
As you mentioned when registering js registration last name input was taking spaces, after registration completed in edit profile name is showing as correctly. what was wrong in that if you have reference pls send me we will make it clear.
After Succesfull Registration in DearJob
Before JS Registration in DearJob
we have checked other social platforms. please check images below
due to above action, data is not getting trimmed, it is allowing with same spaces into database and reflecting with same spaces in profile, even though as per display it might be clear in profile view, in edit view it has spaces, that might create issue when we want to sort data in database end.
coming to facebook reference, to my knowledge,even though it allows while regestering, it will trim the spaces at the start and end of name, before entering the database.
Steps:
Actual Result: The registration form allows the entry of multiple consecutive spaces in the "Last Name" field, and it even accepts a last name that starts with a space (e.g., " Smith"). This behavior is inconsistent with the expected behavior for a "Last Name" field, which should not allow extra spaces or a leading space.
Expected Result: The "Last Name" field should not accept multiple consecutive spaces, and it should not allow a last name that starts with a space. Proper validation should be in place to ensure that the user enters a valid last name without unnecessary spaces or leading spaces. Any attempts to enter such data should result in an error or warning message prompting the user to correct the input.
This modified test case highlights the issue with the "Last Name" field's behavior on the website during the registration process.