cse442-at-ub / project_s23-gofly

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

Search bar functionality #61

Closed Monty0252 closed 1 year ago

Monty0252 commented 1 year ago

Task Tests

Username: no Password: no

Test 1: Valid Search

  1. Log into the website with the above credentials (Link)
  2. Navigate to the homepage
  3. Locate the search bar and enter a valid departure airport (e.g., "JFK") and arrival airport (e.g., "Dac")
  4. Enter valid travel dates, for example, departure date: "2023-05-10" and return date: "2023-05-20"
  5. Enter the number of passengers, such as "2 adults"
  6. Click on the "Search" button
  7. Verify that the search results display all available flights that match the user's search criteria, including the airline, departure and arrival times, flight duration, and ticket prices.

Test 2: No Inputs

  1. Log into the website with the above credentials (Link)
  2. Navigate to the homepage
  3. Locate the search bar but do not fill in any of the fields
  4. Click on the "Search" button
  5. Verify that a message pops up asking to fill out the fields before pressing search.

Test 3: Leaving an input blank

  1. Log into the website with the above credentials (Link)
  2. Navigate to the homepage
  3. Locate the search bar and enter a valid departure city (e.g., "JFK") and arrival city (e.g., "Dac")
  4. Leave the travel dates blank
  5. Enter the number of passengers, such as "2 adults"
  6. Click on the "Search" button
  7. Verify that it prompts you to enter a date before you can search.