MitocGroup/adtechmedia-website

Add validation for "Email address" field

Closed this issue · 1 comments

Website Page - https://www.adtechmedia.io/calculator-result/

Email address field
Actual result: This field is valid when I insert:

  • Email with a dot on the first position

screen shot 2017-06-15 at 8 36 03 pm

  • Dot is missing from email

screen shot 2017-06-15 at 2 37 55 pm

  • Allows other characters except (digit, underscore, and dash)

screen shot 2017-06-19 at 1 10 31 pm

  • Allows double dots

screen shot 2017-06-15 at 8 49 25 pm

Expected result : Email with be invalid if:

  • @ is not present
  • mysite@.com.my [ (Top Level domain) can not start with dot "." ]
  • @you.me.net [ No character before @ ]
  • .mysite@mysite.org [ an email should not start with "." ]
  • mysite()*@gmail.com [ here the regular expression only allows character, digit, underscore, and dash ]
  • mysite..1234@yahoo.com [double dots are not allowed]
  • mysite@gmail [Dot is missing]

Test Passed for all described scenarios
Notification message is triggered when request is accepted with invalid email

screen shot 2017-08-17 at 17 05 12