Update Deliverable_3 authored by Amna Shakeel (kln390)'s avatar Amna Shakeel (kln390)
......@@ -185,93 +185,104 @@ User Story 1: As HomeCookHerin, I want to search for recipes by cuisine type and
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|----------------|--------------------------------------------------------------|----------------------------------------------------------------------------|-----------------|--------------------------------------------------------|----------------|-----------|
| TC-SEARCH-01 | Verify search results display recipes tagged with Thai cuisine. | 1. Go to Search page.<br>2. Select "Thai" from the cuisine dropdown.<br>3. Click "Search". | Cuisine = Thai | Only recipes tagged as Thai cuisine are displayed. | -- | -- |
| TC-SEARCH-01 | Verify search results display recipes tagged with Thai cuisine. | 1. Go to Search page.<br>2. Select "Thai" from the cuisine dropdown.<br>3. Click "Search". | Cuisine = Thai | Only recipes tagged as Thai cuisine are displayed. |Only shows the "Thai" Recipes. | Pass |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|----------------|-------------------------------------------|---------------------------------------------------------------------------------------------|--------------------------|-------------------------------------------|----------------|-----------|
| TC-SEARCH-02 | Verify system handles empty search results | 1. Go to Search page.<br>2. Select "Ethiopian".<br>3. Click "Search". | Cuisine = Ethiopian | “No recipes found” message is displayed. | -- | -- |
| TC-SEARCH-02 | Verify system handles empty search results | 1. Go to Search page.<br>2. Select "Chinese".<br>3. Click "Search". | Cuisine = Chinese | “No recipes found” message is displayed. | "No recipes found" was displayed. | Pass |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|----------------|-------------------------------------------------------|--------------------------------------------------------------------------------------------------------|--------------------------------------|-----------------------------------------------------------|----------------|-----------|
| TC-SEARCH-03 | Verify ingredient filter refines Thai cuisine results | 1. Search for Thai cuisine.<br>2. Type "chicken" in ingredient filter.<br>3. Click "Apply Filter". | Cuisine = Thai, Ingredient = chicken | Only Thai recipes containing chicken are displayed. | -- | -- |
| TC-SEARCH-03 | Verify ingredient filter refines Thai cuisine results | 1. Search for Thai cuisine.<br>2. Type "chicken" in ingredient filter.<br>3. Click "Apply Filter". | Cuisine = Thai, Ingredient = chicken | Only Thai recipes containing chicken are displayed. | Only Thai recipes that contain chicken were displayed. | Pass |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|----------------|-----------------------------------------------|--------------------------------------------------------------------------------------------|------------------------------------|--------------------------------------------|----------------|-----------|
| TC-SEARCH-04 | Verify ingredient filter handles zero matches | 1. Search for Thai cuisine.<br>2. Type "lamb" in ingredient filter.<br>3. Click "Apply Filter". | Cuisine = Thai, Ingredient = lamb | “No recipes found” message is displayed. | -- | -- |
| TC-SEARCH-04 | Verify ingredient filter handles zero matches | 1. Search for Thai cuisine.<br>2. Type "lamb" in ingredient filter.<br>3. Click "Apply Filter". | Cuisine = Thai, Ingredient = lamb | “No recipes found” message is displayed. | "No recipes found." was displayed. | Pass. |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|----------------|-------------------------------------------------|---------------------------------------------------------------------------------------------------|--------------------------------------------|-----------------------------------------------------------------|----------------|-----------|
| TC-SEARCH-05 | Verify multiple ingredient filtering works | 1. Search for Thai cuisine.<br>2. Enter “chicken, basil”.<br>3. Click “Apply Filter”. | Ingredients = [chicken, basil] | Only recipes containing BOTH chicken and basil are displayed. | -- | -- |
| TC-SEARCH-05 | Verify multiple ingredient filtering works | 1. Search for Thai cuisine.<br>2. Enter “chicken, basil”.<br>3. Click “Apply Filter”. | Ingredients = [chicken, basil] | Only recipes containing BOTH chicken and basil are displayed. | Only recipes containing BOTH chicken and basil were displayed. | Pass |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|----------------|------------------------------------------------------|--------------------------------------------------------------------------------------------|---------------------------------------|---------------------------------------------------|----------------|-----------|
| TC-SEARCH-06 | Verify combining title + cuisine filters works properly | 1. Select Cuisine = Thai.<br>2. Enter Title = “Curry”.<br>3. Click “Search”. | Cuisine = Thai, Title = Curry | Only Thai curry recipes are displayed. | -- | -- |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|----------------|--------------------------------------------------|----------------------------------------------------------------------------|---------------------|----------------------------------------------------------|----------------|-----------|
| TC-SEARCH-06 | Verify title search returns matching recipes | 1. Go to Search page.<br>2. Enter “Pasta” in the title search bar.<br>3. Click “Search”. | Title = Pasta | Recipes whose titles contain “Pasta” appear in results. | Recipes whose titles contained “Pasta” appeared in results. | Pass |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|----------------|-------------------------------------------------|----------------------------------------------------------------------------|------------------------|-----------------------------------------------------------|----------------|-----------|
| TC-SEARCH-07 | Verify description keyword matches recipes | 1. Enter “spicy” in description search field.<br>2. Click “Search”. | Description = spicy | Recipes containing “spicy” in the description appear. | -- | -- |
| TC-SEARCH-07 | Verify description keyword matches recipes | 1. Enter “spicy” in description search field.<br>2. Click “Search”. | Description = spicy | Recipes containing “spicy” in the description appear. | Recipes containing “spicy” in the description appear. | Pass |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|----------------|--------------------------------------------|----------------------------------------------------------------------|---------------------------|---------------------------------------------------|----------------|-----------|
| TC-SEARCH-08 | Verify allergy filter excludes nut recipes | 1. Select “Nut-free” allergy filter.<br>2. Click “Search”. | Allergy = Nut-free | No recipes containing nuts are displayed. | -- | -- |
| TC-SEARCH-08 | Verify allergy filter excludes nut recipes | 1. Select “Nut-free” allergy filter.<br>2. Click “Search”. | Allergy = Nut-free | No recipes containing nuts are displayed. | Allergen filter feature not working correctly at the moment. It shows all recipes even the one including "nuts." | Fail |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|----------------|-------------------------------------------------|---------------------------------------------------------------------------------------------------|--------------------------------------------|---------------------------------------------------------|----------------|-----------|
| TC-SEARCH-09 | Verify combined filtering (cuisine + ingredient + allergy) | 1. Select Cuisine = Thai.<br>2. Ingredient = chicken.<br>3. Allergy = gluten-free.<br>4. Click “Search”. | Thai, chicken, gluten-free | Only recipes meeting all selected criteria appear. | -- | -- |
| TC-SEARCH-09 | Verify combined filtering (cuisine + ingredient + allergy) | 1. Select Cuisine = Thai.<br>2. Ingredient = chicken.<br>3. Allude Allergen = gluten.<br> 4. Click “Search”. | Thai, chicken, gluten-free. | Only recipes meeting all selected criteria appear. It shows all recipes even including the ones with "gluten" | Allergen filter feature not working correctly at the moment. | Fail |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|----------------|------------------------------------|-----------------------------------------------------------------|-----------|-----------------------------------------------------------------------------|----------------|-----------|
| TC-SEARCH-10 | Verify “Clear All Filters” resets search | 1. Apply any filters.<br>2. Click “Clear All Filters”. | — | Filters reset and full, unfiltered recipe list is shown. | -- | -- |
| TC-SEARCH-10 | Verify “Clear All Filters” resets search | 1. Apply any filters.<br>2. Click “Clear All Filters”. | N/A | Filters reset and full, unfiltered recipe list is shown. | Filters reset and full, unfiltered recipe list was shown. | Pass |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|----------------|--------------------------------------------|---------------------------------------------------------------------------------------------|-------------------|-------------------------------------------------------------|-----------------------------------------------|-----------|
| TC-SEARCH-11 | Verify exclude ingredient filter works | 1. Go to Search page.<br>2. Enter "basil" in Exclude Ingredients field.<br>3. Click Search. | Exclude = basil | Only recipes **without basil** appear in the results. | Only recipes without basil appeared. | Pass |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|----------------|---------------------------------------------------------|---------------------------------------------------------------------------------------------|--------------------------------------|-------------------------------------------------------------------------------|---------------------------------------|-----------|
| TC-SEARCH-12 | Verify include + exclude contradiction returns no results | 1. Go to Search page.<br>2. Enter "basil" in Include field.<br>3. Enter "basil" in Exclude field.<br>4. Click Search. | Include = basil, Exclude = basil | No recipes should appear due to contradictory filter conditions. | No recipes were shown as expected. | Pass |
User Story 2: As HomeCookHerin, I want to rate and comment on recipes I have tried so that I can provide feedback to other cooks and mark which recipes I enjoyed.
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|---------------|--------------------------------------|------------------------------------------------------------------------------|-----------------------|-------------------------------------------------------------------------------|----------------|-----------|
| TC-RATE-01 | Submit a valid 5-star rating | 1. Open a recipe.<br>2. Select 5 stars.<br>3. Click “Submit Rating”. | Rating = 5 | Rating saved; average rating updates; user rating displayed correctly. | -- | -- |
| TC-RATE-01 | Submit a valid 5-star rating | 1. Open a recipe.<br>2. Select 5 stars.<br> | Rating = 5 | Rating saved; average rating updates; user rating displayed correctly. | Rating saved, average rating updates and user rating displayed correctly. | Pass |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|---------------|--------------------------------------|------------------------------------------------------------------------------------------|-----------------------|-------------------------------------------------------------------------------|----------------|-----------|
| TC-RATE-02 | Update an existing rating | 1. Open recipe previously rated.<br>2. Change from 3 to 4 stars.<br>3. Click submit. | Old=3, New=4 | Rating updates and average rating recalculates correctly. | -- | -- |
| TC-RATE-02 | Update an existing rating | 1. Open recipe previously rated.<br>2. Change from 3 to 4 stars.<br>3. Click submit. | Old=3, New=4 | Rating updates and average rating recalculates correctly. | Rating updates and average rating recalculates correctly. | Pass |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|---------------|--------------------------------------|-------------------------------------------------------------------|-----------|--------------------------------------------------|----------------|-----------|
| TC-RATE-03 | Rating without logging in | 1. Log out.<br>2. Open recipe.<br>3. Attempt to rate. | -- | System prompts user to log in before rating. | -- | -- |
| TC-RATE-03 | Rating without logging in | 1. Log out.<br>2. Open recipe.<br>3. Attempt to rate. | N/A | System prompts user to log in before rating. | System prompts user to log in before rating. | Pass |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|---------------|--------------------------------------|--------------------------------------------------------------------------------------------------------|---------------|----------------------------------------------------------------------------------|----------------|-----------|
| TC-RATE-04 | Prevent rating submitted twice | 1. Submit rating once.<br>2. Attempt to submit another rating without refreshing or editing. | Rating = any | System prevents duplicate submission or forces update instead of duplicate. | -- | -- |
| TC-RATE-04 | Prevent rating submitted twice | 1. Submit rating once.<br>2. Attempt to submit another rating without refreshing or editing. | Rating = any | System prevents duplicate submission or forces update instead of duplicate. | It forces updates of the ratings | Pass |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|---------------|--------------------------------------|------------------------------------------------------------------------------------------------------|-----------------------|---------------------------------------------------|----------------|-----------|
| TC-RATE-05 | Average rating recalculates correctly | 1. A rates 5.<br>2. B rates 3.<br>3. C rates 4.<br>4. Reload page. | Ratings=[5,3,4] | Average rating shown as **4.0**. | -- | -- |
| TC-RATE-05 | Average rating recalculates correctly | 1. A rates 5.<br>2. B rates 3.<br>3. C rates 4.<br>4. Reload page. | Ratings=[5,3,4] | Average rating shown as **4.0**. | Average rating shown as 4.0. | Pass |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|---------------|---------------------------------|------------------------------------------------------------------------|--------------------------|----------------------------------------------------------------------|----------------|-----------|
| TC-COM-01 | Comment successfully | 1. Scroll to comments.<br>2. Type a comment.<br>3. Click “Post”. | "This was delicious!" | Comment appears with username + timestamp. | -- | -- |
| TC-COM-01 | Comment successfully | 1. Scroll to comments.<br>2. Type a comment.<br>3. Click “Post”. | "This was delicious!" | Comment appears with username + timestamp. | Comment appeared with username + timestamp. | Pass |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|---------------|---------------------------------|-------------------------------------------------------------------------------|-----------|---------------------------------------------------|----------------|-----------|
| TC-COM-02 | Empty comment submission | 1. Leave comment box empty.<br>2. Click “Post”. | "" | Error displayed: “Comment cannot be empty.” | -- | -- |
| TC-COM-02 | Empty comment submission | 1. Leave comment box empty.<br>2. Click “Post”. | "" | It doesn't comment. | Nothing comments. | Pass |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|---------------|---------------------------------|---------------------------------------------------------------------------------------------------------|------------------------------|----------------------------------------------------------------|----------------|-----------|
| TC-COM-03 | Multiple users commenting | 1. User A comments.<br>2. Logout.<br>3. User B logs in and comments. | A:"Good", B:"Great" | Both comments appear with correct usernames and timestamps. | -- | -- |
| TC-COM-03 | Multiple users commenting | 1. User A comments.<br>2. Logout.<br>3. User B logs in and comments. | A:"Good", B:"Great" | Both comments appear with correct usernames and timestamps. | Both comments appeared with correct usernames and timestamps. | Pass |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|---------------|---------------------------------|-------------------------------------------------------------------|-----------|-------------------------------------------------------------------|----------------|-----------|
| TC-COM-04 | Like a comment | 1. Find existing comment.<br>2. Click “Like”. | Like +1 | Like count increases; like button becomes active/highlighted. | -- | -- |
| TC-COM-04 | Like a comment | 1. Find existing comment.<br>2. Click “Like”. | Like +1 | Like count increases; like button becomes active/highlighted. | Like button works. | Pass |
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Results | Actual Results | Pass/Fail |
|---------------|---------------------------------|-------------------------------------------------------------------|------------|---------------------------------------------------------------------|----------------|-----------|
| TC-COM-05 | Dislike a comment | 1. Find existing comment.<br>2. Click “Dislike”. | Dislike+1 | Dislike count increases; dislike button shows active state. | -- | -- |
| TC-COM-05 | Dislike a comment | 1. Find existing comment.<br>2. Click “Dislike”. | Dislike+1 | Dislike count increases; dislike button shows active state. | Dislike button works. | Pass |
......
......