varunKT001 / tomper-wear-ecommerce

E-commerce web-application for selling clothing essentials 😀
https://tomper-wear.netlify.app
MIT License
38 stars 48 forks source link

Bug: Shipping Address Page Missing Out Certain Checks #30

Closed Shubham29012001 closed 2 years ago

Shubham29012001 commented 2 years ago

What happened?

While entering the Shipping address, certain checks like Phone Number check (10-12 digit number) and Zip Code should allow only Numeric values are missing out.

image

How can we reproduce this bug?

  1. Login with the test credentials
  2. Add some products to the cart
  3. Proceed to the Checkout page
  4. Now it will ask you to enter the Shipping address
  5. You can write alphabetic, Special-Characters, etc in Zip and Phone number box.

Additional context (if any)

Can I work on it for GSSoC '22? This issue won't take much time to be solved.

Urgency (Optional)

Low priority

github-actions[bot] commented 2 years ago

Hey @Shubham29012001 👋, thank you for raising an issue. Please make sure that it is detailed, and also following the provided template.

varunKT001 commented 2 years ago

Hey @Shubham29012001 👋 There is a check for a phone number. You will get an error pop-up if the phone number you entered doesn't have 10 digits. Also, since it's a number input, no alphabets are allowed in it.

For the zip code, yes, there is no check.

A regex test would fix the issue 👍

Would you like to work upon this now or after completing the other issue you are assigned?

Shubham29012001 commented 2 years ago

I would like to first work on this issue as I guess it will not take much time.

varunKT001 commented 2 years ago

Okay 👍