Story #23 Add Email Validation - cseseniordesign/reservations GitHub Wiki

End User Documentation

Dev Testing Instructions

  1. Make sure you are on the most recent version of the dev-add-email-validation branch.
  2. Start your dev environment.
  3. Navigate to /new_members/
  4. Select any of the new member orientation sessions to sign up for.
  5. Enter a valid email as well as the other form information
  6. Ensure that registration works as expected and a confirmation email is sent to the email entered.
  7. Repeat steps 3-5 except with an invalid email (ex. hello)
  8. Ensure that there is a warning that you have entered an invalid email.
  9. Ensure there are no errors in the console throughout your testing.

Production Testing Instructions

  1. Go to https://innovationstudio-manager.unl.edu/home/
  2. Follow steps 3 and up from the dev testing instructions above.

Technical Documentation

routes/new_members.rb

  • Added email regex checking to ensure that only valid emails are allowed to be submitted.
  • Sends a confirmation email to users about the event when they sign up with a valid email.