@@ -502,19 +502,19 @@ As GrandGourmetGary, I want to see how my recipes are performing compared to oth
### User Story:
As Campus Chris, I want to enter specific ingredients I already have, then the system should automatically (using AI) generate a new recipe that adapts to those ingredients, customizing quantities, cooking time, and any missing items with substitutions.
| Test Case ID | Test Scenario | Test Steps | Test Data | Expected Result | Actual Result | Pass/Fail |
| TC-TT-027 – US3 | AI handles long ingredient list | Enter 12 ingredients → Generate | ingredients: long list | Valid structured recipe still produced | --- | --- |
| TC-TT-021 – US3 | AI recipe generation happy path | Enter "chicken, rice, garlic" → Click Generate Recipe | ingredients: chicken, rice, garlic | AI returns full customized recipe (quantities + cooking time) | AI returned full customized recipe with quantities & time | Pass |
| TC-TT-022 – US3 | Validate ingredient field required | Leave ingredient field empty → Click Generate | ingredients: "" | Error: "Please enter at least one ingredient" | Error displayed: "Please enter at least one ingredient" | Pass |
| TC-TT-023 – US3 | AI handles 1 ingredient | Enter "eggs" → Generate | ingredients: eggs | AI generates simple recipe or suggests missing items | AI generated simple recipe and suggested missing items | Pass |
| TC-TT-024 – US3 | AI generates substitutions | Enter "pasta, tomato" → Generate | ingredients: pasta, tomato | At least 1 substitution shown | Substitution suggestions were displayed | Pass |
| TC-TT-025 – US3 | AI customizes cooking time | Enter ingredients → Generate | ingredients: ground beef, onions | Output includes cooking duration | Output included a clear cooking duration | Pass |
| TC-TT-027 – US3 | AI handles long ingredient list | Enter 12 ingredients → Generate | ingredients: long list | Valid structured recipe still produced | AI generated a structured recipe successfully | Pass |
| TC-TT-029 – US3 | AI handles rare ingredients | Enter "saffron" → Generate | ingredients: saffron | AI gives recipe or alternatives | AI produced a recipe and offered alternatives | Pass |
| TC-TT-030 – US3 | Displays loading state during AI fetch | Enter ingredients → Generate | ingredients: chicken, onions | Shows "Loading…" animation during fetch | Loading animation displayed during AI fetch | Pass |
## **User Story 4 – Favourite Recipes (10 Test Cases)**