cse442-at-ub / project_s23-welovehertz

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

As a future resident, I want to be able to favorite housing options, so I know what housing complexes I am favoring. #81

Closed MathewDebug closed 1 year ago

MathewDebug commented 1 year ago

Acceptance Tests

Test 1

  1. Go to Homepage
  2. Scroll down and click Porter Dorm
  3. Scroll up and and click the Favorite/Unfavorite Button
  4. Verify that if the button originally says favorite, it turns to unfavorite and that if the button originally says unfavorite, it turns to favorite

Test 2

  1. Go to Homepage
  2. Scroll down and click on Porter Dorm
  3. Scroll all the way up and click on the Favorite/Unfavorite button
  4. Right click the page and click inspect
  5. Click console on the top right
  6. Verify that it says "Added housing complex into the database" on the console

Test 3

  1. Go to Login
  2. type in mathewye@gmail.com for both the email and the password
  3. Scroll down and click Creekside West
  4. Scroll up and click favorite
  5. Click the profile icon on the top right
  6. Verify that the page has mathew as the first name, yeung as the second name, and has Creekside West under Favorite Listing

test 4

  1. Go to Register
  2. Type in Test for both first name and last name and testing12345@gmail.com for email, password, and confirm password
  3. Click register
  4. Type in testing12345@gmail.com for both email and password
  5. Click login
  6. Click on the profile icon on the top right
  7. Verify that under Favorite Listing, it displays "You have no favorited housing options"

test 5

  1. Go to Login
  2. Type in mathewye@gmail.com for both email and password
  3. click login
  4. Scroll down and click Governors
  5. Click favorite or unfavorite
  6. Verify that the button says favorite if it originally said unfavorite or it says unfavorite if it originally said favorite