| **TC30 – US3** | View chef score breakdown | Home → Click “\>” | — | Chef score + graph displayed | Score + pie graph shown | Pass |
| **TC30 – US3** | View chef score breakdown | Home → Click “\>” | — | Chef score + graph displayed | Score + pie graph shown | Pass |
## Testcases - Aron
## **User Story 3 – AI Recipe Generation (10 Test Cases)**
### 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-039 – US4** | Favourites show recipe details | Open Favourites page | recipeId: random | Displays title, image, cook time, ingredients | --- | --- |
| **TC-TT-040 – US4** | Backend failure handling | Simulate server error → Add favourite | recipeId: 300 | Error toast: "Unable to save favourite" | --- | --- |
**3. Inspection/Review****- As a group, customize the code inspection document/checklist (which will be provided in the lecture) and add other appropriate items to fit your product (giving us an exact replica of the checklist will be a zero).**
**3. Inspection/Review****- As a group, customize the code inspection document/checklist (which will be provided in the lecture) and add other appropriate items to fit your product (giving us an exact replica of the checklist will be a zero).**
**_General_**
**_General_**
...
@@ -658,6 +698,8 @@ As GrandGourmetGary, I want to see how my recipes are performing compared to oth
...
@@ -658,6 +698,8 @@ As GrandGourmetGary, I want to see how my recipes are performing compared to oth
| Implementation | Do loops/branches terminate correctly? | Yes. |
| Implementation | Do loops/branches terminate correctly? | Yes. |
| Implementation | Are if-else/switch structures complete and readable? | Yes, with comments when needed |
| Implementation | Are if-else/switch structures complete and readable? | Yes, with comments when needed |
**_Hiba's Report to Herin_**
**_Hiba's Report to Herin_**
| Category | Inspection Question | Answer |
| Category | Inspection Question | Answer |
...
@@ -705,49 +747,60 @@ As GrandGourmetGary, I want to see how my recipes are performing compared to oth
...
@@ -705,49 +747,60 @@ As GrandGourmetGary, I want to see how my recipes are performing compared to oth
| **Implementation** | Do loops/branches terminate correctly? | Yes |
| **Implementation** | Do loops/branches terminate correctly? | Yes |
| **Implementation** | Are if-else/switch structures complete and readable? | Yes |
| **Implementation** | Are if-else/switch structures complete and readable? | Yes |
**_Aron's Report to Hooriya_**
## **Aron – Code Review for Hooriya**
**_Hooriya's Report to Aron_**
| Category | Inspection Question | Answer |
| Category | Inspection Question | Answer |
| ------ | ------ | ------ |
|----------|---------------------|--------|
| **General** |Does the code work as intended for the feature being reviewed? | Yes, login, logout, signup and auth all work as expected |
| **General** | Does the code work as intended for the feature being reviewed (e.g., search, filters, comments, recipe upload, leaderboard)? | Yea |
|**General** |Is the code easy to read and understand? | Mostly yes, well structured and readable |
| **General** | Is the code easy to read and understand without relying on external explanations? | Yea |
| **General** |Does the code follow team coding conventions? |Yes its consistent throughout |
| **General** |Any repeated logic that should be moved to shared utilities? | |Yes, email/username/password validation appears multiple times and should be moved to a helper file.
| **General** | Is there any repeated logic that could be moved into shared utilities (e.g., API error handlers, database queries, form validation)? | Nah |
| **General** |Is the component or function modular? | Yes |
| **General** | Is the component or function modular, or is it doing more than one responsibility? | Modular |
|**General** | Any unnecessary global variables or shared state? |No, everything is local to functions. |
| **General** | Are there unnecessary global variables or shared state values? | Nah |
|**General** |Any commented-out code that should be removed? | A few bits in frontend but the rest is fine |
| **General** | Is there commented-out code that should be removed? | Yea |
| **Implementation** | Do loops/branches terminate correctly? | Yea |
| **Implementation** | Are conditionals readable and complete? | Yea |
**_Hooriya's Report to Aron_**
**4. Contributions and Action Plan**
**4. Contributions and Action Plan**
...
@@ -758,7 +811,7 @@ Team Contribution Breakdown
...
@@ -758,7 +811,7 @@ Team Contribution Breakdown
| Member | Work Completed | Contribution % |
| Member | Work Completed | Contribution % |
|--------|----------------|----------------|
|--------|----------------|----------------|
| Amna Shakeel | Worked on Deliverable 3: made test cases for my user stories, including search/filtering and commenting and rating. Tested these cases manually. Reviewed the searching/filter for Hiba. | 20% |
| Amna Shakeel | Worked on Deliverable 3: made test cases for my user stories, including search/filtering and commenting and rating. Tested these cases manually. Reviewed the searching/filter for Hiba. | 20% |
| John Aron Calderon | | 20% |
| John Aron Calderon | worked on middleware, fixed many auth bugs, error handling, front end ui and other helper functions and logic. | 20% |
| Hiba Ajaz | reviewed the Recipe creation/editing/deletion, AI recipe generation, frontend recipe forms, image upload handling, recipe display pages. Wrote tests for teh search and filter user stories. | 20% |
| Hiba Ajaz | reviewed the Recipe creation/editing/deletion, AI recipe generation, frontend recipe forms, image upload handling, recipe display pages. Wrote tests for teh search and filter user stories. | 20% |
| Herin Patel | reviewed the comment and rating section for Amna .wrote and tested the testcases for 3 of my user stories. | 20% |
| Herin Patel | reviewed the comment and rating section for Amna .wrote and tested the testcases for 3 of my user stories. | 20% |
| Hooria Fatima | . | 20% |
| Hooria Fatima | . | 20% |
...
@@ -778,3 +831,5 @@ Team Contribution Breakdown
...
@@ -778,3 +831,5 @@ Team Contribution Breakdown
Amna's: I used ChatGPT to help format the test cases, clean up wording, and organize sections of this document but all final content reflects my own work and decisions.
Amna's: I used ChatGPT to help format the test cases, clean up wording, and organize sections of this document but all final content reflects my own work and decisions.
Herin's: I used AI to review and help me in formatting my testcases, i also used it to format my suggestion. Wherever I used AI I made sure to review it properly first and tahn add it.
Herin's: I used AI to review and help me in formatting my testcases, i also used it to format my suggestion. Wherever I used AI I made sure to review it properly first and tahn add it.
Aron: I used AI to review and format everything as well as help me brainstorm a few of the test cases.