-
Notifications
You must be signed in to change notification settings - Fork 27
Test case portfolio v1.0 and 2.0
| S.No | Test case ID | Test case name |
|---|---|---|
| 1 | MP-Login-001 | Login with meal designer credentials |
| 2 | MP-MPCalendar-002 | View a specific Meal Plan in Desktop view |
| 3 | MP-SelectMeal-003 | Select a meal based on the search criteria. |
| 4 | MP-AddMeal-004 | Add meals in the specific category of meal plan |
| 5 | MP-DeleteMeal-005 | Delete meals in the specific category of meal plan |
| 6 | MP-EditMealPlanName-006 | Select User |
| 7 | MP-SelectUser-007 | Select User |
| 8 | MP-AddTag-008 | Add tags to the meal plan |
| 9 | MP-AddDescription-009 | Description of the meal plan |
| 10 | MP-Logout-010 | Check whether the user can log out successfully |
| 11 | MP-Menu bar-011 | Check the menu is displayed properly on the top of the web page |
| 12 | MP-DeleteMeasureTable-033 | Verify deletion of measure table |
| S.No | Test case ID | Test case name |
|---|---|---|
| 1 | MP-Login-001 | Login with meal designer credentials |
| 2 | MP-MPCalendar-002 | View a specific Meal Plan in Desktop view |
| 3 | MP-SelectMeal-003 | Select a meal based on the search criteria. |
| 4 | MP-AddMeal-004 | Add meals in the specific category of meal plan |
| 5 | MP-DeleteMeal-005 | Delete meals in the specific category of meal plan |
| 6 | MP-EditMealPlanName-006 | Select User |
| 7 | MP-SelectUser-007 | Select User |
| 8 | MP-AddTag-008 | Add tags to the meal plan |
| 9 | MP-AddDescription-009 | Description of the meal plan |
| 10 | MP-Logout-010 | Check whether the user can log out successfully |
| 11 | MP-Menu bar-011 | Check the menu is displayed properly on the top of the web page |
| 12 | MP-MPCalendar-012 | User should show 'No user assigned' |
| 13 | MP-MPSearch-013 | Search for a meal plan based on any word of the name |
| 14 | AA-Autocomplete-014 | Enable autocomplete feature for Products and Meals fields in admin app measure form |
| 15 | MP-FilterByTags-015 | Filter meal plans by tags |
| 16 | AA-MultipleTags-016 | Verify creation of multiple tags for a product in Admin app product page |
| 17 | MP-CalenderUsername-017 | Verify display of "no user assigned" on meal plan calendar when no user is assigned |
| 18 | AA-DeleteMeal-018 | Verify deletion of a meal from the meals table without foreign key constraint error |
| 19 | MP-LoginErrorDisplay-019 | Verify display of error message when hitting enter with invalid credentials in the login page |
| 20 | MP-DuplicateMealPlan-020 | Create a duplicate meal plan from an existing meal plan |
| 21 | MP-FilterByTagMeals-021 | Filter meals by tags on the meals page |
| 22 | AA-ProductDropdownDisplay-022 | Verify all products are displayed in the product dropdown when creating a measure in Admin app |
| 23 | AA-SearchBarProducts-023 | Verify the presence and functionality of the search bar in Products section of the Admin App |
| 24 | MP-IconHoverColor-024 | Verify the hover effect of the trash can and shopping cart icons in the meal plans page |
| 25 | MP-ConfirmDelete-025 | Confirm deletion of a meal plan when clicking the trash icon |
| 26 | MP-FavouritesHover-026 | Verify favorites/heart icon turns red on mouse hover |
| 27 | MP-ProductQuantityUpdate-027 | Verify updating the Quantity and Unit for the product Lettuce |
| 28 | AA-SearchBarMeals-028 | Verify the presence and functionality of the search bar in the Admin App (Meals) |
| 29 | MP-InsertTooltip-029 | Insert tooltip for name and description on the meal plan creation page |
| 30 | MP-FilterByTags-030 | Verify automatic listing of meal plan tags for filtering |
| 31 | MP-Template-031 | Verify the functionality of creating and filtering meal plan templates |
| 32 | MP-AddPrepCookPortions-032 | Verify addition of prep time, cook time, and portions to the Meal UI |
| 33 | MP-DeleteMeasureTable-033 | Verify deletion of measure table |
| 34 | AA-ProductKeywordsSpaces-034 | Verify ability to use spaces in product keywords and tags in Admin UI |
| 35 | AA-IngredientCreationError-035 | Verify successful creation of ingredients in Admin UI without error |
| 36 | AA-ImageVideoEmbedding-036 | Verify embedding of images and videos for meals in the meal planner interface |
| 37 | AA-IngredientCodeUnique-037 | Ensure ingredient code is unique for each meal |
| 38 | AA-MealsShowPage-038 | Verify the presence of a show page and show button for meals in the admin UI, and ensure that edit redirects to the show page instead of the meals list |
| 39 | MP-MyFavouriteMeal-039 | Displaying user's favorite meals |
| 40 | MP-UpdateMealTable-040 | Update meal table with prep time, cook time, and portions |
| 41 | AA-UpdateIngredientTable-041 | Verify Admin UI changes for ingredient table and product table |
| 42 | AA-MealDesignerModify-042 | Verify meal designer's ability to modify meals, products, and nutrition using admin UI |
| 43 | AA-AssignMealIngredientCode-043 | Verify the ability to assign a unique code to meals and ingredients |
| 44 | MP-TagsOrderedAlphabetical-044 | Verify Tags in meal plan and meal are ordered in alphabetical order |
| 45 | AA-FieldNamesChange-045 | Verify the consistency of field names for recipes and ingredients with the database schema |
| 46 | AA-CreateUser-046 | Verify the ability to create a user with the role of 'meal designer' |
| 47 | AA-ModifyMeal-047 | Verify the ability to modify meals in the Admin UI |
| 48 | AA-ShowMeal-048 | Verify the ability to view meal details in the Admin UI |
| 49 | AA-ShowIngredients-049 | Verify the ability to view ingredients in the Admin UI |
| 50 | AA-CreateIngredient-050 | Verify the ability to create a new ingredient in the Admin UI |
| 51 | AA-EditIngredient-051 | Verify the ability to edit an existing ingredient in the Admin UI |
| 52 | AA-MatchIngredientToProduct-052 | Verify the ability to match an ingredient to a product in the Admin UI |
| 53 | AA-DeleteIngredient-053 | Verify the ability to delete an existing ingredient in the Admin UI |
| 54 | AA-CreateProduct-054 | Verify the ability to create a new product in the Admin UI |
| 55 | AA-EditProduct-055 | Verify the ability to edit an existing product in the Admin UI |
| 56 | AA-DeleteProduct-056 | Verify the ability to delete an existing product in the Admin UI |
| 57 | AA-CreateUserAsAdmin-057 | Verify the ability to create a user with the role of 'meal designer' as an admin |
| 58 | AA-AssignRoleMealDesigner-058 | Verify the ability to assign the role of 'meal designer' to a user as an admin |
| 59 | AA-AssignRoleAdmin-059 | Verify the ability to assign the role of 'admin' to a user as an admin |
| 60 | AA-AssignRoleClient-060 | Verify the inability to assign the role of 'client' to a user as an admin |
| 61 | AA-ClientLoginForbidden-061 | Verify the inability of a user with the role of 'client' to login to the Admin UI |
| 62 | AA-SearchProductBug-062 | Verify the functionality of the search feature for products in the admin UI |
| 63 | MP-ViewMealWithoutLogin-063 | Viewing a specific meal without logging in |
| 64 | MP-DisplayTemplates-064 | Displaying templates along with all meal plans |
| 65 | AdminUI-SearchMeals-065 | Verify functionality of search for meals in Admin UI |
| 66 | AdminUI-ResetPassword-066 | Verify functionality of reset password for users in Admin UI |
| 67 | MP-RemoveFavoriteIcon-067 | Verify removal of favorite icon from meal plan card |
| 68 | MP-IngredientsTable-068 | Verify visibility of ingredients in Meal page |
| 69 | AA-MealInIngredientPage-069 | Verify display of meal name in ingredient page of Admin UI |
| 70 | MP-NutritionData-070 | Display nutrition data of meal in the Mealplanner UI |
| 71 | MP-MealPlanAvatar-071 | Visual differentiation for Meal Plan Card |
| 72 | MP-MatchProductsToIngredient-072 | Match multiple products to an ingredient |
| 73 | MP-CreateTwoTemplates-073 | Verify creating more than one meal plan or template without the need to refresh the page |
| 74 | MP-DisplayCivicTechLogo-074 | Verify displaying Civic Tech logo and name in the printout of the recipe (meal) |
| 75 | AA-CreateEmptyMeal-075 | Verify empty meal cannot be created |
| 76 | MP-TagsAlignedCorrectly-076 | Verify tags are being aligned in multiple lines. |
| 77 | MP-CheckPrimaryIngredient-077 | Verify the primary ingredient are displayed when there are substitutes for ingredients in a meal. |
| 78 | AA-SearchProductByAnyWord-078 | Verify Search product is working for any word in the product name. |
| 79 | MP-DisplaySubstituteReason-079 | Verify display the reason for substitute ingredient. |
| 80 | AA-PriceAndQuantityType-080 | Verify the type of the price and the quantity is number. |
| 81 | AA-BackToMeal-081 | Verify the ingredient page has a link back to Meal from the meal name |
| 82 | AA-MealNameOnIngredientPage-082 | Verify the ingredient page has the meal name |
| 83 | AA-TagSpaces-083 | Verify ability to use spaces in tags and tags in Admin UI |
| 84 | MP-CivictechLogOnMealPlan-084 | Verify print meal plan page has a civictech logo |
| 85 | MP-Favoritefeatureformeal-085 | Verify meals have favorite feature |
| 86 | MP-SortingFavoriteMeals-086 | Verify meals have sorting feature with favorite category |
| 87 | AA-CreateIngredientButton-087 | Verify the exciting of CREATE button for Ingredients when there are no ingredients yet |
| 88 | MP-SpaceBeforeMethod-088 | Verify the ingredients and method are displayed without unnecessary blank space. |
| 89 | AA-TipsInRichText-089 | Verify the tips have rich text format. |
| 90 | AA-UnitDisplayedInProductMatch-090 | Verify the Unit is displayed next to the quantity in the Products Match view. |
| 91 | AA-RegisterNewUser-091 | Verify the admin can register new user. |
| 92 | MP-TermsPage-092 | Verify the new user must agree on terms and conditions |
| 93 | MP-RejectConditions-093 | Verify the user who reject the conditions doesn't have access to the meal plans |
| 94 | MP-AcceptConditions-094 | Verify the user who accept the conditions have the access to the meal plans |
| 95 | MP-CopyIconForClient-095 | Verify the client user can copy a meal plan template. |
| 96 | AA-CreateSubstituteIngredient-096 | Verify ability to create substitute ingredient relating to a primary ingredient |
| 97 | MP-StartDateForMealPlan-097 | Verify start date exist on meal plan creation/ edit and meal plan card |
| 98 | MP-DuplicateMealPlanForClient-098 | Verify Duplicate meal plan for a client user have the current user assigned |
| 99 | MP-AssignUserForClient-099 | Verify the assign user drop-down is invisible as a client user cannot re-assign plans |
| 100 | MP-ClientCanNotCreateTemplate-100 | Verify The option to 'Create Template' does not appear for the client user. |
| 101 | MP-ShoppingList-101 | Verify shopping list displays all the ingredients, meal it belongs to and product suggestions. |
| 102 | AA-DeleteMeasureTable-102 | Verify there is no Measure section and verify that Ingredients exists under Meals. |
| 103 | AA-NoneCaseSensitiveSearch-103 | Verify the search for product keyword of product is not case-sensitive. |
Login with meal designer credentials
- Check that the login page contains input boxes for Username and Password and with Sign-in button
- Check that the cursor is in the “Username” text box by default on the page load (login page)
- Check that the tab functionality is working by pressing the tab button on the keyboard to move to the Password field from the Username.
- Check that when the user clicks on the show password icon, the user should be able to view the password
- Check that when the user clicks on hide password, the user shouldn't be able to view the password
- Check whether the User is able to log in with an invalid Username and invalid Password
- Check whether the User is able to log in with a Valid Username and an invalid Password
- Check whether the User is able to log in with an invalid Username and Valid Password
- Check whether the User is able to log in with a blank Username or Password
- Check whether the User is able to log in with inactive credentials
- Check whether the User is able to log in when a valid username and password are entered
Users should be able to log in successfully when the valid username and password are entered and view the home page by clicking on the sign-in button and display an error that username/password is wrong when invalid parameters are passed in username or password fields.
View a specific Meal Plan in the Desktop view
- Go to url/mealplan/:id
- Check the meal plan name is displayed in tabular form
- Check whether the 7 days (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday) are listed
- Check the categories Breakfast, Lunch, Dinner, and Snack are displayed
- Check the meals are displayed in a specific category for a particular day. Eg: In Breakfast on Monday, the added meal should be listed.
Meals should be displayed correctly as per the meal plan
Select a meal based on the search criteria.
Pre-requisite: MP-Login-001
- Go to url/mealplan/:id
- Click the search box to input text
- Check when the user starts typing words in the search box, it should suggest words that match typed keywords
- Choose and select from the list of suggested meal catalogue options
- Ensure that the meal is selected from the suggested meal catalogue
- Check whether there is an option to cancel(X mark) the selected meal
- Click on the Cancel button
- Ensure that the meal option is not selected now.
Meals should be selected from the suggested meal catalogue
Add meals in the specific category of the meal plan
Prerequisite: MP-Login-001
- Go to url/mealplan/:id
- Select the meal from the selected meal catalogue
- Drag and drop it in the specific category of meal plan
- Check whether the meal is added to the specific category of meal plan for a particular day. Eg: In the Lunch section for Monday, the selected meal should have been added.
- Check whether the meal added is also added to the database.
Should be able to select the meal from the selected meal catalog and add it to the specific category of the meal plan
Delete meals in the specific category of the meal plan
Prerequisite: MP-Login-001
- Go to url/mealplan/:id
- Verify when the mouse hovers the meal item in a specific category of the meal plan is highlighted with green colour and shows the delete icon or not
- check that the user is able to click on the delete icon/button
- Check that when the user clicks on the delete icon/button then the meal in the specific category of meal plan for a particular day gets deleted. Eg: In the Lunch section for Monday, the selected meal should have been deleted
- Check the meal is also deleted from the database.
Should be to able delete the meal in the specific category of the meal plan when clicking on the delete icon
Select User
Prerequisite: MP-Login-001
- Go to url/mealplan/:id
- Check in the header section, when the user clicks on the meal plan name make sure the previous meal plan name is highlighted.
- Check to make sure it is editable such as "Vegetarian Meal Plan".
- Check to make sure that it is automatically saved in the database.
- Check whether the meal plan name input box accepts alphabets A-Z.
- Check whether the meal plan name input box accepts both upper and lower case alphabets.
- Check whether the meal plan name input box accepts numeric, special characters and symbols.
Expected Behaviour: The user should be able to edit the meal plan name.
Select User
Prerequisite: MP-Login-001
- Go to url/mealplan/:id
- On the header section when Signed in check whether the name of the user such as "Admin" is displayed
- Check that the Dropdown is present in the header section and whether it is Clickable.
- Check that by clicking on the dropdown a list of users is displayed.
- Check whether the dropdown is displaying all the users or only a few as the user clicks on the dropdown.
- Check that the user should be able to select different users such as "meal designer" in the dropdown.
- Check to make sure that the selected user name is automatically saved in the database.
- Check and make sure to scroll down functionality working in the dropdown list and view other user options.
- check that the drop-down list is scrolled down by pressing the Arrow-down key on the keyboard.
- check that the dropdown is not editable.
- check that the dropdown values are accessible and the user is able to select by clicking on specific values in the dropdown by mouse pointer.
Expected Behaviour: Should be able to select the user such as "meal designer" from the dropdown.
Add tags to the meal plan
Prerequisite: MP-Login-001
- Go to url/mealplan/:id
- Check and make sure that on the header section, there is an arrow key pointing downwards by default.
- Click on the arrow key pointing downwards to expand the view to display the description and add tag details.
- When the view is in expanded form as that of an arrow turning upwards check the add tag input box is displayed and if it's clickable.
- Click on the input textbox to enter the required text
- Check whether it takes only alpha characters(A to Z).
- Check whether it takes Numeric characters (numbers 0-9)
- Make sure that after entering characters and when you click enter, a tag is added to the meal plan with the text that has been input in step 6
- Check to make sure that it is automatically saved in the database.
- Check whether there is an option to delete(X mark) the selected tag.
- Click on the delete button to delete the tag.
- Check to make sure that the tag is also deleted from the database.
- Check and make sure the arrow now pointing upwards and when clicking on it should collapse the view and hide the description and tags
It should allow only Alphabets and Should be able to add tags to the meal plan and when clicked delete, the selected tag should be deleted.
Description of the meal plan
Prerequisite: MP-Login-001
- Go to url/mealplan/:id
- Check and make sure that on the header section, there is an arrow key pointing downwards by default.
- Click on the arrow key pointing downwards to expand the view to display the description and add tag details.
- When the view is in expanded form as that of an arrow turning upwards check the description input box is displayed and if it's clickable.
- Check whether the description input box accepts alphabets A to Z.
- Check whether the description input box accepts both upper and lower-case alphabets.
- Check the maximum and minimum character length of the description box.
- Check whether the description box accepts numeric, special characters and symbols.
- Check to make sure that it is automatically saved in the database.
- Check whether the user is able to view the description, after the user gets logged out and sign-in again.
- Check and make sure the arrow now pointing upwards and when clicking on it should collapse the view and hide the description and tags
Expected Behaviour: The user should be able to click on the Description input box and be able to enter both Alphanumeric characters and the user should be able to view the saved description after the user logins again
Check whether the user can log out successfully
Prerequisite: MP-Login-001
- Go to url/mealplan/:id
- Check after successful login such as "Admin", the logout button is visible on the top right corner of the webpage.
- Check whether the logout button is clickable or not.
- Check whether the user is able to log out successfully by clicking on the logout button.
- After successful logout users should be able to view the sign-in page of the meal planner website.
- After logout check whether the user is able to log in again by clicking on the back button on the sign-in page of the meal planner website.
- Check by logging into more than one browser and log out from any of them and check whether other accounts are properly working or all get logged out.
- Check the logout option should not be visible till the user is logged in.
- After logging in with the correct user credentials, close the browser by clicking on (X) and again reopen the browser and check whether the user is logged in or automatically logged out from the meal planner website.
The user should be able to log out successfully by clicking on the logout button.
Check the menu is displayed properly on the top of the web page
Prerequisite: MP-Login-001
- Go to url/mealplan/:id
- Check the menus are displaying properly without any congestion and properly displayed.
- Check whether the menu is adjusting automatically or not based on the number of menus.
- Check whether the menu item is clickable.
- When the user clicks on the menu item such as "Plans", the user should view the "Plans" web page.
- Check "Good Meal Plan" logo is properly visible on the menu bar of the web page.
When a user clicks on the menu item such as "Plans", a user should be able to view the "Plans" web page.
User not assigned should be shown as text in the meal calendar
Pre-requisite: MP-Login-001
- Go to '/mealplans'
- Click on 'Create Meal Plan'
- Enter the meal plan name 'Veg' and do not assign a user
- Click on the created meal plan
- In the meal plan calendar view, notice there is no user field next to the meal plan name.
Search for a meal plan based on any word of the name
- Pre-requisite: MP-Login-001
- Go to '/mealplans'
- Go to the ‘Select Meal from the list’ section of the page
- Locate the search bar designated for searching meal plans.
- Enter one or more characters from a word from the name of any existing meal plan into the search bar.
- Check whether the search results include the meal plan whose name contains the entered word.
- Verify that the search results display relevant meal plans matching the search criteria.
- Select any of the displayed meal plans from the search results.
- Add the meal to the proper timeslot of the Meal Plan table
- Confirm that the selected meal plan is navigated to and displayed on the screen.
Upon entering a word from the name of any existing meal plan into the search bar and initiating the search, the system should return relevant search results containing meal plans whose names contain the entered word. Users should be able to select a meal plan from the search results, and upon selection, by adding the meal to the proper timeslot of the Meal Plan table the corresponding meal plan should be displayed on the screen.
Enable autocomplete feature for Products and Meals fields in admin app measure form
- Pre-requisite: MP-Login-001.
- Log in to the admin app (AA).
- From the Local Navigation Bar, access to the "Measures" form.
- Navigate to the Measure form in the admin app.
- Go to \Create
- From the input blocks in the form, locate the "Products" and "Meals" fields.
- Start typing in the Products or Meals field.
- Check whether the autocomplete feature suggests appropriate items based on characters of the user input.
- Verify that the dropdown displays all available products or meals matching the entered text.
- Select a product or meal from the autocomplete suggestions.
- Confirm that the selected item is populated in the corresponding field of the measure form.
When users fill in step 9, when the Products or Meals fields in the admin app measure form, the autocomplete feature should suggest appropriate items based on the user input. Users should be able to select the correct product or meal from the autocomplete suggestions, improving the user experience and accuracy of data entry.
**Failed Case: ** Autocomplete feature suggests inappropriate items when user types more than one character. For example trying to find "Onion" by typing "ONI", it suggests "Iodized Salt Table".

Filter meal plans by tags
- Pre-requisite:MP-Login-001.
- Navigate to the meal plans section.
- Locate the "Filter by tags" view.
- Check whether the list of unique meal plan tags is automatically displayed.
- Verify that the listed tags include all tags associated with existing meal plans.
- Select one of the displayed tags from the list.
- Confirm that the meal plans displayed are filtered based on the selected tag.
- Select another tag from the list.
- Verify that the meal plans displayed are now filtered based on both selected tags.
- Clear the selected tags.
- Confirm that all meal plans are displayed again without any filtering.
Upon accessing the "Filter by tags" view in the meal planner application, users should be able to view a list of unique meal plan tags automatically. The list should dynamically update to reflect any changes in meal plans, such as creation or deletion, ensuring that all tags associated with existing meal plans are accurately displayed. Users should be able to filter meal plans by selecting one or more tags from the list, with the displayed meal plans updating accordingly. Additionally, users should have the option to clear selected tags to view all meal plans without filtering.
Verify creation of multiple tags for a product in Admin app product page
- Pre-requisite: MP-Login-001.
- Log in to the admin app (AA).
- Navigate to the 'products/create' page or edit an existing product.
- Scroll down to the 'tags' entry field.
- Enter more than one tag separated by commas (e.g., "vegan,grocery") into the 'tags' field.
- Click the 'Save' button to save the product.
- Verify that the product is saved successfully without any error messages.
- Navigate back to the product details page or search for the product in the product list.
- Check the tags associated with the product.
- Confirm that all tags entered in the 'tags' field during creation/editing are displayed and associated with the product.
When multiple tags are entered into the 'tags' field for a product during creation or editing, the system should correctly create and associate all tags with the product. Each tag entered should be treated as a separate tag, and the tags displayed for the product should reflect all entered tags without any loss or truncation.

Verify display of "no user assigned" on meal plan calendar when no user is assigned
- Pre-requisite: MP-MPCalendar-002.
- Navigate to the meal plan calendar page where meal plans are displayed.
- Go to \Create.
- Create a new meal plan with a user assigned to it.
- Verify that on the meal plan calendar, the username associated with the meal plan is displayed.
- Go to \Create.
- Create a new meal plan without assigning any user to it.
- Check for a meal plan that has no user assigned to it.
- Refresh or navigate back to the meal plan calendar page.
- Confirm that "no user assigned" is displayed instead of the username.
When a meal plan has no user assigned to it, the meal plan calendar should display "no user assigned" instead of a username. This ensures clarity and indicates that the meal plan is not assigned to any specific user. Upon assigning a user to the meal plan, the respective username should be displayed on the calendar.
Passed all the steps except the step 10. Instead of display "no user assigned", it doesn't show anything. The screenshot attached the output.

Verify deletion of a meal from the meals table without foreign key constraint error
- Pre-requisite: MP-Login-001.
- Log in to the Admin App (AA).
- Navigate to the Meals section in the Admin App.
- Identify a meal entry in the meals table that you want to delete.
- Click on the checkbox next to the meal entry to select it for deletion.
- Click on the 'Delete' button to initiate the deletion process.
- Verify that the system does not display any error message related to foreign key constraint violations.
- Confirm that the selected meal entry is deleted from the meals table.
- Refresh the page or navigate back to the meals table to ensure that the deleted meal entry is no longer present.
Upon selecting and deleting a meal entry from the meals table, the system should successfully delete the entry without encountering any foreign key constraint errors. The meal entry should be removed from the meals table as expected.
Passed.

After deleting the meal.

Verify display of error message when hitting enter with invalid credentials in the login page
- Pre-requisite: MP-Login-001.
- The meal planner app should be accessible and running.
- Navigate to the Login page of the meal planner app.
- Enter invalid credentials such as 'admin' for username and 'pass' for password.
- Press the 'Enter' key on the keyboard.
- Check if an error message indicating the login failure due to wrong credentials is displayed.
- Verify that the error message clearly states that "invalid user credentials".
Upon entering invalid credentials and pressing the 'Enter' key, the system should display an error message indicating that the login failed due to wrong credentials. The error message should clearly inform the user about the incorrect credentials entered.
Passed in all steps.

Create a duplicate meal plan from an existing meal plan.
- Pre-requisite: MP-Login-001.
- Navigate to the existing meal plan that you want to duplicate.
- Open the meal plan and review its details.
- Look for an option or button to duplicate the meal plan.
- Click on the duplicate button.
- Provide a new name or identifier for the duplicated meal plan.
- Confirm the duplication process.
- Verify that the duplicated meal plan is created successfully.
- Check that the content of the duplicated meal plan matches the original one.
- Ensure that any assigned tags, descriptions, or other details are also copied to the duplicated meal plan.
When duplicating a meal plan, the system should create an exact replica of the original meal plan, including all its content, tags, descriptions, and other associated details. The duplicated meal plan should have a new identifier to differentiate it from the original, and it should be created successfully without any loss of data.
All steps passed successfully. The duplicated meal plan was created with the expected content and details matching the original meal plan.
Filter meals by tags on the meals page.
- Pre-requisite: MP-Login-001.
- Navigate to the meals page in the meal planner app.
- Look for the filter options menu.
- Check for the presence of the "Filter by tag" option.
- Click on the "Filter by tag" option.
- Verify that a list of available tags is displayed.
- Select one or more tags from the list.
- Confirm the selection.
- Check that the meals displayed on the page are filtered based on the selected tags.
- Ensure that only meals tagged with the selected tags are shown, while others are hidden.
When filtering meals by tags, the system should provide a list of available tags to choose from. Upon selecting one or more tags, the meals page should display only those meals that are tagged with the selected tags. This helps users to quickly find meals based on specific criteria and improves navigation within the application.
All steps passed successfully. The meals were filtered based on the selected tags, and only the relevant meals were displayed on the page.
Verify all products are displayed in the product dropdown when creating a measure in Admin app.
Pre-requisite: MP-Login-001
- Go to the 'measures/create' page in the Admin app.
- Click on the dropdown menu for selecting the product.
- Verify that all available products are listed in the dropdown menu.
- Check if the desired product for creating a measure is visible in the dropdown menu.
When creating a measure in the Admin app, the dropdown menu for selecting the product should display all available products. This ensures that users can select the desired product without any limitations.
All steps passed as expected. All available products were displayed in the dropdown menu, allowing the user to select the desired product for creating a measure.
Verify the presence and functionality of the search bar in the Admin App (Products)
Pre-requisite: MP-Login-001
- Open the Admin App and navigate to the Products section.
- Look for the presence of a search bar at the top of the Products page.
- Enter a specific keyword, product name, code, UPC, or tag in the search bar.
- Verify that the products displayed on the page are filtered based on the entered keyword.
- Confirm that the search results are relevant and match the entered criteria.
The Products section in the Admin App should contain a search bar allowing users to search for products by name, code, UPC, or tags. Upon entering a search query, the displayed products should be filtered accordingly, presenting relevant search results to the user.
The test failed. The search bar was present in the Admin App (Products) section, but searching for specific keywords filtered the products inappropriately. Issue #593 addresses it.

Verify the hover effect of the trash can, duplicate, and shopping cart icons in the meal plans page
Related Bug: [BUG] trash can, duplicate, and shopping cart icons not turning green when hovering the mouse over #459
- Pre-requisite: MP-Login-001.
- Open the meal plans page by navigating to '/mealplans'.
- Hover the mouse over the trash can icon.
- Hover the mouse over the shopping cart icon.
- Hover the mouse over the duplicate icon.
- Verify the trash can icon, duplicate icon, and shopping card icon should turn green when the mouse is hovered over it.
- The trash can icon should turn green when the mouse is hovered over it.
- The shopping cart icon should turn green when the mouse is hovered over it.
- The duplicate icon icon should turn green when the mouse is hovered over it.
The test passed as the trash can, duplicate icon, and shopping cart icons changed color to green when hovered over.

When deleting a meal plan from the meal plans page, a confirmation dialogue should be displayed to confirm the action.
- Pre-requisite: MP-Login-001.
- Navigate to the meal plans page '/mealplans'.
- Locate the meal plan you want to delete.
- Click on the trash can icon associated with the meal plan.
A confirmation dialogue should appear, asking the user to confirm the deletion of the meal plan.
The test passed as dialogue appeared, asking the user to confirm the deletion of the meal plan.

Verify favourites/heart icon turns red on mouse hover
- Pre-requisite: MP-Login-001..
- Navigate to the meal plans page.
- Locate the favourites/heart icon.
- Hover the mouse over the favourites/heart icon.
- Observe the colour change of the icon.
When the mouse is hovered over the favourites/heart icon, it should turn red, indicating that it is selected or active.
The test passed as the favourites/heart icon changed color to red when hovered over.

Verify updating the Quantity and Unit for the product Lettuce
Ensure that the product Lettuce is correctly updated to be listed as 1 each in the products table, instead of 3 count.
- Pre-requisite: MP-Login-001.
- Open the Admin App and navigate to the Products section.
- Look for the presence of Lettuce in the Products page.
- Update the quantity and unit, the cost and product link for Lettuce in the recipes_seed.sql file to 1 each.
- Run the seed SQL script to populate the database with the updated data.
- Verify that Lettuce is listed as 1 ea in the products table.
After updating the quantity and unit for Lettuce, it should be correctly listed as 1 ea in the products table.
This test case is marked as obsolete since there is no lettuce in the database to perform the verification.
Verify the presence and functionality of the search bar in the Admin App (Meals)
- Pre-requisite: MP-Login-001.
- Open the Admin App and navigate to the Meals section.
- Look for the presence of a search bar at the top of the Meals page.
- Enter a specific keyword, meal name, category, tag, or any other relevant information in the search bar.
- Verify that the meals displayed on the page are filtered based on the entered keyword.
- Confirm that the search results are relevant and match the entered criteria.
The Meals section in the Admin App should contain a search bar allowing users to search for meals by name, category, tag, or any other relevant information. Upon entering a search query, the displayed meals should be filtered accordingly, presenting relevant search results to the user.
The test passed. The search bar was present in the Admin App (Meals) section, and searching for specific keywords appropriately filtered the meals.

Insert tooltip for name and description on the meal plan creation page
Pre-requisite: MP-Login-001.
- Navigate to the meal plan creation page.
- Locate the input field for entering the meal plan name.
- Hover over the input field to trigger the tooltip.
- Verify that the tooltip suggests a convention for naming the meal plan, such as 'Client # Week #' for admins/designers, or 'Family member name Week #' for users.
- Repeat steps 2-4 for the description input field.
- Verify that the tooltip suggests adding notes based on the discussion with the client about their requirements and suggestions.
When hovering over the input fields for meal plan name and description during creation, tooltips should appear suggesting naming conventions and providing guidance on what to include in the description, tailored to the user's role (admin/designer or user).
Passed.

Verify automatic listing of meal plan tags for filtering
Pre-requisite: MP-Login-001.
- Navigate to the 'Meal plan' page from the navigation bar.
- Click on 'Create meal plan' button.
- Fill the name field with "test2" and tags with 'Keto'.
- Click on 'create' button to create the meal plan
- On the top of the page click on 'tags' radio button to display all the tags.
- Verify that the list of meal plan tags is automatically updated to reflect the changes made in step 1.
After creating or deleting a meal plan, the list of meal plan tags should be automatically updated on the "Filter by tags" view without requiring a page refresh or navigating to a different option.
Passed as the list of meal plan tags automatically updated on the "Filter by tags" view without requiring a page refresh or navigating to a different option.

Verify the functionality of creating and filtering meal plan templates
Pre-requisite: MP-Login-001.
- Log in to mealplaner UI as an admin
- Navigate to the "Meal Plan" from the Navigation bar.
- Click on the "Create Meal Plan" button to create the meal plan.
- select "Create New Template" to save it as a template.
- Fill the input name field for the first meal plan with "template1".
- Click on "save" button.
- Apply a filter to display only the templates.
The meal designer/admin can create a meal plan save it successfully as a template and no user is assigned to it. The meal designer/admin should then be able to filter the meal plans to display only templates, and the list should include the templates created by the meal designer/admin .
Passed as the meal designer/admin is able to create templates and filter the meal plans to display only templates, and the list included the templates created by the meal designer/admin.


Verify addition of prep time, cook time, and portions to the Meal UI
Pre-requisite: MP-Login-001.
- Access to the Meal UI with the ability to view and edit meal details.
- Navigate to the Meal UI page or the page where meal details are displayed.
- Check for the presence of UI elements that display prep time, cook time, and portions for each meal.
- Verify that there are distinct UI elements for displaying prep time, cook time, and portions.
- Create a new meal or edit an existing meal.
- Enter values for prep time, cook time, and portions in the respective UI elements.
- Save the changes to the meal.
- Confirm that the entered values for prep time, cook time, and portions are saved successfully.
- Navigate back to the Meal UI page or refresh the page to view the updated meal details.
- Check that the prep time, cook time, and portions for the meal are displayed correctly in the UI elements.
The Meal UI should include dedicated UI elements for displaying prep time, cook time, and portions for each meal. Users should be able to enter values for these attributes when creating or editing a meal, and the entered values should be saved and displayed accurately in the UI.
Passed.
Delete measure table
Users should be able to delete the measure table to accommodate changes related to the match issue.
Pre-requisite: Go to v1 of the MealPlanner, MP-Login-001.
- Navigate to the measure table section from the shopping list .
- Locate the option to the measure table.
- Confirm the deletion of the measure table.
Upon deletion, the measure table should be successfully removed from the system, allowing for changes related to the match issue.
Passed in V1, not available in v2 as according to the issue #603 Shopping list under the construction.
Verify ability to use spaces in product keywords in Admin UI
Pre-requisite: MP-Login-001
- Access to the Admin UI as an admin.
- In the left navigation menu, select the section "products".
- Click on "Edit" on the left side in "Great Value Parmesan Cheese, 280 g" product.
- Scroll down to the section for Product Keywords.
- Enter a product keyword 'Parmesan cheese'.
- Confirm whether the system allows entering spaces between words in the product keyword field.
In the Admin UI for managing products and tags, users should be able to use spaces in product keywords. Spaces should be accepted and processed correctly without any restrictions, allowing users to input phrases or multi-word descriptors for products. This ensures flexibility and ease of use in managing product information and categorization.
Passed as in the Admin UI for managing products, users could use spaces in product keywords names successfully. Comment : (no spaces after the comma is allowed)

Verify successful creation of ingredients in Admin UI without error
Pre-requisite: MP-Login-001.
- Access to the Admin UI with permissions to manage ingredients.
- Navigate to the Admin UI for managing meals.
- Select a specific meal to which ingredients need to be added.
- Click on the "Ingredients" section within the meal details.
- Click on the "Create" button to add a new ingredient.
- Fill up the required fields with appropriate values, such as ingredient name, quantity, etc.
- Verify that all mandatory fields are properly filled.
- Attempt to save the ingredient by clicking on the "Save" or "Submit" button.
- Confirm whether the system successfully adds the ingredient without displaying any error messages.
- Check if the newly created ingredient appears in the list of ingredients for the selected meal.
In the Admin UI for managing meals, users should be able to create ingredients without encountering any errors. Upon filling up the required fields and saving the ingredient, the system should add it successfully to the meal without any issues. Any error messages or unexpected behavior during ingredient creation should be addressed to ensure smooth functionality of the system.
Passed.
Verify the embedding of images and videos for meals in the meal planner interface.
Pre-requisite: MP-Login-001.
- Access to the Admin UI as an admin.
- In the left navigation menu, select the section "Meals".
- Click on "Create" button on the right corner.
- Fill the name field with "Marinara Sauce".
- Fill the Photo url field with "https://goodmealplan.com/pictures/Marinara%20Sauce.jpg".
- Fill the viedo url field with "https://www.youtube.com/watch?v=q35rhlsJ-v0".
- Click on play button of the embedded video and it should be controlled (played and paused).
- After the video is played click on full screen button of the embedded video and it should be play in full screen. Click back to normal size.
- In the meals list view for the meal with Name en 'Marinara Sauce' see the Photo url column value displayed as a thumbnail.
- In the meals list view for the meal with Name en 'Marinara Sauce' see the video url column value displayed as a embedded video.
- In the meals list view for the meal with Name en 'Marinara Sauce' Clicking on the play button will start displaying the video.
- The displayed video for the meal with Name en 'Marinara Sauce' can be played in full screen and back to normal size.
Test Case Passed.

Ensure ingredient code is unique for each meal
Pre-requisite: MP-Login-001. 1.Go to 'admin' page 2.Click on Meals 3.Select a meal "Amish Pie" 4.Select Ingredients 5.Select the first ingredient and assign code 1. 6.Select another meal 7.Select the first ingredient and assign code 1 8.Throws the error "duplicate key value violates unique constraint "ingredient_code_key"
Ingredient codes should be unique for each meal, preventing the duplication of codes across different meals in the system.
Passed successfully.

Verify the presence of a show page and show button for meals in the admin UI, and ensure that edit redirects to the show page instead of the meals list.
Related Feature: [FEATURE] Meals has a show page and a show button in admin UI and edit redirects to Show instead of meals list #590
Pre-requisite: MP-Login-001.
- Pre-requisite: Access to the Admin UI with permissions to manage meals.
- Navigate to the Admin UI for managing meals.
- Select a specific meal for editing or viewing.
- Confirm the presence of a show button associated with the selected meal.
- Click on the show button to access the show page for the meal.
- Verify that the show page displays all relevant details and attributes of the meal, including its name, description, ingredients, and any other pertinent information.
- If available, navigate back to the list of meals.
- Repeat steps 3-5 for a different meal, ensuring consistency in the presence and functionality of the show button.
- Now, attempt to edit a meal by clicking on the edit button or link.
- After making changes to the meal, save the edits and observe the redirection behavior.
- Confirm whether the edit operation redirects the user to the corresponding show page for the edited meal instead of the meals list page.
- If necessary, navigate back to the list of meals and repeat the edit process for another meal to validate consistency in redirection behavior.
In the Admin UI for managing meals, there should be a dedicated show page for each meal along with a show button for convenient access. When editing a meal, saving the changes should automatically redirect the user to the show page for the edited meal, enhancing user experience by eliminating the need to search for the edited meal again in the meals list.
Passed successfully as there is a dedicated show page for each meal along with a show button for convenient access.

Displaying user's favorite meals
This feature allows users to view their favorite meals easily.
Pre-requisite: MP-Login-001.
- Navigate to the meals page.
- Click on "heart" icon in "Tartare Sauce" to make it a favorite meal.
- Click on "heart" icon in "Corn Fritters" to make it a favorite meal.
- Click on "My Favorites" radio button on the top of the page to filter the meals by displaying your user's favorite meals.
- Verify that "Tartare Sauce" and "Corn Fritters" are displayed without any other meals
- Only the favorite meals of the currently logged-in user should be displayed.
- The favorite meals should be presented in a clear and understandable format.
- Users should be able to easily select or interact with their favorite meals as needed.
Passed as only the favorite meals of the currently logged-in user is displayed.

Update meal table with prep time, cook time, and portions
This feature updates the meal table to include columns for preparation time, cooking time, and portions.
Pre-requisite: MP-Login-001.
- Log in to the application with valid credentials.
- Navigate to the "Meal" section or any relevant page displaying meal information.
- Check for the presence of columns labeled "Prep Time," "Cook Time," and "Portions" in the meal table.
- Verify that the data displayed in these columns corresponds to the preparation time, cooking time, and portions of each meal.
- Ensure that the columns are labeled correctly and clearly visible to users.
The expected behavior is that after the update, the meal table should display three new columns: "Prep Time," "Cook Time," and "Portions." These columns should accurately reflect the preparation time, cooking time, and portions of each meal respectively. The data in these columns should be clearly visible and properly aligned with the corresponding meal entries in the table. Additionally, the labels for these columns should be correctly displayed.
Test case passed: All steps were successfully executed, and the expected behavior was observed.

Verify Admin UI changes for ingredient table and product table
Pre-requisite: MP-Login-001
- Logon to the Admin UI.
- On the top left side of the page, Click on "meals" .
- To create a new meal, click on the "Create" icon on the top right corner.
- Enter the details of a meal such as Name, tag, Portions, Quantity , description, cook time, prep time, etc. Click Save.
- To modify an existing meal, type meal name into the search box. The meal is displayed. click on "show" to navigate to the ingredients table.
- From the Meal search page, Navigate to the ingredient table by clicking the "show" icon at the right of the list.
- Verify that the new ingredient table is displayed with the updated columns as per the solution described in the feature request.
- Verify options to create, edit, and delete columns in the ingredient table.
- Click on Ingredients, verify you can add or modify items on the the table.
- Click on the checkbox on the left of an ingredient to verify the ability to "delete" items from the table.
- Navigate to the product table section in the Admin UI on the top left corner of the page.
- Verify that the product table has a "CREATE" icon on the top right corner of the page.
- Search for a product, click the box next to the product name , verify a red delete icon appears on the top right of the page and an edit icon at the left of the list. This confirms the ability to delete or edit products when required.
The Admin UI should have the create, edit and delete functionalities as stated in request #543. Users should be able to seamlessly create, edit, and delete ingredients and create, edit, and delete products.
Passed.

Verify meal designer's ability to modify meals, products, and nutrition using admin UI
Related Feature: [FEATURE] Meal designer should be able to use admin UI to modify meals, products, nutrition #588
Pre-requisite: MP-Login-001
- Access to the Admin UI with permissions assigned as a meal designer.
- Navigate to the meals section in the Admin UI.
- Verify that as a meal designer, you have access to modify existing meals, including recipes, ingredients, products, and nutrition details.
- Check for options to add, edit, and delete meals.
- Ensure that the Admin UI provides functionality to modify ingredients, products, and nutrition associated with meals.
- Navigate to the products section in the Admin UI.
- Verify that as a meal designer, you can modify existing products used in meal recipes.
- Check for options to add, edit, and delete products.
- Ensure that the Admin UI provides functionality to modify details such as ingredients, nutrition, and availability for products.
- Navigate to the nutrition section in the Admin UI.
- Verify that as a meal designer, you have access to modify nutrition information for meals and products.
- Check for options to add, edit, and delete nutrition details.
- Ensure that the Admin UI provides functionality to update nutritional values and specifications for meals and products.
Meal designers should be able to utilize the Admin UI to modify meals, products, and nutrition details as described in the feature request #588. They should have access to the necessary functionalities to manage recipes, ingredients, and nutritional information while excluding user administration capabilities typically reserved for admins.
Test case passed.
Verify the ability to assign a unique code to meals and ingredients
Pre-requisite: MP-Login-001
- Access to the Admin UI with permissions assigned as an admin or meal designer.
- Navigate to the meals section in the Admin UI.
- Check for the option to assign a unique code to each meal.
- Verify that the assigned meal codes are unique and consistent across the system.
- Navigate to the ingredients section in the Admin UI.
- Check for the option to assign a unique code to each ingredient.
- Verify that the assigned ingredient codes are unique and consistent across the system.
- Create new meals and ingredients and observe the automatic assignment of codes.
- Delete meals and ingredients and ensure that the codes are not reused.
- Update existing meals and ingredients and verify that the codes remain consistent.
Users, whether admin or meal designers, should have the ability to assign unique codes to meals and ingredients in the Admin UI. These codes should serve as consistent identifiers for each item, ensuring data integrity and ease of management. The system should automatically generate and maintain these codes, avoiding conflicts and inconsistencies even with changes in the database.
Test case passed.
Verify Tags in meal plan and meal are ordered in alphabetical order
Pre-requisite: MP-Login-001.
- Navigate to "meals" page from the navigation bar.
- Click on "Tags" radio button.
- Navigate to "meal Plans" page from the navigation bar.
- Click on "Tags" radio button.
On meal plan and meal Tags should be ordered in alphabetical order
Test case passed.

Verify the consistency of field names for recipes and ingredients with the database schema
Related Issue: #547
Pre-requisite: MP-Login-001, MP-SelectUser-007
- Access to the Admin UI with permissions to view recipe and ingredient details.
- Log in to the application with valid credentials.
- Navigate to the "Recipes" section.
- Verify that the field names for recipes (such as "Recipe Name," "Ingredients," "Instructions,") match the corresponding fields in the database schema.
- Similarly, navigate to the "Ingredients" section or any relevant page displaying ingredient information.
- Confirm that the field names for ingredients (such as "Ingredient Name," "Category," "Quantity," etc.) align with the corresponding fields in the database schema.
- Check that any changes made to the field names reflect accurately in the UI.
- Test the functionality related to adding, editing, and deleting recipes and ingredients to ensure compatibility with the updated field names.
The field names for recipes and ingredients should match the corresponding fields in the database schema to maintain consistency and accuracy in data representation. Any changes made to the field names should be reflected accurately in the UI, and users should be able to interact with the application seamlessly following the update.
Test case passed.
Verify the ability to create a user with the role of 'meal designer'
Related Feature: [FEATURE] Meal designer should be able to use admin UI to modify meals, products, nutrition #588
Pre-requisite: MP-Login-001, MP-SelectUser-007
- Create a new user with the role of 'meal designer'.
- Verify that the user with the role of 'meal designer' has access to the Admin UI.
- Check whether the options to manage meals, products, and nutrition are visible for the meal designer role.
- Ensure that the meal designer role does not have visibility or access to user administration functionalities.
A user with the role of 'meal designer' should be successfully created and granted access to the Admin UI with specific permissions related to managing meals, products, and nutrition, excluding user administration capabilities.
Test case passed.
Verify the ability to modify meals in the Admin UI
Related Feature: [FEATURE] Meal designer should be able to use admin UI to modify meals, products, nutrition #588
Pre-requisite: MP-Login-001
- Access the Admin UI with permissions assigned as a meal designer.
- Navigate to the meals section.
- Locate and select the meal intended for modification.
- Verify that options to edit and update meal details, including recipes and nutritional information, are available.
- Apply modifications to the meal as necessary.
- Confirm the changes are successfully applied.
Meal designers should be able to utilize the Admin UI to modify meal details such as recipes and nutritional information, ensuring changes are accurately reflected.
Test case passed.
Verify the ability to view meal details in the Admin UI
Related Feature: [FEATURE] Meal designer should be able to use admin UI to modify meals, products, nutrition #588
Pre-requisite: MP-Login-001
- Access the Admin UI with permissions assigned as a meal designer.
- Navigate to the meals section.
- Verify that all existing meals are visible and accessible for viewing.
- Check whether meal details including recipes and nutritional information are displayed accurately.
Meal designers should be able to view meal details including recipes and nutritional information within the Admin UI.
Test case passed.
Verify the ability to view ingredients in the Admin UI
Related Feature: [FEATURE] Meal designer should be able to use admin UI to modify meals, products, nutrition #588
Pre-requisite: MP-Login-001
- Access the Admin UI with permissions assigned as a meal designer.
- Navigate to the ingredients section.
- Verify that all existing ingredients are visible and accessible for viewing.
- Check whether ingredient details are displayed accurately.
Meal designers should be able to view ingredient details within the Admin UI.
Test case passed.
Verify the ability to create a new ingredient in the Admin UI
Related Feature: [FEATURE] Meal designer should be able to use admin UI to modify meals, products, nutrition #588
Pre-requisite: MP-Login-001
- Access the Admin UI with permissions assigned as a meal designer.
- Navigate to the ingredients section.
- Locate the option to create a new ingredient.
- Provide necessary details for the new ingredient such as name, type, and nutritional information.
- Confirm the creation of the new ingredient.
Meal designers should be able to create new ingredients within the Admin UI, providing necessary details for future reference and utilization.
Test case passed.
Verify the ability to edit an existing ingredient in the Admin UI
Related Feature: [FEATURE] Meal designer should be able to use admin UI to modify meals, products, nutrition #588
Pre-requisite: MP-Login-001
- Access the Admin UI with permissions assigned as a meal designer.
- Navigate to the ingredients section.
- Locate and select the existing ingredient intended for modification.
- Edit the necessary details for the ingredient.
- Confirm the changes are successfully applied.
Meal designers should be able to edit existing ingredients within the Admin UI, ensuring updated details are accurately reflected.
Test case passed.
Verify the ability to match an ingredient to a product in the Admin UI
Related Feature: [FEATURE] Meal designer should be able to use admin UI to modify meals, products, nutrition #588
Pre-requisite: MP-Login-001
- Access the Admin UI with permissions assigned as a meal designer.
- Navigate to the ingredients section.
- Select the ingredient intended for matching.
- Choose the corresponding product from the available options.
- Confirm the matching process.
Meal designers should be able to match ingredients to corresponding products within the Admin UI, facilitating accurate meal preparation and nutritional tracking.
Test case passed.
Verify the ability to delete an existing ingredient in the Admin UI
Related Feature: [FEATURE] Meal designer should be able to use admin UI to modify meals, products, nutrition #588
Pre-requisite: MP-Login-001
- Access the Admin UI with permissions assigned as a meal designer.
- Navigate to the ingredients section.
- Locate and select the existing ingredient intended for deletion.
- Confirm the deletion action.
Meal designers should be able to delete existing ingredients within the Admin UI, ensuring accurate management of ingredient inventory.
Test case passed.
Verify the ability to create a new product in the Admin UI
Related Feature: [FEATURE] Meal designer should be able to use admin UI to modify meals, products, nutrition #588
Pre-requisite: MP-Login-001
- Access the Admin UI with permissions assigned as a meal designer.
- In the left navigation menu, select the section 'products'.
- Click on the 'create' button on the top right to create a new product.
- Fill the name, quantity, Price, and 'product Keywords' with "test", 1", "1" and "Butter".
- Click on Save.
Meal designers should be able to create new products within the Admin UI, providing necessary details for future reference and utilization.
Test case passed.

Verify the ability to edit an existing product in the Admin UI
Related Feature: [FEATURE] Meal designer should be able to use admin UI to modify meals, products, nutrition #588
Pre-requisite: MP-Login-001
- Access the Admin UI with permissions assigned as a meal designer.
- Navigate to the products section.
- Locate and select the existing product intended for modification.
- Edit the necessary details for the product.
- Confirm the changes are successfully applied.
Meal designers should be able to edit existing products within the Admin UI, ensuring updated details are accurately reflected.
Test case passed.
Verify the ability to delete an existing product in the Admin UI
Related Feature: [FEATURE] Meal designer should be able to use admin UI to modify meals, products, nutrition #588
Pre-requisite: MP-Login-001
- Access the Admin UI with permissions assigned as a meal designer.
- Navigate to the products section.
- Locate and select the existing product intended for deletion.
- Confirm the deletion action.
Meal designers should be able to delete existing products within the Admin UI, ensuring accurate management of product inventory.
Test case passed.
Verify the ability to create a user with the role of 'meal designer' as an admin
Related Feature: [FEATURE] Meal designer should be able to use admin UI to modify meals, products, nutrition #588
Pre-requisite: MP-Login-001
- Access the Admin UI with permissions assigned as an admin.
- Navigate to the user management section.
- Choose to create a new user with the role of 'meal designer'.
- Provide necessary details for the new user.
- Confirm the creation of the new user.
Admins should be able to create new users with the role of 'meal designer' within the Admin UI, facilitating user management processes.
Test case passed.
Verify the ability to assign the role of 'meal designer' to a user as an admin
Related Feature: [FEATURE] Meal designer should be able to use admin UI to modify meals, products, nutrition #588
Pre-requisite: MP-Login-001
- Access the Admin UI with permissions assigned as an admin.
- Navigate to the user management section.
- Locate and select the user intended for role assignment.
- Choose to assign the role of 'meal designer' to the selected user.
- Confirm the role assignment.
Admins should be able to assign the role of 'meal designer' to existing users within the Admin UI, facilitating user management processes.
Test case passed.
Verify the ability to assign the role of 'admin' to a user as an admin
Related Feature: [FEATURE] Meal designer should be able to use admin UI to modify meals, products, nutrition #588
Pre-requisite: MP-Login-001
- Access the Admin UI with permissions assigned as an admin.
- Navigate to the user management section.
- Locate and select the user intended for role assignment.
- Choose to assign the role of 'admin' to the selected user.
- Confirm the role assignment.
Admins should be able to assign the role of 'admin' to existing users within the Admin UI, facilitating user management processes.
Test case passed.
Verify the inability to assign the role of 'client' to a user as an admin
Related Feature: [FEATURE] Meal designer should be able to use admin UI to modify meals, products, nutrition #588
Pre-requisite: MP-Login-001
- Access the Admin UI with permissions assigned as an admin.
- Navigate to the user management section.
- Locate and select the user intended for role assignment.
- Attempt to assign the role of 'client' to the selected user.
- Verify that the option to assign the role of 'client' is not available.
Admins should not be able to assign the role of 'client' to users within the Admin UI, as this role is not intended for administrative access.
Test case passed.
Verify the inability of a user with the role of 'client' to login to the Admin UI
Related Feature: [FEATURE] Meal designer should be able to use admin UI to modify meals, products, nutrition #588
- Attempt to log in to the Admin UI with credentials of a user assigned the role of 'client'.
- Verify that the login attempt is unsuccessful.
- Ensure that users with the role of 'client' cannot access the Admin UI.
Users with the role of 'client' should not be able to login to the Admin UI, as this role is not intended for administrative access.
Test case passed.
Verify the functionality of the search feature for products in the admin UI
Related Issue: #593
- Pre-requisite: Access to the Admin UI with permissions to view product details.
- Log in to the application with valid credentials.
- Navigate to the "Products" section in the Admin UI.
- Verify that the list of products displayed in the table includes all records from the database.
- Attempt to search for a specific product using the search functionality.
- Enter a search query, such as the name or part of the name of a known product, in the search bar.
- Check that the search results accurately reflect the products matching the search query.
- If the product 'Lasagna' is present in the database, ensure that it appears in the search results.
- If the product 'Lasagna' does not appear in the search results, verify that there are no issues with the product data or search functionality.
- Test different search queries to ensure that the search feature is working as expected for various input scenarios.
When searching for a product in the admin UI, all records from the database should be listed, and the search functionality should yield accurate results corresponding to the searched phrase. Specifically, if a product like 'Lasagna' exists in the database, it should be included in the search results when searching for 'Lasagna'.
Test case passed.

Viewing a specific meal without logging in
This test case verifies the functionality of allowing users to view specific meal pages without requiring them to log in.
- Go to 'https://develop.goodmealplan.com/#/meals/'.
- Click on a 'Salsa Cruda' meal to view its details.
- Verify that the meal page loads successfully and displays the details of the selected meal.
- Confirm that the user is not prompted to log in during the process.
Individual meal pages should be accessible to users without the need to log in, ensuring that anonymous users can view meal recipes seamlessly.
Passed successfully


Displaying templates along with all meal plans
This test case verifies the functionality of displaying templates along with all meal plans in the list.
Pre-requisites: MP-Login-001, MP-Template-031
- Navigate to the "Meal Plan" section of the application.
- Click on the option to create a new template.
- View the list of meal plans to observe the presence of templates.
- Check whether templates are visible by default without applying any filters.
When viewing the list of meal plans, templates should be displayed along with all other meal plans, without requiring any specific filter selection. This ensures that templates are readily accessible and visible to users.
Test case passed.

Verify functionality of search for meals in Admin UI
- Pre-requisite: MP-Login-001
- Navigate to the Admin UI.
- Click on the 'Meals' section to access the meals page.
- In the search bar provided, enter the keyword 'bread' to search for meals containing the word 'bread'.
- Press the Enter key or click on the search icon to initiate the search.
- Verify the search results displayed on the page.
- Check that the search results include all meals containing the keyword 'bread'.
- Compare the search results with the expected results from the test server screenshot provided.
When searching for meals using the keyword 'bread' in the Admin UI, the system should retrieve and display all relevant results matching the search criteria. The displayed results should include all meals containing the keyword 'bread', matching the expected results as shown in the test server screenshot provided.
Test case passed.

Verify functionality of reset password for users in Admin UI
- Pre-requisite: MP-Login-001
- Navigate to the Admin UI.
- Click on the 'Users' section to access the users page.
- Select any user from the list for whom the password needs to be reset.
- Locate the 'RESET PASSWORD' button associated with the selected user.
- Enter a new password in the provided field.
- Click on the 'RESET PASSWORD' button to initiate the password reset process.
- Monitor for any response from the UI after clicking the button.
- Check the JavaScript console for any errors or warnings.
- Verify that the password is updated successfully for the selected user.
- Confirm that the UI displays an appropriate success message indicating that the password has been updated.
When resetting the password for a user in the Admin UI, the system should update the password successfully without any errors. Upon clicking the 'RESET PASSWORD' button, the UI should display a confirmation message indicating that the password has been updated. Additionally, the password reset process should redirect the user to the appropriate page within the Admin UI.
Test case passed.
Verify removal of favorite icon from meal plan card
- Pr-requisite: MP-Login-001
- From the navigation bar, click on "meal plans" to go to the meal plans page.
- Locate a meal plan card.
- Confirm that the favorite icon is no longer displayed on the meal plan card.
- Check if there are any changes in functionality or layout after the removal of the favorite icon.
- Navigate to other meal plan cards to ensure the favorite icon has been removed universally.
- Perform a page refresh and re-verify that the favorite icon is still absent from the meal plan cards.
The icon should no longer be visible, indicating that the favorite functionality has been removed successfully. The layout and functionality of the meal planner application should remain unaffected by the removal of the favorite icon.
Test case passed.

Verify visibility of ingredients in Meal page
- Pre-requisite:MP-Login-001
- Navigate to the Meal page of the application.
- Select a meal and click on it to view its details.
- Check for the presence of ingredients listed along with their quantity and unit in a table at the bottom left of the screen.
- Verify that each ingredient listed matches the ingredients used in the meal recipe.
- Ensure that the ingredients are displayed clearly and legibly for easy readability.
- Click on each ingredient to verify if it provides additional details or options (if applicable).
- Repeat the above steps for multiple meals with different recipes to ensure consistency.
Upon accessing the Meal page, users should be able to view a list of ingredients for each meal, along with their respective quantities and units. The displayed ingredients should accurately reflect those used in the meal recipe. The ingredients list should be presented in a clear and organized manner for easy reference by users.
Test case passed.

Verify display of meal name in ingredient page of Admin UI
- Pre-requisite: MP-Login-001
- Navigate to the Meals section in the admin UI.
- Select a specific meal, for example, "Chicken Curry".
- Click on the show icon to see details of the meal.
- Click on the Ingredients tab to view the ingredients associated with the selected meal.
- Check whether the meal name is displayed prominently on the Ingredients page.
- Verify that the meal name is clearly visible and identifiable, above ingredient table, indicating which meal the listed ingredients belong to.
- Ensure that the meal name is consistently displayed at the top or in a prominent position on the Ingredients page for easy reference.
Upon accessing the Ingredients page of a specific meal in the admin UI, the meal name should be prominently displayed to indicate which meal the listed ingredients belong to. Users should be able to easily identify the associated meal by viewing its name on the Ingredients page.
Test case passed.

Display nutrition data of meal in the Mealplanner UI
- Pre-requisite: MP-Login-001
- Navigate to the Mealplanner UI.
- Locate a meal with existing nutrition data.
- Hover over the Nutrition star icon associated with the meal.
- Verify that when there is no data for the meal in the nutrition table, 'No data' is displayed upon hovering over the icon.
- If nutrition data is available, ensure that only the relevant values with data are displayed upon hovering over the icon.
- Check that the displayed nutrition values are accurate and correspond to the actual data entered in the nutrition table.
- Repeat the above steps for multiple meals with varying nutrition data entries.
- Ensure that the display of nutrition data is consistent across different meals and accurately reflects the data entered in the nutrition table.
In the Mealplanner UI, users should be able to hover over the Nutrition star icon associated with a meal to view its nutrition data. When there is no data available for the meal, 'No data' should be displayed upon hovering over the icon. If nutrition data exists, only the relevant values with data should be displayed. The displayed nutrition data should be accurate and consistent with the entries made in the nutrition table.
Test case passed.

Visual differentiation for Meal Plan Card
Related Feature: Meal Plan Card: The user circle should show empty for no user and T with grey for template #622
- Pre-requisite: MP-Login-001
- Navigate to the Meal Plans page.
- Locate the Meal Plan cards displayed on the page.
- Verify that for Meal Plans without any user assigned, the user circle is displayed as empty.
- Confirm that for Meal Plans designated as templates, the user circle is displayed as grey with the letter 'T'.
- In place of the user on the meal plan card, bellow meal plan name, indicating 'No User Assigned' appears for Meal Plans without users, and nothing appears for template Meal Plans.
- Check that the visual differentiation between Meal Plans with no user assigned and template Meal Plans is clear and easily distinguishable.
- Ensure that the visual representation of the Meal Plan card remains consistent across different views and screen sizes.
In the Mealplanner UI, Meal Plan cards should visually differentiate between Meal Plans with no user assigned and template Meal Plans. The user circle should be displayed as empty for Meal Plans without any user assigned, and grey with the letter 'T' for template Meal Plans. Hovering over the user circle should display appropriate tooltips indicating the status of the Meal Plan. This visual differentiation will enhance clarity and user experience while browsing through Meal Plans.
Test case passed.

Match multiple products to an ingredient
This test case verifies admin can match multiple products to an ingredient and the products are displayed in the shopping list.
Pre-requisite: MP-Template-031
- Access to the Admin UI as an admin.
- Click on the "show" button on the targeted meal "Tourtiere".
- Navigate to the ingredients section.
- Click on "Match" on the targeted ingredient "Onion".
- Select the products that match the ingredients "Onion, Red, 3 lb Bag", and "Red Onions, Sold in singles, 0.16 - 0.30 kg".
- Select "Red Onions, Sold in singles" as the best product.
- Click "save".
- On mealplanner ui Select "Tourtiere" from the selected meal catalogue.
- Drag and drop it in the specific category of the meal plan.
- Navigate back to "meal plans"
- Click on the shopping icon.
- Verify that the Onion has "Onion, Red, 3 lb Bag" and "Red Onions, Sold in singles, 0.16 - 0.30 kg" are displayed in the Suggested Product column.
- Verify that the Onion has "Red Onions, Sold in singles, 0.16 - 0.30 kg" as the best product on the top of the Suggested Product column.
The matched Products are displayed in the shopping list.
Test case passed.



Creating two meal plans
This test case verifies creating more than one meal plan or template without the need to refresh the page
Pre-requisite: MP-Login-001
- Navigate to the "Meal Plan" section of the application.
- Click on the "Create Meal Plan" button to create the first meal plan.
- Choose "Create New Meal Plan"
- Fill the input name field for the first meal plan
- Click on Create button
- Click on the "Create Meal Plan" button to create the second meal plan.
- Choose "Create New Meal Plan"
- Fill the name input field for the second meal plan
- Click on Create button
- Check if the meal plans are displayed.
The meal plans are created and displayed correctly
Test case passed
Verify displaying Civic Tech logo and name in the printout of the recipe (meal)
This test case verifies displaying Civic Tech logo and name in the printout of the recipe (meal) in the footer of every page.
Pre-requisite: MP-Login-001
- From the navigation bar, click on "meal" to navigate to the meals page.
- Click on "Apple Fritters" meal to display it.
- Click on the print icon on the Apple Fritters page.
- Verify that in the footer of every page Civic Tech logo and name are displayed in both Orientation, portrait and landscape .
Civic Tech logo and name in the printout of the recipe (meal) are displayed in the footer of every page.
The test case passed.




Verify meal with no name cannot be created
This test case verifies meal with no name cannot be created in the admin UI
Pre-requisite: MP-Login-001
- Access to the Admin UI as an admin.
- Leave the Name en field blank
- Insert any character in any other field to enable the save button
- leave all the other fields blank.
- Click on the "Create" button.
- Verify that no meal is created without the minimum requirement which is the Name en field.
A meal with no name cannot be created
Test case passed


Verify tags are being aligned in multiple lines.
This test case verifies that tags are being aligned in multiple lines to the given width of the main page.
Pre-requisite: MP-Login-001
- Navigate to the meals page.
- Click on the Tags radio button.
- Verify that the tags are aligned in multiple lines to the given width of the main page.
Tags should be aligned in multiple lines to the given width of the main page.
Test case passed

Verify The primary ingredient are displayed when there are substitutes for ingredients in a meal.
This test case verifies that The primary ingredient are displayed when there are substitutes for ingredients in a meal.
Pre-requisite: MP-Login-001
- Access to the Admin UI as an admin.
- In the left navigation menu, select the section ‘Meals’.
- Click on 'Bread and Butter Pudding'.
- Check the ingredients list. This has Butter and Margarine as well as Apricot Jam, Raspberry Jam, Marmalade.
- Go to 'Mealplanner UI'.
- Navigate to "meals" page from the navigation bar.
- Search for "Bread and Butter Pudding".
- Verify that Butter, and Apricot Jam are displayed.
The primary ingredient are displayed when there are substitutes for ingredients in a meal.
Test case Passed.



Verify Search product is working for any word in the product name.
This test case verifies that The Search product is working for any word in the product name.
Pre-requisite: MP-Login-001
- Access to the Admin UI as an admin.
- In the left navigation menu, select the section ‘Products’.
- Search for "peppercorns".
- Check the number of the products that returned in the list.
- Perform the search again with "peppercorn" in the singular.
- Verify that the search results for "peppercorn" and "peppercorns" are the same.
Search should work for any word in the product name.
Test case passed.


Verify display the reason for substitute ingredient.
This test case verifies that the reason for substitute ingredient is displayed.
Pre-requisite: MP-Template-031
- Navigate to "meal plans" from the navigation bar.
- Select "Breakfast Burrito" from the selected meal catalogue.
- Drag and drop it in the specific category of the meal plan.
- Navigate back to "meal plans".
- Click on the shopping icon.
- Verify that the red pepper has reason for substitute displayed.
The reason for substitute ingredient is displayed.
Test case passed.

Verify the type of the price and the quantity is number.
This test case verifies that the type of the price and the quantity is number..
Pre-requisite: MP-Login-001
- Access to the Admin UI as an admin.
- In the left navigation menu, select the section "Products".
- Click on "Create" button on the right corner.
- Type "d" letter in the price field.
- Click on the "save" button.
- Verify that error message is displayed.
- Type "d" letter in the quantity field.
- Verify that error message is displayed.
An error message displays when the type if the price or the quantity is not a number.
Test case passed.


Verify the ingredients page has a link back to Meal from the meal name
Related Issue: #645
This test case verifies that the ingredients page has a link back to Meal from the meal name.
Pre-requisite: MP-Login-001
- Access to the Admin UI as an admin.
- In the left navigation menu, select the section "Meals".
- Click on "Show" button on the right corner of 'Chicken Curry' meal.
- Click on "ingredients" on the bottom to go to the ingredients page
- Verify that page has a link to the "Chicken Curry" meal on the top left side.
- Click on "Chicken Curry" on the top left side.
- Verify that you navigated back to the "Chicken Curry" meal page.
when I go to the ingredients list, to navigate back, the ingredients page has the meal name as a link that when click on it navigate back to the meal page.
Test case passed.

Verify the ingredient page has the meal name.
Related Issue: #621
This test case verifies that the ingredient page has the meal name.
Pre-requisite: MP-Login-001
- Access to the Admin UI as an admin.
- In the left navigation menu, select the section "Meals".
- Click on "Show" button on the right corner of 'Chicken Curry' meal.
- Click on "ingredients" on the bottom to go to the ingredients page
- Verify that page has the "Chicken Curry" meal name on the top left side.
when I go to the ingredients list, meal name should be displayed in the ingredients page.
Test case passed.

Verify ability to use spaces in tags in Admin UI
Pre-requisite: MP-Login-001
- Access to the Admin UI as an admin.
- In the left navigation menu, select the section "products".
- Click on "Edit" on the left side in "Great Value Parmesan Cheese, 280 g" product.
- Scroll down to the section for tags.
- Enter a product keyword 'Test tag'.
- Confirm whether the system allows entering spaces between words in the tagfield.
In the Admin UI for managing products and tags, users should be able to use spaces in tags. Spaces should be accepted and processed correctly without any restrictions, allowing users to input phrases or multi-word descriptors for products. This ensures flexibility and ease of use in managing product information and categorization.
Passed as in the Admin UI for managing products, users could use spaces in tag names successfully.

Verify the meal plan print page has civictech logo on the footer.
Related Bug:#673
MP-Template-031
- Navigate to "Meal Plan" page from the navigation bar.
- Click on the meal plan to display the meal plan calendar.
- Click on "Print" icon on the top left of the page.
- Verify that the meal plan print page has a Civictech logo on the page footer.
The meal plan print page Should has a Civictech logo displayed on the page footer.
Passed

Verify the favorite feature for meal
Pre-requisite: MP-Login-001
- From the navigation bar, click on "meal" to navigate to the meals page.
- Click on the heart icon to select "Tartare Sauce", "Cheddar, Apple Muffins" and "Corn Fritts" meals as favorites.
- Confirm that heart icon is now red in color to show the meals have been selected as a favorite meal.
- Click again on the heart icon to delete "Tartare Sauce" from the favorite.
In the Meal planner UI, at the Meals navigation page, users should be able to mark any meal they choose as Favorite and delete it. This ensures flexibility and ease of use in managing a users favorite meals.
Passed as in the Meal planner UI, users can chose favorite meals by clicking the heart icon below the meal name on the lower left hand side.

Verify there is a sorting feature with the Favorite category for meals.
Pre-requisite: MP-Favoritefeatureformeal-085
- From the navigation bar, click on "meal" to navigate to the meals page.
- Click on "My favorite" radio button to display only meals in favorite category.
- Confirm that only favorite meals with the red heart icons are displayed.
In the Meal planner UI, at the Meals navigation page, users should be able to display only favorite meals when the "My favorite" radio button is selected. This ensures flexibility and ease of use in managing a users favorite meals.
Passed as in the Meal planner UI, users can chose to display only favorite meals by clicking the "My favorite" radio button on the meals page.

Verify the exciting of CREATE button for Ingredients when there are no ingredients yet
Related Issue: #685
Pre-requisite: MP-Login-001
- Access to the Admin UI as an admin.
- In the left navigation menu, select the section "Meals".
- Click on the "Create" button to create new meal.
- Fill the name en field with "test1".
- Click on "save" button on the bottom of the page.
- From the "Meals" section, Click on "Show" button beside the "test1" meal.
- Click on "Ingredients" button.
- Verify that there is a "Create" button to create the first ingredient.
- Click on the "create" button and fill ingredient name, quantity,unit, and product keyword with "testIn", "1", "tsp" and "test"
- Click on the "Save" button.
- Verify that the ingredient has been created.
Upon accessing the Ingredients page of a specific meal in the admin UI, the Ingredients should have a create button when there are no ingredients and the admin/meal dispenser should be able to create Ingredients using this button
Test case passed.

Verify the ingredients and method are displayed without unnecessary blank space.
This test case verifies that the ingredients and method should be displayed right after the meal picture, title, and description without unnecessary blank space.
Pre-requisite: MP-Login-001
- Navigate to "meals" page from the navigation bar.
- Search for "Salsa Cruda" and click on it to view its details.
- Verify that page has no unnecessary blank space before ingredients and method.
On the meal page, the ingredients and method should be displayed right after the meal picture, title, and description without unnecessary blank space.
Test case passed.

Verify the tips have rich text format just like the method so that if there are more than one tips it can be bulleted.
Related Issue: #664
Pre-requisite: MP-Login-001
- Access to the Admin UI as an admin.
- In the left navigation menu, select the section "Meals".
- Click on the "Show" button on the left side of "Tuna Noodle Casserole" meal to view it.
- Navigate to "summery" tab to display the tips.
- Verify that the tips are written in bullet points.
Upon accessing the summery page of a specific meal in the admin UI, the tips should have rich text format just like the method so that if there are more than one tips it can be bulleted.
Passed

Verify the Unit is displayed next to the quantity in the Products Match view.
Related Issue: #625
Pre-requisite: MP-Login-001
- Access the "Admin UI" as an admin.
- In the left navigation menu, select the section "Meals".
- Click on "show" button on the left side of the "Chicken Curry" meal to display it.
- Click on "Ingredients" button.
- In Ingredients page, select MATCH of an ingredient on the left side.
- In the Matches page, you will see the grid of products.
- Verify that the unit is displayed next to the quantity in the products table.
Upon accessing the match page of the product, the unit is displayed next to the quantity in the products table.
Test case Passed

Verify the admin can register new user.
Pre-requisite: MP-Login-001
- Access the "Admin UI" as an admin.
- In the left navigation menu, select the section "Users".
- Click on "Register" button on the top left side of the page.
- Fill the name, email, password, confirm password fields with "test", "user@example.com", "password1" and "password1"
- Click on the "Register" on the bottom of the page.
- Verify that user is created with role "Client".
The admin can create a new user and give the user a role.
Test case Passed.

Verify the new user must agree on terms and conditions
Related Issue: #632
This test case verifies that when the new user access the meal planner website for the first time the terms and condition page is displayed.
Pre-requisite:RegisterNewUser-91
- Login to "https://goodmealplan.com/#/" using the new user credentials.
- Verify that terms and conditions page is displayed.
- On the URL try to navigate to "mealplans" page by editing the URL to "https://goodmealplan.com/#/mealplans"
- Verify that page "mealplans" are not displayed and you are redirected to terms and conditions page.
- On the URL try to navigate to "meals" page by editing the URL to "https://goodmealplan.com/#/meals"
- Verify that page "meals" are displayed as this page is available for any user without registration.
The new user must view and accept the terms and conditions before going to meal plans page and using the website features, but the user can see the meals before accepting the conditions .
Test case passed.

Verify the user who reject the conditions doesn't have access to the meal plans
Related Issue: #632
This test case verifies that when the new user access the meal planner website for the first time and reject the terms and conditions doesn't have access to the meal plans page.
Pre-requisite: MP-TermsPage-092
- Click On "Reject" button on the bottom of "https://develop.goodmealplan.com/#/terms" page.
- Verify that you are logged out and directed to the login page.
When the new user reject the conditions he must be logged out automatically and directed to the login page.
Test case passed.
Verify the user who accept the conditions have access to the meal plans
Related Issue: #632
This test case verifies that when the new user access the meal planner website for the first time and accept the terms and conditions can access to the meal plans page and use the website features.
Pre-requisite: MP-TermsPage-092
- On the "https://develop.goodmealplan.com/#/terms" page click on the "I agree with the Terms and Conditions" checkbox .
- Click On "Accept" button on the bottom of page
- Verify that you are directed to meal plans page.
- Click on the "log out" icon.
- Log in again using the same user.
- verify that you are redirected to meal plans page without displaying the terms and conditions page again.
When the new user accept the conditions he must be directed to meal plan page and can use the website features.
Test case passed.

Verify the client user can copy a meal plan template.
This test case verifies that When the new client user create a meal plan, a copy icon on the meal plan card is displayed and the user can click on it to copy the meal plan template.
Pre-requisite: MP-AcceptConditions-094
- Navigate to the "Meal Plan" section of the application.
- Click on the "Create Meal Plan" button to create the first meal plan.
- Fill the input field name with "test".
- Click on Create button.
- Verify that the new meal plan template has a "copy" icon.
- Click on the "copy" icon on the meal plan card.
- Verify that the another meal plan is created.
When the new client user create a meal plan, a copy icon on the meal plan card is displayed and the user can click on it to copy the meal plan template.
Test case passed.

Verify ability to create substitute ingredient relating to a primary ingredient
Pre-requisite: MP-Login-001
- Access the Admin UI as an admin.
- In the left navigation menu, select the section "Meals".
- In the search bar, search for a meal such as "rice pilaf"
- Click on the SHOW button
- Click on "Ingredients" button on the bottom of the page
- Select Create.
- Add a new item called Fresh Parsley
- Click on the Primary Ingredient field.
- Select one of the meal's existing ingredient 'Dried Parsley Flakes' among the options.
- Click Save.
Ingredients page has an ingredient 'Fresh Parsley' with primary ingredient 'Dried Parsley Flakes'. This ensures flexibility and ease of use in managing product information and categorization.
Passed . In Admin UI, Ingredient page displays ingredient 'Fresh Parsley' with primary ingredient 'Dried Parsley Flakes'.

Verify start date exist on meal plan creation/ edit and meal plan card
Related Issue: #526
This test case verifies that a start date can be inputted when creating Meal plans, editing Meal plan and on Meal cards.
Pre-requisite: MP-Login-001
- From the navigation bar go to "Meal Plans" page.
- Click on "CREATE MEAL PLAN" on the top right corner of meal plan page.
- Fill the name field in the form with "FolaDt1"
- Select the "10-06-2024" as the start date from the calendar.
- Click on the "Save" button to save the meal plan.
- Click on the new meal plan created in step 4, confirm that the date is displayed on the meal card.
The meal plan start date is should be displayed when creating and displaying the Meal plan card and details.
Test case passed.

Verify Duplicate meal plan for a client user have the current user assigned
Related Bug:#698
MP-CopyIconForClient-095
- Verify that the another meal plan is assigned to the signed in client.
Duplicate meal plan for a client user should have the current user assigned
Passed

Verify the assign user drop-down is invisible as a client user cannot re-assign plans
Related Issue: #666
This test case verifies that When the new client user create a meal plan, the drop-down is invisible as a client user cannot re-assign plans
Pre-requisite: MP-AcceptConditions-094
- Navigate to the "Meal Plan" section of the application.
- Click on the "Create Meal Plan" button to create the first meal plan.
- Verify that there is no drop down menu to assign plans for others.
When the new client user create a meal plan,the drop-down is invisible as a client user cannot re-assign plans
Test case passed.

Verify The option to 'Create Template' does not appear for the client user.
Related Issue: #687
This test case verifies that When the new client user create a meal plan, The option to 'Create Template' does not appear for the client user. as Create Template is required only for admins and meal designers
Pre-requisite: MP-AcceptConditions-094
- Navigate to the "Meal Plan" section of the application.
- Click on the "Create Meal Plan" button to create the first meal plan.
- Verify that there is no "Create New Template" radio button to click.
When the new client user create a meal plan,the drop-down the option to 'Create Template' does not appear for the client user
Test case passed.

Verify shopping list displays all the ingredients, meal it belongs to and product suggestions.
This test case verifies that the shopping list displays all the ingredients, meal it belongs to and product suggestions and a disclaimer note.
Pre-requisite: MP-Template-031
- Navigate to "meal plans" from the navigation bar.
- Select "Breakfast Burrito" from the selected meal catalogue.
- Drag and drop it in the specific category of the meal plan.
- Navigate back to "meals".
- Click on "Breakfast Burrito" to display its ingredients.
- Navigate back to "meal plans".
- Click on the shopping icon.
- Verify that the shopping list has a disclaimer note and all the ingredients related to "Breakfast Burrito" with product suggestions, and prices.
The shopping list has a disclaimer note and all the ingredients related to "Breakfast Burrito" with product suggestions, and prices.
Test case passed.


Ensure that there is no 'Measure' section and that 'Ingredients' exists under Meals.
Pre-requisite: MP-Login-001
- Access the Admin UI as an admin.
- In the left navigation menu, select the section "Meals".
- Click on "Show" button on the right corner of 'Chicken Curry' meal.
No 'Measure' section present and 'Ingredients' button should show on the bottom of the page.
Passed successfully.

Verify the search for product keyword of product is not case-sensitive.
Pre-requisite: AA-CreateProduct-054:
- Access the Admin UI as an admin.
- In the left navigation menu, select the section "Meals".
- Click on "Show" button on the right corner of "Tuna Noodle Casserole" meal.
- Click on "Ingredients" on the bottom of the page to display the ingredients table.
- On the "Butter" row with key word "butter", click on "Match" on the right side.
- Verify that the product with "Butter" keyword appears.
search for product keyword of product is not case-sensitive so any products have the same keyword that is written uppercase should appear when matching the ingredient to products.
Passed successfully.
