Project

General

Profile

BUG #3159

Updated by Tasfia Zaima 7 months ago

In the Contact Us page, validation is weak in the following- 
 * In the Name field, if the user enters only blank spaces (e.g., two spaces) or only numbers the form still allows the message to be sent. 
 * In the Email field, the form accepts entries with leading blank spaces before the email part and submission is still allowed. 

 **Steps to Reproduce:** 
 1. Open the Contact Us page. 
 1. In the Name field, enter only blank spaces (e.g., two spaces). 
 1. Fill in other required fields with valid data and submit the form. 
 1. In the Name field again, enter only numbers (e.g., “1234”). 
 1. Fill in other required details and submit the form. 
 1. In the Email field, enter a few blank spaces before the email part (e.g., "      test@example.com"). 
 1. Fill in other required details and submit the form. 

 **Expected Result:** 
 * The Name field should not allow submission if it contains only blank spaces or only numbers. 
 * The Email field should not allow submission when there are leading blank spaces before the email part. 

 **Actual Result:** 
 * The form gets submitted even when the Name field contains only blank spaces. 
 * The form also gets submitted when the Name field contains only numbers. 
 * The form also gets submitted when the Email field contains leading blank spaces before the email part. 

 **Video:** 
 https://drive.google.com/file/d/1dAjjtrIhIPj2FyA9inLs_j9QsHuPslEy/view?usp=sharing (Name) https://drive.google.com/file/d/1dAjjtrIhIPj2FyA9inLs_j9QsHuPslEy/view?usp=sharing(Name) 
 https://drive.google.com/file/d/1oGPKNp_rzFvO3z4ckiWax5G7qfVfX_KS/view?usp=sharing (Email Address)

Back