cse442-at-ub / project_s23-welovehertz

project_s23-welovehertz created by GitHub Classroom
0 stars 1 forks source link

Check for duplicate email in the backend for registration page PHP #77

Closed sskong0719 closed 1 year ago

sskong0719 commented 1 year ago

Task Tests

Test 1

  1. Store email in the database by registering once
  2. Go to Registration Page
  3. Type in the user's first name in the "First Name" text box.
  4. Type in the user's last name in the "Last Name" text box.
  5. Type in the user's email address in the "Email" text box.
  6. Type in a valid password in the "Password" text box.
  7. Type in the same password in the "Confirm Password" text box.
  8. Click on "Register" button
  9. Go back to Registration Page
  10. Fill out the form with the same information previously entered.
  11. Click on "Register" button
  12. Verify that after clicking on "Register", an error indicating "Email address already exists" is displayed next to "Email" field

Test 2

  1. This time test using a given email address
  2. Go to Registration Page
  3. Type in the user's first name in the "First Name" text box.
  4. Type in the user's last name in the "Last Name" text box.
  5. Type in a valid password in the "Password" text box.
  6. Type in the same password in the "Confirm Password" text box.
  7. For the email field, enter "sskong@buffalo.edu", this is an existing email in the database
  8. Click on "Register" button
  9. Verify that after clicking on "Register", an error indicating "Email address already exists" is displayed next to "Email" field