AY2425S1-CS2103T-W12-4 / tp

MIT License
0 stars 5 forks source link

[PE-D][Tester E] Name Field Accepts Numeric Characters in TalentNet #241

Closed soc-pe-bot closed 4 days ago

soc-pe-bot commented 5 days ago

Description:

The TalentNet app currently permits numeric characters to be included in the name field when adding a new contact. For example, entering "Joshu123" as the name is accepted without validation errors. This may lead to data entry inconsistencies, as names typically should not contain numbers, and can affect the integrity of the contact list.

Steps to Reproduce:

  1. Open the TalentNet app and navigate to the “Add New Contact” screen.
  2. In the name field, enter a name with numbers, e.g., n/Joshu123.
  3. In the phone field, enter any valid phone number, e.g., p/12334456.
  4. The contact is saved with result "New person added: Joshu123; Phone: 12334456;"

Expected Result:

Would it be better if the app display a validation error, preventing the user from saving a contact with numbers in the name field. A warning message like “Name should not contain numeric characters”. Actual Result: The app saves the contact with the name "Joshu123" and does not flag the presence of numbers. It confirms with a message: New person added: Joshu123; Phone: 12334456.

Screenshots:

image.png


Labels: severity.High type.FunctionalityBug original: zhou-colla/ped#2