cse442-at-ub / project_s23-gofly

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

Backend Task - Hotel Listings (user) #69

Closed mdhyder01 closed 1 year ago

mdhyder01 commented 1 year ago

Tasks Tests

Test 1: View Hotel Listings

  1. Log into GoFly using user credentials username: rom password: 12345
  2. On the navigation bar, click on hotels
  3. Verify that the hotels listing are displayed with the hotel name, price, pictures etc.

Test 2: Booking Hotels

  1. Log into GoFly using user credentials username: rom password: 12345
  2. On the navigation bar, click on hotels and verify the hotels are displayed.
  3. Click on the book now button and verify that it takes you to checkout, which contains the hotels name and price information and total.
  4. Enter your name and a credit card number and click book securely.
  5. Verify that it takes you to the mybooking page. Click on the hotels tab and verify the hotel you booked is there.

Test 3: Delete booking

  1. Log into GoFly using user credentials username: rom password: 12345
  2. On the navigation bar, click on my booking.
  3. Click on the hotels' tab and verify that you have a hotel booking, if not then complete test 2.
  4. Click cancel booking, and verify that the booking is no longer there.

Test 4: Error handling booking

  1. Log into GoFly using user credentials username: rom password: 12345
  2. On the navigation bar, click on hotels and verify the hotels are displayed.
  3. Look for a hotel that you already booked. Click on the Book now button and verify that it takes you to check out, which contains the hotel's name, price information, and total.
  4. Enter your name and a credit card number and click book securely.
  5. Verify a message pops up saying you already booked this hotel.

Test 5: Viewing Details

    1. Log into GoFly using user credentials username: rom password: 12345
  1. On the navigation bar, click on hotel listing and verify the hotels are displayed.
  2. Click on the view details button on one of the listenings.
  3. Verify that the page shows pictures of the rooms and contains the hotel description, hotel rooms, amenities, prices, etc.
  4. Verify that there is a book now button there as well. Click on it and verify that it takes you to the checkout page.