cse442-at-ub / project_s23-gofly

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

Figma App Design - Reviews and creating a listing for Airlines Wire Frame #9

Closed fardinchowdhury closed 1 year ago

fardinchowdhury commented 1 year ago

Test Cases for Review Section

Test 1: Valid Submission

  1. Make sure you are logged in and navigate to the review section of a flight or hotel booking.
  2. Enter a valid review, which includes a proper rating out of 5, and any comments.
  3. Click on the submit button after everything is done.
  4. Ensure that the review is submitted and visible on the page publicly.

Test 2: Invalid Submission

  1. Make sure you are logged in and navigate to the review section of a flight or hotel booking.
  2. Enter a review that includes comments but does not include a rating.
  3. Click on the submit button.
  4. Ensure that an error message is displayed that states "invalid rating".

Test 3: Invalid Comment

  1. Make sure you are logged in and navigate to the review section of a flight or hotel booking.
  2. Enter a proper rating out of 5, but do not type anything in the comment box.
  3. Click on the submit button, there should be an error under the box saying please enter a comment.

Test 4: HTML Injection

  1. Make sure you are logged in and navigate to the review section of a flight or hotel booking.
  2. Enter a proper rating out of 5, and in the comment box type a html tag, such as < h1 > hello < /h1 >.
  3. Click on the submit button.
  4. Ensure that the comment is posted, and the comment is still exactly “< h1 >hello

Test 4: Make Sure Reviews Are appropriate

  1. Make sure you are logged in and navigate to the review section of a flight or hotel booking.
  2. Enter a proper rating out of 5.
  3. In the comment section, type a swear word
  4. Click submit, there should be an error under the comment box saying invalid post.
  5. Try again, and this time spam the same letter under the comment box.
  6. Click submit, there should be an error under the comment box saying invalid post.

Test Cases for Flight Listings

Test 1: Valid Flight Listing

  1. Navigate to the post listing section of the web page and select One way as the flight type.
  2. Correctly fill out the form which requires, the name of the airline, Flight departure time, flight arrival time, flight number, pick-up location, arrival location, and flight price. 3 Ensure are fields are filled with accurate information and click post listing. 4, No error messages should pop up if successful.
  3. Navigate to the flight search section of the web page.
  4. Type in the same cities and same dates for the flights that were listed and verify that the flight has been posted.

Test 2: Invalid Information

  1. Navigate to the post listing section of the web page and select One way as the flight type.
  2. Fill out most of the information but leave any field blank.
  3. Click post listing, there should be an error message under the field you left blank which says invalid input.

Test 3: Same City Error

  1. Navigate to the post listing section of the web page and select One way as the flight type.
  2. Fill out all of the information accurately except for the arrival and departing city.
  3. There should be a drop-down menu with the cities, so choose the same city for both the departing and arrival boxes.
  4. Click post listing, there should be an error message under the cities field.

Test 4: Invalid Return flight

  1. Navigate to the post listing section of the web page and select round-trip as the flight type.
  2. For the departing flight section, fill out all the information accurately.
  3. For the returning flight section, pick a different city as the departing city than the arrival city of the departing flight. Make sure everything else is accurately filled out.
  4. Click post listing, there should be an error message saying invalid return flight since it is not coming from the same city.

Test 5: Flight number error

  1. Navigate to the post listing section of the web page and select round-trip as the flight type.
  2. Fill out both the departing flight section and the returning flight section accurately beside the flight number.
  3. Type in the same flight number for both the departing and arrival sections
  4. Click post listing, there should be an error message saying you have an invalid flight number.