gak112 / DearJobTesting

1 stars 0 forks source link

[WEB] [JS-Register-Basic Details] "Last Name" Field Allows Multiple Spaces and Leading Space #644

Open eraytech opened 1 year ago

eraytech commented 1 year ago

Steps:

  1. Open a web browser and go to the website: "https://dearjob.org".
  2. On the website's homepage, locate and click on the "Register" link in the menu tab.
  3. From the registration options, select "JobSeeker."
  4. In the registration form, find the "Last Name" field.
  5. Attempt to enter a last name with multiple consecutive spaces (e.g., "Smith Johnson") and submit the form.

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.

image

QSPaysys1 commented 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.

  1. After Succesfull Registration in DearJob WhatsApp Image 2023-09-14 at 11 41 23 AM

  2. Before JS Registration in DearJob WhatsApp Image 2023-09-14 at 11 41 22 AM

    we have checked other social platforms. please check images below WhatsApp Image 2023-09-14 at 12 35 33 PM WhatsApp Image 2023-09-14 at 12 42 25 PM

eraytech commented 1 year ago

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.

image

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.