Skip to content

Test case portfolio v1.0 and 2.0

olamakhlouf edited this page Jun 12, 2024 · 156 revisions

Test case Portfolio v 1.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

Test case Portfolio v 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-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.

Test case name:

Login with meal designer credentials

Steps to follow:

  1. Check that the login page contains input boxes for Username and Password and with Sign-in button
  2. Check that the cursor is in the “Username” text box by default on the page load (login page)
  3. Check that the tab functionality is working by pressing the tab button on the keyboard to move to the Password field from the Username.
  4. Check that when the user clicks on the show password icon, the user should be able to view the password
  5. Check that when the user clicks on hide password, the user shouldn't be able to view the password
  6. Check whether the User is able to log in with an invalid Username and invalid Password
  7. Check whether the User is able to log in with a Valid Username and an invalid Password
  8. Check whether the User is able to log in with an invalid Username and Valid Password
  9. Check whether the User is able to log in with a blank Username or Password
  10. Check whether the User is able to log in with inactive credentials
  11. Check whether the User is able to log in when a valid username and password are entered

Expected result:

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.

Test case name:

View a specific Meal Plan in the Desktop view

Steps to follow:

  1. Go to url/mealplan/:id
  2. Check the meal plan name is displayed in tabular form
  3. Check whether the 7 days (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday) are listed
  4. Check the categories Breakfast, Lunch, Dinner, and Snack are displayed
  5. Check the meals are displayed in a specific category for a particular day. Eg: In Breakfast on Monday, the added meal should be listed.

Expected Behaviour:

Meals should be displayed correctly as per the meal plan

Test case name:

Select a meal based on the search criteria.

Steps to follow:

Pre-requisite: MP-Login-001

  1. Go to url/mealplan/:id
  2. Click the search box to input text
  3. Check when the user starts typing words in the search box, it should suggest words that match typed keywords
  4. Choose and select from the list of suggested meal catalogue options
  5. Ensure that the meal is selected from the suggested meal catalogue
  6. Check whether there is an option to cancel(X mark) the selected meal
  7. Click on the Cancel button
  8. Ensure that the meal option is not selected now.

Expected Behaviour:

Meals should be selected from the suggested meal catalogue

Test case name:

Add meals in the specific category of the meal plan

Steps to follow:

Prerequisite: MP-Login-001

  1. Go to url/mealplan/:id
  2. Select the meal from the selected meal catalogue
  3. Drag and drop it in the specific category of meal plan
  4. 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.
  5. Check whether the meal added is also added to the database.

Expected Behaviour:

Should be able to select the meal from the selected meal catalog and add it to the specific category of the meal plan

Test case name:

Delete meals in the specific category of the meal plan

Steps to follow:

Prerequisite: MP-Login-001

  1. Go to url/mealplan/:id
  2. 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
  3. check that the user is able to click on the delete icon/button
  4. 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
  5. Check the meal is also deleted from the database.

Expected Behaviour:

Should be to able delete the meal in the specific category of the meal plan when clicking on the delete icon

Test case name:

Select User

Steps to follow:

Prerequisite: MP-Login-001

  1. Go to url/mealplan/:id
  2. Check in the header section, when the user clicks on the meal plan name make sure the previous meal plan name is highlighted.
  3. Check to make sure it is editable such as "Vegetarian Meal Plan".
  4. Check to make sure that it is automatically saved in the database.
  5. Check whether the meal plan name input box accepts alphabets A-Z.
  6. Check whether the meal plan name input box accepts both upper and lower case alphabets.
  7. 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.

Test case name:

Select User

Steps to follow:

Prerequisite: MP-Login-001

  1. Go to url/mealplan/:id
  2. On the header section when Signed in check whether the name of the user such as "Admin" is displayed
  3. Check that the Dropdown is present in the header section and whether it is Clickable.
  4. Check that by clicking on the dropdown a list of users is displayed.
  5. Check whether the dropdown is displaying all the users or only a few as the user clicks on the dropdown.
  6. Check that the user should be able to select different users such as "meal designer" in the dropdown.
  7. Check to make sure that the selected user name is automatically saved in the database.
  8. Check and make sure to scroll down functionality working in the dropdown list and view other user options.
  9. check that the drop-down list is scrolled down by pressing the Arrow-down key on the keyboard.
  10. check that the dropdown is not editable.
  11. 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.

Test case name:

Add tags to the meal plan

Steps to follow:

Prerequisite: MP-Login-001

  1. Go to url/mealplan/:id
  2. Check and make sure that on the header section, there is an arrow key pointing downwards by default.
  3. Click on the arrow key pointing downwards to expand the view to display the description and add tag details.
  4. 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.
  5. Click on the input textbox to enter the required text
  6. Check whether it takes only alpha characters(A to Z).
  7. Check whether it takes Numeric characters (numbers 0-9)
  8. 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
  9. Check to make sure that it is automatically saved in the database.
  10. Check whether there is an option to delete(X mark) the selected tag.
  11. Click on the delete button to delete the tag.
  12. Check to make sure that the tag is also deleted from the database.
  13. 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:

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.

Test case name:

Description of the meal plan

Steps to follow:

Prerequisite: MP-Login-001

  1. Go to url/mealplan/:id
  2. Check and make sure that on the header section, there is an arrow key pointing downwards by default.
  3. Click on the arrow key pointing downwards to expand the view to display the description and add tag details.
  4. 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.
  5. Check whether the description input box accepts alphabets A to Z.
  6. Check whether the description input box accepts both upper and lower-case alphabets.
  7. Check the maximum and minimum character length of the description box.
  8. Check whether the description box accepts numeric, special characters and symbols.
  9. Check to make sure that it is automatically saved in the database.
  10. Check whether the user is able to view the description, after the user gets logged out and sign-in again.
  11. 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

Test case name:

Check whether the user can log out successfully

Steps to follow:

Prerequisite: MP-Login-001

  1. Go to url/mealplan/:id
  2. Check after successful login such as "Admin", the logout button is visible on the top right corner of the webpage.
  3. Check whether the logout button is clickable or not.
  4. Check whether the user is able to log out successfully by clicking on the logout button.
  5. After successful logout users should be able to view the sign-in page of the meal planner website.
  6. 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.
  7. 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.
  8. Check the logout option should not be visible till the user is logged in.
  9. 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.

Expected Behaviour:

The user should be able to log out successfully by clicking on the logout button.

Test case name:

Check the menu is displayed properly on the top of the web page

Steps to follow:

Prerequisite: MP-Login-001

  1. Go to url/mealplan/:id
  2. Check the menus are displaying properly without any congestion and properly displayed.
  3. Check whether the menu is adjusting automatically or not based on the number of menus.
  4. Check whether the menu item is clickable.
  5. When the user clicks on the menu item such as "Plans", the user should view the "Plans" web page.
  6. Check "Good Meal Plan" logo is properly visible on the menu bar of the web page.

Expected Behaviour:

When a user clicks on the menu item such as "Plans", a user should be able to view the "Plans" web page.

Test case name:

User not assigned should be shown as text in the meal calendar

Related Bug ID: #456

Steps to follow:

Pre-requisite: MP-Login-001

  1. Go to '/mealplans'
  2. Click on 'Create Meal Plan'
  3. Enter the meal plan name 'Veg' and do not assign a user
  4. Click on the created meal plan
  5. In the meal plan calendar view, notice there is no user field next to the meal plan name.

Test case name:

Search for a meal plan based on any word of the name

Related Bug ID: #372

Steps to follow:

  1. Pre-requisite: MP-Login-001
  2. Go to '/mealplans'
  3. Go to the ‘Select Meal from the list’ section of the page
  4. Locate the search bar designated for searching meal plans.
  5. Enter one or more characters from a word from the name of any existing meal plan into the search bar.
  6. Check whether the search results include the meal plan whose name contains the entered word.
  7. Verify that the search results display relevant meal plans matching the search criteria.
  8. Select any of the displayed meal plans from the search results.
  9. Add the meal to the proper timeslot of the Meal Plan table
  10. Confirm that the selected meal plan is navigated to and displayed on the screen.

Expected Behaviour:

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.

Test case name:

Enable autocomplete feature for Products and Meals fields in admin app measure form

Related Bug ID: #515

Steps to follow:

  1. Pre-requisite: MP-Login-001.
  2. Log in to the admin app (AA).
  3. From the Local Navigation Bar, access to the "Measures" form.
  4. Navigate to the Measure form in the admin app.
  5. Go to \Create
  6. From the input blocks in the form, locate the "Products" and "Meals" fields.
  7. Start typing in the Products or Meals field.
  8. Check whether the autocomplete feature suggests appropriate items based on characters of the user input.
  9. Verify that the dropdown displays all available products or meals matching the entered text.
  10. Select a product or meal from the autocomplete suggestions.
  11. Confirm that the selected item is populated in the corresponding field of the measure form.

Expected Behaviour:

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".

image

Test case name:

Filter meal plans by tags

Related Feature: Filter by tags for meal plan #522

Steps to follow:

  1. Pre-requisite:MP-Login-001.
  2. Navigate to the meal plans section.
  3. Locate the "Filter by tags" view.
  4. Check whether the list of unique meal plan tags is automatically displayed.
  5. Verify that the listed tags include all tags associated with existing meal plans.
  6. Select one of the displayed tags from the list.
  7. Confirm that the meal plans displayed are filtered based on the selected tag.
  8. Select another tag from the list.
  9. Verify that the meal plans displayed are now filtered based on both selected tags.
  10. Clear the selected tags.
  11. Confirm that all meal plans are displayed again without any filtering.

Expected Behaviour:

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.

Test case name:

Verify creation of multiple tags for a product in Admin app product page

Related Bug: [BUG] multiple tags are not getting created in Admin app product page #483

Steps to follow:

  1. Pre-requisite: MP-Login-001.
  2. Log in to the admin app (AA).
  3. Navigate to the 'products/create' page or edit an existing product.
  4. Scroll down to the 'tags' entry field.
  5. Enter more than one tag separated by commas (e.g., "vegan,grocery") into the 'tags' field.
  6. Click the 'Save' button to save the product.
  7. Verify that the product is saved successfully without any error messages.
  8. Navigate back to the product details page or search for the product in the product list.
  9. Check the tags associated with the product.
  10. Confirm that all tags entered in the 'tags' field during creation/editing are displayed and associated with the product.

Expected Behaviour:

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.

image

Test case name:

Verify display of "no user assigned" on meal plan calendar when no user is assigned

Related Bug: Username will be displayed as no user assigned on meal plan calendar #458

Steps to follow:

  1. Pre-requisite: MP-MPCalendar-002.
  2. Navigate to the meal plan calendar page where meal plans are displayed.
  3. Go to \Create.
  4. Create a new meal plan with a user assigned to it.
  5. Verify that on the meal plan calendar, the username associated with the meal plan is displayed.
  6. Go to \Create.
  7. Create a new meal plan without assigning any user to it.
  8. Check for a meal plan that has no user assigned to it.
  9. Refresh or navigate back to the meal plan calendar page.
  10. Confirm that "no user assigned" is displayed instead of the username.

Expected Behaviour:

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.

Test Results:

Passed all the steps except the step 10. Instead of display "no user assigned", it doesn't show anything. The screenshot attached the output.

image

Test case name:

Verify deletion of a meal from the meals table without foreign key constraint error

Related Bug: Deleting a meal from the meals table throws an error foreign key constraint #426

Steps to follow:

  1. Pre-requisite: MP-Login-001.
  2. Log in to the Admin App (AA).
  3. Navigate to the Meals section in the Admin App.
  4. Identify a meal entry in the meals table that you want to delete.
  5. Click on the checkbox next to the meal entry to select it for deletion.
  6. Click on the 'Delete' button to initiate the deletion process.
  7. Verify that the system does not display any error message related to foreign key constraint violations.
  8. Confirm that the selected meal entry is deleted from the meals table.
  9. Refresh the page or navigate back to the meals table to ensure that the deleted meal entry is no longer present.

Expected Behaviour:

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.

Test Results:

Passed.

image

After deleting the meal. image

Test case name:

Verify display of error message when hitting enter with invalid credentials in the login page

Related Bug: Error message is not displayed when you hit enter while using invalid credentials #413

Steps to follow:

  1. Pre-requisite: MP-Login-001.
  2. The meal planner app should be accessible and running.
  3. Navigate to the Login page of the meal planner app.
  4. Enter invalid credentials such as 'admin' for username and 'pass' for password.
  5. Press the 'Enter' key on the keyboard.
  6. Check if an error message indicating the login failure due to wrong credentials is displayed.
  7. Verify that the error message clearly states that "invalid user credentials".

Expected Behaviour:

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.

Test Results:

Passed in all steps. image

Test case name:

Create a duplicate meal plan from an existing meal plan.

Related Bug: Duplicate meal plan #377

Steps to follow:

  1. Pre-requisite: MP-Login-001.
  2. Navigate to the existing meal plan that you want to duplicate.
  3. Open the meal plan and review its details.
  4. Look for an option or button to duplicate the meal plan.
  5. Click on the duplicate button.
  6. Provide a new name or identifier for the duplicated meal plan.
  7. Confirm the duplication process.
  8. Verify that the duplicated meal plan is created successfully.
  9. Check that the content of the duplicated meal plan matches the original one.
  10. Ensure that any assigned tags, descriptions, or other details are also copied to the duplicated meal plan.

Expected Behaviour:

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.

Test Results:

All steps passed successfully. The duplicated meal plan was created with the expected content and details matching the original meal plan.

Test case name:

Filter meals by tags on the meals page.

Related Feature: Filter by tag for meals page #517

Steps to follow:

  1. Pre-requisite: MP-Login-001.
  2. Navigate to the meals page in the meal planner app.
  3. Look for the filter options menu.
  4. Check for the presence of the "Filter by tag" option.
  5. Click on the "Filter by tag" option.
  6. Verify that a list of available tags is displayed.
  7. Select one or more tags from the list.
  8. Confirm the selection.
  9. Check that the meals displayed on the page are filtered based on the selected tags.
  10. Ensure that only meals tagged with the selected tags are shown, while others are hidden.

Expected Behaviour:

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.

Test Results:

All steps passed successfully. The meals were filtered based on the selected tags, and only the relevant meals were displayed on the page.

Test case name:

Verify all products are displayed in the product dropdown when creating a measure in Admin app.

Related Bug: [BUG] When creating measure, not all products displayed in Admin app #482

Steps to follow:

Pre-requisite: MP-Login-001

  1. Go to the 'measures/create' page in the Admin app.
  2. Click on the dropdown menu for selecting the product.
  3. Verify that all available products are listed in the dropdown menu.
  4. Check if the desired product for creating a measure is visible in the dropdown menu.

Expected Behavior:

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.

Test Results:

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.

Test case name:

Verify the presence and functionality of the search bar in the Admin App (Products)

Related Feature: No search bar on Admin App (Products) #505

Steps to follow:

Pre-requisite: MP-Login-001

  1. Open the Admin App and navigate to the Products section.
  2. Look for the presence of a search bar at the top of the Products page.
  3. Enter a specific keyword, product name, code, UPC, or tag in the search bar.
  4. Verify that the products displayed on the page are filtered based on the entered keyword.
  5. Confirm that the search results are relevant and match the entered criteria.

Expected Behaviour:

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.

Test Results:

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.

image

Test case name:

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

Steps to follow:

  1. Pre-requisite: MP-Login-001.
  2. Open the meal plans page by navigating to '/mealplans'.
  3. Hover the mouse over the trash can icon.
  4. Hover the mouse over the shopping cart icon.
  5. Hover the mouse over the duplicate icon.
  6. Verify the trash can icon, duplicate icon, and shopping card icon should turn green when the mouse is hovered over it.

Expected Behaviour:

  • 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.

Test Results:

The test passed as the trash can, duplicate icon, and shopping cart icons changed color to green when hovered over.

Screenshot (3)

Description

When deleting a meal plan from the meal plans page, a confirmation dialogue should be displayed to confirm the action.

Steps to Reproduce

  1. Pre-requisite: MP-Login-001.
  2. Navigate to the meal plans page '/mealplans'.
  3. Locate the meal plan you want to delete.
  4. Click on the trash can icon associated with the meal plan.

Expected Behavior

A confirmation dialogue should appear, asking the user to confirm the deletion of the meal plan.

Test Results:

The test passed as dialogue appeared, asking the user to confirm the deletion of the meal plan.

image

Test case name:

Verify favourites/heart icon turns red on mouse hover

Related Bug: Favourites icon doesn't turn red on mouse hover #476

Steps to follow:

  1. Pre-requisite: MP-Login-001..
  2. Navigate to the meal plans page.
  3. Locate the favourites/heart icon.
  4. Hover the mouse over the favourites/heart icon.
  5. Observe the colour change of the icon.

Expected Behaviour:

When the mouse is hovered over the favourites/heart icon, it should turn red, indicating that it is selected or active.

Test Results:

The test passed as the favourites/heart icon changed color to red when hovered over.

image

Test case name:

Verify updating the Quantity and Unit for the product Lettuce

Related Bug: Updating the Quantity and Unit for the product Lettuce #489

Description:

Ensure that the product Lettuce is correctly updated to be listed as 1 each in the products table, instead of 3 count.

Steps to follow:

  1. Pre-requisite: MP-Login-001.
  2. Open the Admin App and navigate to the Products section.
  3. Look for the presence of Lettuce in the Products page.
  4. Update the quantity and unit, the cost and product link for Lettuce in the recipes_seed.sql file to 1 each.
  5. Run the seed SQL script to populate the database with the updated data.
  6. Verify that Lettuce is listed as 1 ea in the products table.

Expected Behaviour:

After updating the quantity and unit for Lettuce, it should be correctly listed as 1 ea in the products table.

Test Results:

This test case is marked as obsolete since there is no lettuce in the database to perform the verification.

Test case name:

Verify the presence and functionality of the search bar in the Admin App (Meals)

Related Feature: No search bar on Admin App (Meals) #457

Steps to follow:

  1. Pre-requisite: MP-Login-001.
  2. Open the Admin App and navigate to the Meals section.
  3. Look for the presence of a search bar at the top of the Meals page.
  4. Enter a specific keyword, meal name, category, tag, or any other relevant information in the search bar.
  5. Verify that the meals displayed on the page are filtered based on the entered keyword.
  6. Confirm that the search results are relevant and match the entered criteria.

Expected Behaviour:

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.

Test Results:

The test passed. The search bar was present in the Admin App (Meals) section, and searching for specific keywords appropriately filtered the meals. image

Test case name:

Insert tooltip for name and description on the meal plan creation page

Related Feature: Insert a tooltip for name and description on the meal plan creation page #518

Steps to follow:

Pre-requisite: MP-Login-001.

  1. Navigate to the meal plan creation page.
  2. Locate the input field for entering the meal plan name.
  3. Hover over the input field to trigger the tooltip.
  4. 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.
  5. Repeat steps 2-4 for the description input field.
  6. Verify that the tooltip suggests adding notes based on the discussion with the client about their requirements and suggestions.

Expected Behaviour:

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).

Test Results:

Passed.

image

Test case name:

Verify automatic listing of meal plan tags for filtering

Related Feature: Filter by tags for meal plan #522

Steps to follow:

Pre-requisite: MP-Login-001.

  1. Navigate to the 'Meal plan' page from the navigation bar.
  2. Click on 'Create meal plan' button.
  3. Fill the name field with "test2" and tags with 'Keto'.
  4. Click on 'create' button to create the meal plan
  5. On the top of the page click on 'tags' radio button to display all the tags.
  6. Verify that the list of meal plan tags is automatically updated to reflect the changes made in step 1.

Expected Behaviour:

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.

Test Results:

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. Screenshot from 2024-05-16 12-32-46 Screenshot from 2024-06-11 11-36-18

Test case name:

Verify the functionality of creating and filtering meal plan templates

Related Feature: Template for meal plan #548

Steps to follow:

Pre-requisite: MP-Login-001.

  1. Log in to mealplaner UI as an admin
  2. Navigate to the "Meal Plan" from the Navigation bar.
  3. Click on the "Create Meal Plan" button to create the meal plan.
  4. select "Create New Template" to save it as a template.
  5. Fill the input name field for the first meal plan with "template1".
  6. Click on "save" button.
  7. Apply a filter to display only the templates.

Expected Behavior:

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 .

Test Results:

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. Screenshot from 2024-06-06 18-46-51

Screenshot from 2024-06-06 18-49-01

Test case name:

Verify addition of prep time, cook time, and portions to the Meal UI

Related Feature: [FEATURE] adding prep time, portions, cook time to the Meal UI #529

Steps to follow:

Pre-requisite: MP-Login-001.

  1. Access to the Meal UI with the ability to view and edit meal details.
  2. Navigate to the Meal UI page or the page where meal details are displayed.
  3. Check for the presence of UI elements that display prep time, cook time, and portions for each meal.
  4. Verify that there are distinct UI elements for displaying prep time, cook time, and portions.
  5. Create a new meal or edit an existing meal.
  6. Enter values for prep time, cook time, and portions in the respective UI elements.
  7. Save the changes to the meal.
  8. Confirm that the entered values for prep time, cook time, and portions are saved successfully.
  9. Navigate back to the Meal UI page or refresh the page to view the updated meal details.
  10. Check that the prep time, cook time, and portions for the meal are displayed correctly in the UI elements.

Expected Behaviour:

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.

Test Results:

Passed.

Test case name:

Delete measure table

Related Issue: #568

Description:

Users should be able to delete the measure table to accommodate changes related to the match issue.

Steps to follow:

Pre-requisite: Go to v1 of the MealPlanner, MP-Login-001.

  1. Navigate to the measure table section from the shopping list .
  2. Locate the option to the measure table.
  3. Confirm the deletion of the measure table.

Expected Behavior:

Upon deletion, the measure table should be successfully removed from the system, allowing for changes related to the match issue.

Test Results:

Passed in V1, not available in v2 as according to the issue #603 Shopping list under the construction.

Test case name:

Verify ability to use spaces in product keywords in Admin UI

Related Bug: [BUG] In admin UI, tags and product keywords could not have spaces #584

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access to the Admin UI as an admin.
  2. In the left navigation menu, select the section "products".
  3. Click on "Edit" on the left side in "Great Value Parmesan Cheese, 280 g" product.
  4. Scroll down to the section for Product Keywords.
  5. Enter a product keyword 'Parmesan cheese'.
  6. Confirm whether the system allows entering spaces between words in the product keyword field.

Expected Behaviour:

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.

Test Results:

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)

Screenshot from 2024-05-16 12-57-39

Test case name:

Verify successful creation of ingredients in Admin UI without error

Related Bug: [BUG] When we try to create an ingredient we get an error #595

Steps to follow:

Pre-requisite: MP-Login-001.

  1. Access to the Admin UI with permissions to manage ingredients.
  2. Navigate to the Admin UI for managing meals.
  3. Select a specific meal to which ingredients need to be added.
  4. Click on the "Ingredients" section within the meal details.
  5. Click on the "Create" button to add a new ingredient.
  6. Fill up the required fields with appropriate values, such as ingredient name, quantity, etc.
  7. Verify that all mandatory fields are properly filled.
  8. Attempt to save the ingredient by clicking on the "Save" or "Submit" button.
  9. Confirm whether the system successfully adds the ingredient without displaying any error messages.
  10. Check if the newly created ingredient appears in the list of ingredients for the selected meal.

Expected Behaviour:

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.

Test Results:

Passed.

Test case name:

Verify the embedding of images and videos for meals in the meal planner interface.

Related Feature: [FEATURE] Adding Image and Video as embedded rather than a URL or text #566

Steps to follow:

Pre-requisite: MP-Login-001.

  1. Access to the Admin UI as an admin.
  2. In the left navigation menu, select the section "Meals".
  3. Click on "Create" button on the right corner.
  4. Fill the name field with "Marinara Sauce".
  5. Fill the Photo url field with "https://goodmealplan.com/pictures/Marinara%20Sauce.jpg".
  6. Fill the viedo url field with "https://www.youtube.com/watch?v=q35rhlsJ-v0".
  7. Click on play button of the embedded video and it should be controlled (played and paused).
  8. 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.

Expected Behaviour:

  1. In the meals list view for the meal with Name en 'Marinara Sauce' see the Photo url column value displayed as a thumbnail.
  2. In the meals list view for the meal with Name en 'Marinara Sauce' see the video url column value displayed as a embedded video.
  3. In the meals list view for the meal with Name en 'Marinara Sauce' Clicking on the play button will start displaying the video.
  4. The displayed video for the meal with Name en 'Marinara Sauce' can be played in full screen and back to normal size.

Test Results:

Test Case Passed.

Screenshot from 2024-05-14 10-25-00

Test case name:

Ensure ingredient code is unique for each meal

Related Bug ID: #592

Steps to follow:

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"

Expected Behaviour:

Ingredient codes should be unique for each meal, preventing the duplication of codes across different meals in the system.

Test Results:

Passed successfully.

image

Test case name:

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

Steps to follow:

Pre-requisite: MP-Login-001.

  1. Pre-requisite: Access to the Admin UI with permissions to manage meals.
  2. Navigate to the Admin UI for managing meals.
  3. Select a specific meal for editing or viewing.
  4. Confirm the presence of a show button associated with the selected meal.
  5. Click on the show button to access the show page for the meal.
  6. Verify that the show page displays all relevant details and attributes of the meal, including its name, description, ingredients, and any other pertinent information.
  7. If available, navigate back to the list of meals.
  8. Repeat steps 3-5 for a different meal, ensuring consistency in the presence and functionality of the show button.
  9. Now, attempt to edit a meal by clicking on the edit button or link.
  10. After making changes to the meal, save the edits and observe the redirection behavior.
  11. Confirm whether the edit operation redirects the user to the corresponding show page for the edited meal instead of the meals list page.
  12. If necessary, navigate back to the list of meals and repeat the edit process for another meal to validate consistency in redirection behavior.

Expected Behaviour:

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.

Test Results:

Passed successfully as there is a dedicated show page for each meal along with a show button for convenient access.

image

Test case name:

Displaying user's favorite meals

Related Feature ID: #516

Description:

This feature allows users to view their favorite meals easily.

Steps to follow:

Pre-requisite: MP-Login-001.

  1. Navigate to the meals page.
  2. Click on "heart" icon in "Tartare Sauce" to make it a favorite meal.
  3. Click on "heart" icon in "Corn Fritters" to make it a favorite meal.
  4. Click on "My Favorites" radio button on the top of the page to filter the meals by displaying your user's favorite meals.
  5. Verify that "Tartare Sauce" and "Corn Fritters" are displayed without any other meals

Expected Behavior:

  • 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.

Test Results:

Passed as only the favorite meals of the currently logged-in user is displayed.

Screenshot from 2024-05-23 11-40-43

Test case name:

Update meal table with prep time, cook time, and portions

Related Feature ID: #537

Description:

This feature updates the meal table to include columns for preparation time, cooking time, and portions.

Steps to follow:

Pre-requisite: MP-Login-001.

  1. Log in to the application with valid credentials.
  2. Navigate to the "Meal" section or any relevant page displaying meal information.
  3. Check for the presence of columns labeled "Prep Time," "Cook Time," and "Portions" in the meal table.
  4. Verify that the data displayed in these columns corresponds to the preparation time, cooking time, and portions of each meal.
  5. Ensure that the columns are labeled correctly and clearly visible to users.

Expected Behavior:

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 Results:

Test case passed: All steps were successfully executed, and the expected behavior was observed. image

Test case name:

Verify Admin UI changes for ingredient table and product table

Related Feature: [FEATURE] Admin UI changes for ingredient table and product table #543

Steps to follow:

Pre-requisite: MP-Login-001

  1. Logon to the Admin UI.
  2. On the top left side of the page, Click on "meals" .
  3. To create a new meal, click on the "Create" icon on the top right corner.
  4. Enter the details of a meal such as Name, tag, Portions, Quantity , description, cook time, prep time, etc. Click Save.
  5. 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.
  6. From the Meal search page, Navigate to the ingredient table by clicking the "show" icon at the right of the list.
  7. Verify that the new ingredient table is displayed with the updated columns as per the solution described in the feature request.
  8. Verify options to create, edit, and delete columns in the ingredient table.
  9. Click on Ingredients, verify you can add or modify items on the the table.
  10. Click on the checkbox on the left of an ingredient to verify the ability to "delete" items from the table.
  11. Navigate to the product table section in the Admin UI on the top left corner of the page.
  12. Verify that the product table has a "CREATE" icon on the top right corner of the page.
  13. 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.

Expected Behaviour:

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.

Test Results:

Passed.

image

Test case name:

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

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access to the Admin UI with permissions assigned as a meal designer.
  2. Navigate to the meals section in the Admin UI.
  3. Verify that as a meal designer, you have access to modify existing meals, including recipes, ingredients, products, and nutrition details.
  4. Check for options to add, edit, and delete meals.
  5. Ensure that the Admin UI provides functionality to modify ingredients, products, and nutrition associated with meals.
  6. Navigate to the products section in the Admin UI.
  7. Verify that as a meal designer, you can modify existing products used in meal recipes.
  8. Check for options to add, edit, and delete products.
  9. Ensure that the Admin UI provides functionality to modify details such as ingredients, nutrition, and availability for products.
  10. Navigate to the nutrition section in the Admin UI.
  11. Verify that as a meal designer, you have access to modify nutrition information for meals and products.
  12. Check for options to add, edit, and delete nutrition details.
  13. Ensure that the Admin UI provides functionality to update nutritional values and specifications for meals and products.

Expected Behaviour:

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 Results:

Test case passed.

Test case name:

Verify the ability to assign a unique code to meals and ingredients

Related Feature: [FEATURE] Assign a meal code and ingredient code #564

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access to the Admin UI with permissions assigned as an admin or meal designer.
  2. Navigate to the meals section in the Admin UI.
  3. Check for the option to assign a unique code to each meal.
  4. Verify that the assigned meal codes are unique and consistent across the system.
  5. Navigate to the ingredients section in the Admin UI.
  6. Check for the option to assign a unique code to each ingredient.
  7. Verify that the assigned ingredient codes are unique and consistent across the system.
  8. Create new meals and ingredients and observe the automatic assignment of codes.
  9. Delete meals and ingredients and ensure that the codes are not reused.
  10. Update existing meals and ingredients and verify that the codes remain consistent.

Expected Behaviour:

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 Results:

Test case passed.

Test case name:

Verify Tags in meal plan and meal are ordered in alphabetical order

Related Feature: #707

Steps to follow:

Pre-requisite: MP-Login-001.

  1. Navigate to "meals" page from the navigation bar.
  2. Click on "Tags" radio button.
  3. Navigate to "meal Plans" page from the navigation bar.
  4. Click on "Tags" radio button.

Expected Behaviour:

On meal plan and meal Tags should be ordered in alphabetical order

Test Results:

Test case passed.

Screenshot from 2024-06-06 13-08-15 Screenshot from 2024-06-11 12-51-16

Test case name:

Verify the consistency of field names for recipes and ingredients with the database schema

Related Issue: #547

Steps to follow:

Pre-requisite: MP-Login-001, MP-SelectUser-007

  1. Access to the Admin UI with permissions to view recipe and ingredient details.
  2. Log in to the application with valid credentials.
  3. Navigate to the "Recipes" section.
  4. Verify that the field names for recipes (such as "Recipe Name," "Ingredients," "Instructions,") match the corresponding fields in the database schema.
  5. Similarly, navigate to the "Ingredients" section or any relevant page displaying ingredient information.
  6. Confirm that the field names for ingredients (such as "Ingredient Name," "Category," "Quantity," etc.) align with the corresponding fields in the database schema.
  7. Check that any changes made to the field names reflect accurately in the UI.
  8. Test the functionality related to adding, editing, and deleting recipes and ingredients to ensure compatibility with the updated field names.

Expected Behaviour:

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 Results:

Test case passed.

Test case name:

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

Steps to follow:

Pre-requisite: MP-Login-001, MP-SelectUser-007

  1. Create a new user with the role of 'meal designer'.
  2. Verify that the user with the role of 'meal designer' has access to the Admin UI.
  3. Check whether the options to manage meals, products, and nutrition are visible for the meal designer role.
  4. Ensure that the meal designer role does not have visibility or access to user administration functionalities.

Expected Behaviour:

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 Results:

Test case passed.

Test case name:

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

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access the Admin UI with permissions assigned as a meal designer.
  2. Navigate to the meals section.
  3. Locate and select the meal intended for modification.
  4. Verify that options to edit and update meal details, including recipes and nutritional information, are available.
  5. Apply modifications to the meal as necessary.
  6. Confirm the changes are successfully applied.

Expected Behaviour:

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 Results:

Test case passed.

Test case name:

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

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access the Admin UI with permissions assigned as a meal designer.
  2. Navigate to the meals section.
  3. Verify that all existing meals are visible and accessible for viewing.
  4. Check whether meal details including recipes and nutritional information are displayed accurately.

Expected Behaviour:

Meal designers should be able to view meal details including recipes and nutritional information within the Admin UI.

Test Results:

Test case passed.

Test case name:

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

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access the Admin UI with permissions assigned as a meal designer.
  2. Navigate to the ingredients section.
  3. Verify that all existing ingredients are visible and accessible for viewing.
  4. Check whether ingredient details are displayed accurately.

Expected Behaviour:

Meal designers should be able to view ingredient details within the Admin UI.

Test Results:

Test case passed.

Test case name:

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

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access the Admin UI with permissions assigned as a meal designer.
  2. Navigate to the ingredients section.
  3. Locate the option to create a new ingredient.
  4. Provide necessary details for the new ingredient such as name, type, and nutritional information.
  5. Confirm the creation of the new ingredient.

Expected Behaviour:

Meal designers should be able to create new ingredients within the Admin UI, providing necessary details for future reference and utilization.

Test Results:

Test case passed.

Test case name:

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

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access the Admin UI with permissions assigned as a meal designer.
  2. Navigate to the ingredients section.
  3. Locate and select the existing ingredient intended for modification.
  4. Edit the necessary details for the ingredient.
  5. Confirm the changes are successfully applied.

Expected Behaviour:

Meal designers should be able to edit existing ingredients within the Admin UI, ensuring updated details are accurately reflected.

Test Results:

Test case passed.

Test case name:

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

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access the Admin UI with permissions assigned as a meal designer.
  2. Navigate to the ingredients section.
  3. Select the ingredient intended for matching.
  4. Choose the corresponding product from the available options.
  5. Confirm the matching process.

Expected Behaviour:

Meal designers should be able to match ingredients to corresponding products within the Admin UI, facilitating accurate meal preparation and nutritional tracking.

Test Results:

Test case passed.

Test case name:

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

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access the Admin UI with permissions assigned as a meal designer.
  2. Navigate to the ingredients section.
  3. Locate and select the existing ingredient intended for deletion.
  4. Confirm the deletion action.

Expected Behaviour:

Meal designers should be able to delete existing ingredients within the Admin UI, ensuring accurate management of ingredient inventory.

Test Results:

Test case passed.

Test case name:

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

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access the Admin UI with permissions assigned as a meal designer.
  2. In the left navigation menu, select the section 'products'.
  3. Click on the 'create' button on the top right to create a new product.
  4. Fill the name, quantity, Price, and 'product Keywords' with "test", 1", "1" and "Butter".
  5. Click on Save.

Expected Behaviour:

Meal designers should be able to create new products within the Admin UI, providing necessary details for future reference and utilization.

Test Results:

Test case passed. Screenshot from 2024-06-12 10-41-45

Test case name:

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

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access the Admin UI with permissions assigned as a meal designer.
  2. Navigate to the products section.
  3. Locate and select the existing product intended for modification.
  4. Edit the necessary details for the product.
  5. Confirm the changes are successfully applied.

Expected Behaviour:

Meal designers should be able to edit existing products within the Admin UI, ensuring updated details are accurately reflected.

Test Results:

Test case passed.

Test case name:

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

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access the Admin UI with permissions assigned as a meal designer.
  2. Navigate to the products section.
  3. Locate and select the existing product intended for deletion.
  4. Confirm the deletion action.

Expected Behaviour:

Meal designers should be able to delete existing products within the Admin UI, ensuring accurate management of product inventory.

Test Results:

Test case passed.

Test case name:

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

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access the Admin UI with permissions assigned as an admin.
  2. Navigate to the user management section.
  3. Choose to create a new user with the role of 'meal designer'.
  4. Provide necessary details for the new user.
  5. Confirm the creation of the new user.

Expected Behaviour:

Admins should be able to create new users with the role of 'meal designer' within the Admin UI, facilitating user management processes.

Test Results:

Test case passed.

Test case name:

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

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access the Admin UI with permissions assigned as an admin.
  2. Navigate to the user management section.
  3. Locate and select the user intended for role assignment.
  4. Choose to assign the role of 'meal designer' to the selected user.
  5. Confirm the role assignment.

Expected Behaviour:

Admins should be able to assign the role of 'meal designer' to existing users within the Admin UI, facilitating user management processes.

Test Results:

Test case passed.

Test case name:

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

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access the Admin UI with permissions assigned as an admin.
  2. Navigate to the user management section.
  3. Locate and select the user intended for role assignment.
  4. Choose to assign the role of 'admin' to the selected user.
  5. Confirm the role assignment.

Expected Behaviour:

Admins should be able to assign the role of 'admin' to existing users within the Admin UI, facilitating user management processes.

Test Results:

Test case passed.

Test case name:

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

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access the Admin UI with permissions assigned as an admin.
  2. Navigate to the user management section.
  3. Locate and select the user intended for role assignment.
  4. Attempt to assign the role of 'client' to the selected user.
  5. Verify that the option to assign the role of 'client' is not available.

Expected Behaviour:

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 Results:

Test case passed.

Test case name:

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

Steps to follow:

  1. Attempt to log in to the Admin UI with credentials of a user assigned the role of 'client'.
  2. Verify that the login attempt is unsuccessful.
  3. Ensure that users with the role of 'client' cannot access the Admin UI.

Expected Behaviour:

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 Results:

Test case passed.

Test case name:

Verify the functionality of the search feature for products in the admin UI

Related Issue: #593

Steps to follow:

  1. Pre-requisite: Access to the Admin UI with permissions to view product details.
  2. Log in to the application with valid credentials.
  3. Navigate to the "Products" section in the Admin UI.
  4. Verify that the list of products displayed in the table includes all records from the database.
  5. Attempt to search for a specific product using the search functionality.
  6. Enter a search query, such as the name or part of the name of a known product, in the search bar.
  7. Check that the search results accurately reflect the products matching the search query.
  8. If the product 'Lasagna' is present in the database, ensure that it appears in the search results.
  9. If the product 'Lasagna' does not appear in the search results, verify that there are no issues with the product data or search functionality.
  10. Test different search queries to ensure that the search feature is working as expected for various input scenarios.

Expected Behaviour:

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 Results:

Test case passed.

image

Test case name:

Viewing a specific meal without logging in

Related Issue: #560

Description:

This test case verifies the functionality of allowing users to view specific meal pages without requiring them to log in.

Steps to follow:

  1. Go to 'https://develop.goodmealplan.com/#/meals/'.
  2. Click on a 'Salsa Cruda' meal to view its details.
  3. Verify that the meal page loads successfully and displays the details of the selected meal.
  4. Confirm that the user is not prompted to log in during the process.

Expected Behavior:

Individual meal pages should be accessible to users without the need to log in, ensuring that anonymous users can view meal recipes seamlessly.

Test Results:

Passed successfully Screenshot from 2024-05-14 11-20-25

Screenshot from 2024-05-14 11-20-31

Test case name:

Displaying templates along with all meal plans

Related Issue: #602

Description:

This test case verifies the functionality of displaying templates along with all meal plans in the list.

Steps to follow:

Pre-requisites: MP-Login-001, MP-Template-031

  1. Navigate to the "Meal Plan" section of the application.
  2. Click on the option to create a new template.
  3. View the list of meal plans to observe the presence of templates.
  4. Check whether templates are visible by default without applying any filters.

Expected Behavior:

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 Results:

Test case passed. image

Test case name:

Verify functionality of search for meals in Admin UI

Related Issue: Admin UI: Search for meals is not working as before #624

Steps to follow:

  1. Pre-requisite: MP-Login-001
  2. Navigate to the Admin UI.
  3. Click on the 'Meals' section to access the meals page.
  4. In the search bar provided, enter the keyword 'bread' to search for meals containing the word 'bread'.
  5. Press the Enter key or click on the search icon to initiate the search.
  6. Verify the search results displayed on the page.
  7. Check that the search results include all meals containing the keyword 'bread'.
  8. Compare the search results with the expected results from the test server screenshot provided.

Expected Behaviour:

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 Results:

Test case passed.

image

Test case name:

Verify functionality of reset password for users in Admin UI

Related Issue: Reset password in admin UI throws error and does not update password #XXX

Steps to follow:

  1. Pre-requisite: MP-Login-001
  2. Navigate to the Admin UI.
  3. Click on the 'Users' section to access the users page.
  4. Select any user from the list for whom the password needs to be reset.
  5. Locate the 'RESET PASSWORD' button associated with the selected user.
  6. Enter a new password in the provided field.
  7. Click on the 'RESET PASSWORD' button to initiate the password reset process.
  8. Monitor for any response from the UI after clicking the button.
  9. Check the JavaScript console for any errors or warnings.
  10. Verify that the password is updated successfully for the selected user.
  11. Confirm that the UI displays an appropriate success message indicating that the password has been updated.

Expected Behaviour:

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 Results:

Test case passed.

Test case name:

Verify removal of favorite icon from meal plan card

Related Issue: Remove favorite icon from meal plan #623

Steps to follow:

  1. Pr-requisite: MP-Login-001
  2. From the navigation bar, click on "meal plans" to go to the meal plans page.
  3. Locate a meal plan card.
  4. Confirm that the favorite icon is no longer displayed on the meal plan card.
  5. Check if there are any changes in functionality or layout after the removal of the favorite icon.
  6. Navigate to other meal plan cards to ensure the favorite icon has been removed universally.
  7. Perform a page refresh and re-verify that the favorite icon is still absent from the meal plan cards.

Expected Behavior:

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 Results:

Test case passed.

image

Test case name:

Verify visibility of ingredients in Meal page

Related Issue: Ingredients needs to be visible in Meal page #609

Steps to follow:

  1. Pre-requisite:MP-Login-001
  2. Navigate to the Meal page of the application.
  3. Select a meal and click on it to view its details.
  4. Check for the presence of ingredients listed along with their quantity and unit in a table at the bottom left of the screen.
  5. Verify that each ingredient listed matches the ingredients used in the meal recipe.
  6. Ensure that the ingredients are displayed clearly and legibly for easy readability.
  7. Click on each ingredient to verify if it provides additional details or options (if applicable).
  8. Repeat the above steps for multiple meals with different recipes to ensure consistency.

Expected Behaviour:

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 Results:

Test case passed. image

Test case name:

Verify display of meal name in ingredient page of Admin UI

Related Issue: [BUG] Meal name should appear in the ingredient page of admin UI #621

Steps to follow:

  1. Pre-requisite: MP-Login-001
  2. Navigate to the Meals section in the admin UI.
  3. Select a specific meal, for example, "Chicken Curry".
  4. Click on the show icon to see details of the meal.
  5. Click on the Ingredients tab to view the ingredients associated with the selected meal.
  6. Check whether the meal name is displayed prominently on the Ingredients page.
  7. Verify that the meal name is clearly visible and identifiable, above ingredient table, indicating which meal the listed ingredients belong to.
  8. Ensure that the meal name is consistently displayed at the top or in a prominent position on the Ingredients page for easy reference.

Expected Behaviour:

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 Results:

Test case passed.

image

Test case name:

Display nutrition data of meal in the Mealplanner UI

Related Feature: Nutrition Data of Meal to be displayed in the Mealplanner UI #614

Steps to follow:

  1. Pre-requisite: MP-Login-001
  2. Navigate to the Mealplanner UI.
  3. Locate a meal with existing nutrition data.
  4. Hover over the Nutrition star icon associated with the meal.
  5. Verify that when there is no data for the meal in the nutrition table, 'No data' is displayed upon hovering over the icon.
  6. If nutrition data is available, ensure that only the relevant values with data are displayed upon hovering over the icon.
  7. Check that the displayed nutrition values are accurate and correspond to the actual data entered in the nutrition table.
  8. Repeat the above steps for multiple meals with varying nutrition data entries.
  9. Ensure that the display of nutrition data is consistent across different meals and accurately reflects the data entered in the nutrition table.

Expected Behaviour:

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 Results:

Test case passed.

image

Test case name:

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

Steps to follow:

  1. Pre-requisite: MP-Login-001
  2. Navigate to the Meal Plans page.
  3. Locate the Meal Plan cards displayed on the page.
  4. Verify that for Meal Plans without any user assigned, the user circle is displayed as empty.
  5. Confirm that for Meal Plans designated as templates, the user circle is displayed as grey with the letter 'T'.
  6. 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.
  7. Check that the visual differentiation between Meal Plans with no user assigned and template Meal Plans is clear and easily distinguishable.
  8. Ensure that the visual representation of the Meal Plan card remains consistent across different views and screen sizes.

Expected Behaviour:

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 Results:

Test case passed.

image

Test case name:

Match multiple products to an ingredient

Related Issue: #570

Description:

This test case verifies admin can match multiple products to an ingredient and the products are displayed in the shopping list.

Steps to follow:

Pre-requisite: MP-Template-031

  1. Access to the Admin UI as an admin.
  2. Click on the "show" button on the targeted meal "Tourtiere".
  3. Navigate to the ingredients section.
  4. Click on "Match" on the targeted ingredient "Onion".
  5. Select the products that match the ingredients "Onion, Red, 3 lb Bag", and "Red Onions, Sold in singles, 0.16 - 0.30 kg".
  6. Select "Red Onions, Sold in singles" as the best product.
  7. Click "save".
  8. On mealplanner ui Select "Tourtiere" from the selected meal catalogue.
  9. Drag and drop it in the specific category of the meal plan.
  10. Navigate back to "meal plans"
  11. Click on the shopping icon.
  12. 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.
  13. 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.

Expected Behavior:

The matched Products are displayed in the shopping list.

Test Results:

Test case passed.

Screenshot from 2024-04-16 14-00-31

Screenshot 2024-04-26 102336

Screenshot from 2024-04-16 14-00-01

Test case name:

Creating two meal plans

Related Issue: #629

Description:

This test case verifies creating more than one meal plan or template without the need to refresh the page

Steps to follow:

Pre-requisite: MP-Login-001

  1. Navigate to the "Meal Plan" section of the application.
  2. Click on the "Create Meal Plan" button to create the first meal plan.
  3. Choose "Create New Meal Plan"
  4. Fill the input name field for the first meal plan
  5. Click on Create button
  6. Click on the "Create Meal Plan" button to create the second meal plan.
  7. Choose "Create New Meal Plan"
  8. Fill the name input field for the second meal plan
  9. Click on Create button
  10. Check if the meal plans are displayed.

Expected Behavior:

The meal plans are created and displayed correctly

Test Results:

Test case passed

Test case name:

Verify displaying Civic Tech logo and name in the printout of the recipe (meal)

Related Issue: #469

Description:

This test case verifies displaying Civic Tech logo and name in the printout of the recipe (meal) in the footer of every page.

Steps to follow:

Pre-requisite: MP-Login-001

  1. From the navigation bar, click on "meal" to navigate to the meals page.
  2. Click on "Apple Fritters" meal to display it.
  3. Click on the print icon on the Apple Fritters page.
  4. Verify that in the footer of every page Civic Tech logo and name are displayed in both Orientation, portrait and landscape .

Expected Behavior:

Civic Tech logo and name in the printout of the recipe (meal) are displayed in the footer of every page.

Test Results:

The test case passed.

Screenshot from 2024-05-06 09-33-31

Screenshot from 2024-05-06 09-33-40

Screenshot from 2024-05-06 09-33-56

Screenshot from 2024-05-06 09-34-01

Test case name:

Verify meal with no name cannot be created

Related Issue: #355

Description:

This test case verifies meal with no name cannot be created in the admin UI

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access to the Admin UI as an admin.
  2. Leave the Name en field blank
  3. Insert any character in any other field to enable the save button
  4. leave all the other fields blank.
  5. Click on the "Create" button.
  6. Verify that no meal is created without the minimum requirement which is the Name en field.

Expected Behavior:

A meal with no name cannot be created

Test Results:

Test case passed

Screenshot 2024-04-24 162633

Screenshot 2024-04-24 162406

Test case name:

Verify tags are being aligned in multiple lines.

Related Issue: #580

Description:

This test case verifies that tags are being aligned in multiple lines to the given width of the main page.

Steps to follow:

Pre-requisite: MP-Login-001

  1. Navigate to the meals page.
  2. Click on the Tags radio button.
  3. Verify that the tags are aligned in multiple lines to the given width of the main page.

Expected Behavior:

Tags should be aligned in multiple lines to the given width of the main page.

Test Results:

Test case passed

Screenshot from 2024-04-23 18-58-15

Test case name:

Verify The primary ingredient are displayed when there are substitutes for ingredients in a meal.

Related Issue: #644

Description:

This test case verifies that The primary ingredient are displayed when there are substitutes for ingredients in a meal.

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access to the Admin UI as an admin.
  2. In the left navigation menu, select the section ‘Meals’.
  3. Click on 'Bread and Butter Pudding'.
  4. Check the ingredients list. This has Butter and Margarine as well as Apricot Jam, Raspberry Jam, Marmalade.
  5. Go to 'Mealplanner UI'.
  6. Navigate to "meals" page from the navigation bar.
  7. Search for "Bread and Butter Pudding".
  8. Verify that Butter, and Apricot Jam are displayed.

Expected Behavior:

The primary ingredient are displayed when there are substitutes for ingredients in a meal.

Test Results:

Test case Passed.

Screenshot from 2024-05-06 10-13-23

Screenshot from 2024-05-06 10-13-28

Screenshot from 2024-05-21 09-12-46

Test case name:

Verify Search product is working for any word in the product name.

Related Issue: #656

Description:

This test case verifies that The Search product is working for any word in the product name.

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access to the Admin UI as an admin.
  2. In the left navigation menu, select the section ‘Products’.
  3. Search for "peppercorns".
  4. Check the number of the products that returned in the list.
  5. Perform the search again with "peppercorn" in the singular.
  6. Verify that the search results for "peppercorn" and "peppercorns" are the same.

Expected Behavior:

Search should work for any word in the product name.

Test Results:

Test case passed.

Screenshot from 2024-05-10 11-48-51

Screenshot from 2024-05-10 11-48-58

Test case name:

Verify display the reason for substitute ingredient.

Related Issue: #637

Description:

This test case verifies that the reason for substitute ingredient is displayed.

Steps to follow:

Pre-requisite: MP-Template-031

  1. Navigate to "meal plans" from the navigation bar.
  2. Select "Breakfast Burrito" from the selected meal catalogue.
  3. Drag and drop it in the specific category of the meal plan.
  4. Navigate back to "meal plans".
  5. Click on the shopping icon.
  6. Verify that the red pepper has reason for substitute displayed.

Expected Behavior:

The reason for substitute ingredient is displayed.

Test Results:

Test case passed.

Screenshot from 2024-05-10 12-30-45

Test case name:

Verify the type of the price and the quantity is number.

Related Issue: #637

Description:

This test case verifies that the type of the price and the quantity is number..

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access to the Admin UI as an admin.
  2. In the left navigation menu, select the section "Products".
  3. Click on "Create" button on the right corner.
  4. Type "d" letter in the price field.
  5. Click on the "save" button.
  6. Verify that error message is displayed.
  7. Type "d" letter in the quantity field.
  8. Verify that error message is displayed.

Expected Behavior:

An error message displays when the type if the price or the quantity is not a number.

Test Results:

Test case passed.

Screenshot from 2024-05-10 12-38-41

Screenshot from 2024-05-10 12-38-56

Test case name:

Verify the ingredients page has a link back to Meal from the meal name

Related Issue: #645

Description:

This test case verifies that the ingredients page has a link back to Meal from the meal name.

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access to the Admin UI as an admin.
  2. In the left navigation menu, select the section "Meals".
  3. Click on "Show" button on the right corner of 'Chicken Curry' meal.
  4. Click on "ingredients" on the bottom to go to the ingredients page
  5. Verify that page has a link to the "Chicken Curry" meal on the top left side.
  6. Click on "Chicken Curry" on the top left side.
  7. Verify that you navigated back to the "Chicken Curry" meal page.

Expected Behavior:

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 Results:

Test case passed.

Screenshot from 2024-05-15 17-55-21

Test case name:

Verify the ingredient page has the meal name.

Related Issue: #621

Description:

This test case verifies that the ingredient page has the meal name.

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access to the Admin UI as an admin.
  2. In the left navigation menu, select the section "Meals".
  3. Click on "Show" button on the right corner of 'Chicken Curry' meal.
  4. Click on "ingredients" on the bottom to go to the ingredients page
  5. Verify that page has the "Chicken Curry" meal name on the top left side.

Expected Behavior:

when I go to the ingredients list, meal name should be displayed in the ingredients page.

Test Results:

Test case passed.

Screenshot from 2024-05-15 17-55-21

Test case name:

Verify ability to use spaces in tags in Admin UI

Related Bug: [BUG] In admin UI, tags and tags could not have spaces #584

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access to the Admin UI as an admin.
  2. In the left navigation menu, select the section "products".
  3. Click on "Edit" on the left side in "Great Value Parmesan Cheese, 280 g" product.
  4. Scroll down to the section for tags.
  5. Enter a product keyword 'Test tag'.
  6. Confirm whether the system allows entering spaces between words in the tagfield.

Expected Behaviour:

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.

Test Results:

Passed as in the Admin UI for managing products, users could use spaces in tag names successfully.

Screenshot from 2024-05-16 12-57-57

Test case name:

Verify the meal plan print page has civictech logo on the footer.

Related Bug:#673

Steps to follow:

MP-Template-031

  1. Navigate to "Meal Plan" page from the navigation bar.
  2. Click on the meal plan to display the meal plan calendar.
  3. Click on "Print" icon on the top left of the page.
  4. Verify that the meal plan print page has a Civictech logo on the page footer.

Expected Behaviour:

The meal plan print page Should has a Civictech logo displayed on the page footer.

Test Result

Passed

Screenshot from 2024-05-30 11-23-02

Test case name:

Verify the favorite feature for meal

Related Bug: [BUG] Favorite feature for meal #455

Steps to follow:

Pre-requisite: MP-Login-001

  1. From the navigation bar, click on "meal" to navigate to the meals page.
  2. Click on the heart icon to select "Tartare Sauce", "Cheddar, Apple Muffins" and "Corn Fritts" meals as favorites.
  3. Confirm that heart icon is now red in color to show the meals have been selected as a favorite meal.
  4. Click again on the heart icon to delete "Tartare Sauce" from the favorite.

Expected Behaviour:

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.

Test Results:

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.

image

Test case name:

Verify there is a sorting feature with the Favorite category for meals.

Related Bug: [BUG] Favorite feature for meal #455

Steps to follow:

Pre-requisite: MP-Favoritefeatureformeal-085

  1. From the navigation bar, click on "meal" to navigate to the meals page.
  2. Click on "My favorite" radio button to display only meals in favorite category.
  3. Confirm that only favorite meals with the red heart icons are displayed.

Expected Behavior:

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.

Test Results:

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. Screenshot from 2024-06-04 10-20-24

Test case name:

Verify the exciting of CREATE button for Ingredients when there are no ingredients yet

Related Issue: #685

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access to the Admin UI as an admin.
  2. In the left navigation menu, select the section "Meals".
  3. Click on the "Create" button to create new meal.
  4. Fill the name en field with "test1".
  5. Click on "save" button on the bottom of the page.
  6. From the "Meals" section, Click on "Show" button beside the "test1" meal.
  7. Click on "Ingredients" button.
  8. Verify that there is a "Create" button to create the first ingredient.
  9. Click on the "create" button and fill ingredient name, quantity,unit, and product keyword with "testIn", "1", "tsp" and "test"
  10. Click on the "Save" button.
  11. Verify that the ingredient has been created.

Expected Behaviour:

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 Results:

Test case passed.

Screenshot from 2024-05-30 12-01-50 Screenshot from 2024-05-30 12-02-13 Screenshot from 2024-05-30 12-15-35 Screenshot from 2024-05-30 12-16-57

Test case name:

Verify the ingredients and method are displayed without unnecessary blank space.

Related Issue: #670

Description:

This test case verifies that the ingredients and method should be displayed right after the meal picture, title, and description without unnecessary blank space.

Steps to follow:

Pre-requisite: MP-Login-001

  1. Navigate to "meals" page from the navigation bar.
  2. Search for "Salsa Cruda" and click on it to view its details.
  3. Verify that page has no unnecessary blank space before ingredients and method.

Expected Behavior:

On the meal page, the ingredients and method should be displayed right after the meal picture, title, and description without unnecessary blank space.

Test Results:

Test case passed.

Screenshot from 2024-05-30 12-35-50

Test case name:

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

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access to the Admin UI as an admin.
  2. In the left navigation menu, select the section "Meals".
  3. Click on the "Show" button on the left side of "Tuna Noodle Casserole" meal to view it.
  4. Navigate to "summery" tab to display the tips.
  5. Verify that the tips are written in bullet points.

Expected Behaviour:

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.

Test Results:

Passed Screenshot from 2024-06-11 09-34-41 Screenshot from 2024-06-11 11-06-21

Test case name:

Verify the Unit is displayed next to the quantity in the Products Match view.

Related Issue: #625

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access the "Admin UI" as an admin.
  2. In the left navigation menu, select the section "Meals".
  3. Click on "show" button on the left side of the "Chicken Curry" meal to display it.
  4. Click on "Ingredients" button.
  5. In Ingredients page, select MATCH of an ingredient on the left side.
  6. In the Matches page, you will see the grid of products.
  7. Verify that the unit is displayed next to the quantity in the products table.

Expected Behavior:

Upon accessing the match page of the product, the unit is displayed next to the quantity in the products table.

Test Results:

Test case Passed

image

Test case name:

Verify the admin can register new user.

Related Issue:

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access the "Admin UI" as an admin.
  2. In the left navigation menu, select the section "Users".
  3. Click on "Register" button on the top left side of the page.
  4. Fill the name, email, password, confirm password fields with "test", "user@example.com", "password1" and "password1"
  5. Click on the "Register" on the bottom of the page.
  6. Verify that user is created with role "Client".

Expected Behavior:

The admin can create a new user and give the user a role.

Test Results:

Test case Passed.

Screenshot from 2024-05-31 12-04-31

Test case name:

Verify the new user must agree on terms and conditions

Related Issue: #632

Description:

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.

Steps to follow:

Pre-requisite:RegisterNewUser-91

  1. Login to "https://goodmealplan.com/#/" using the new user credentials.
  2. Verify that terms and conditions page is displayed.
  3. On the URL try to navigate to "mealplans" page by editing the URL to "https://goodmealplan.com/#/mealplans"
  4. Verify that page "mealplans" are not displayed and you are redirected to terms and conditions page.
  5. On the URL try to navigate to "meals" page by editing the URL to "https://goodmealplan.com/#/meals"
  6. Verify that page "meals" are displayed as this page is available for any user without registration.

Expected Behavior:

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 Results:

Test case passed. Screenshot from 2024-05-31 11-51-33 Screenshot from 2024-05-31 11-52-17 Screenshot from 2024-05-31 11-52-59

Test case name:

Verify the user who reject the conditions doesn't have access to the meal plans

Related Issue: #632

Description:

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.

Steps to follow:

Pre-requisite: MP-TermsPage-092

  1. Click On "Reject" button on the bottom of "https://develop.goodmealplan.com/#/terms" page.
  2. Verify that you are logged out and directed to the login page.

Expected Behavior:

When the new user reject the conditions he must be logged out automatically and directed to the login page.

Test Results:

Test case passed.

Test case name:

Verify the user who accept the conditions have access to the meal plans

Related Issue: #632

Description:

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.

Steps to follow:

Pre-requisite: MP-TermsPage-092

  1. On the "https://develop.goodmealplan.com/#/terms" page click on the "I agree with the Terms and Conditions" checkbox .
  2. Click On "Accept" button on the bottom of page
  3. Verify that you are directed to meal plans page.
  4. Click on the "log out" icon.
  5. Log in again using the same user.
  6. verify that you are redirected to meal plans page without displaying the terms and conditions page again.

Expected Behavior:

When the new user accept the conditions he must be directed to meal plan page and can use the website features.

Test Results:

Test case passed. Screenshot from 2024-05-31 11-53-57 Screenshot from 2024-05-31 11-54-07

Test case name:

Verify the client user can copy a meal plan template.

Related Issue: #667

Description:

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.

Steps to follow:

Pre-requisite: MP-AcceptConditions-094

  1. Navigate to the "Meal Plan" section of the application.
  2. Click on the "Create Meal Plan" button to create the first meal plan.
  3. Fill the input field name with "test".
  4. Click on Create button.
  5. Verify that the new meal plan template has a "copy" icon.
  6. Click on the "copy" icon on the meal plan card.
  7. Verify that the another meal plan is created.

Expected Behavior:

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 Results:

Test case passed. Screenshot from 2024-05-31 17-41-04 Screenshot from 2024-05-31 17-44-42

Test case name:

Verify ability to create substitute ingredient relating to a primary ingredient

Related Bug: [BUG] Unable to create substitute ingredient relating to a primary ingredient #668

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access the Admin UI as an admin.
  2. In the left navigation menu, select the section "Meals".
  3. In the search bar, search for a meal such as "rice pilaf"
  4. Click on the SHOW button
  5. Click on "Ingredients" button on the bottom of the page
  6. Select Create.
  7. Add a new item called Fresh Parsley
  8. Click on the Primary Ingredient field.
  9. Select one of the meal's existing ingredient 'Dried Parsley Flakes' among the options.
  10. Click Save.

Expected Behaviour:

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.

Test results:

Passed . In Admin UI, Ingredient page displays ingredient 'Fresh Parsley' with primary ingredient 'Dried Parsley Flakes'.

image image

Test case name:

Verify start date exist on meal plan creation/ edit and meal plan card

Related Issue: #526

Description:

This test case verifies that a start date can be inputted when creating Meal plans, editing Meal plan and on Meal cards.

Steps to follow:

Pre-requisite: MP-Login-001

  1. From the navigation bar go to "Meal Plans" page.
  2. Click on "CREATE MEAL PLAN" on the top right corner of meal plan page.
  3. Fill the name field in the form with "FolaDt1"
  4. Select the "10-06-2024" as the start date from the calendar.
  5. Click on the "Save" button to save the meal plan.
  6. Click on the new meal plan created in step 4, confirm that the date is displayed on the meal card.

Expected Behavior:

The meal plan start date is should be displayed when creating and displaying the Meal plan card and details.

Test Results:

Test case passed. image image image

Test case name:

Verify Duplicate meal plan for a client user have the current user assigned

Related Bug:#698

Steps to follow:

MP-CopyIconForClient-095

  1. Verify that the another meal plan is assigned to the signed in client.

Expected Behaviour:

Duplicate meal plan for a client user should have the current user assigned

Test Result

Passed Screenshot from 2024-05-31 17-44-42

Test case name:

Verify the assign user drop-down is invisible as a client user cannot re-assign plans

Related Issue: #666

Description:

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

Steps to follow:

Pre-requisite: MP-AcceptConditions-094

  1. Navigate to the "Meal Plan" section of the application.
  2. Click on the "Create Meal Plan" button to create the first meal plan.
  3. Verify that there is no drop down menu to assign plans for others.

Expected Behavior:

When the new client user create a meal plan,the drop-down is invisible as a client user cannot re-assign plans

Test Results:

Test case passed.

Screenshot from 2024-06-04 11-38-47

Test case name:

Verify The option to 'Create Template' does not appear for the client user.

Related Issue: #687

Description:

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

Steps to follow:

Pre-requisite: MP-AcceptConditions-094

  1. Navigate to the "Meal Plan" section of the application.
  2. Click on the "Create Meal Plan" button to create the first meal plan.
  3. Verify that there is no "Create New Template" radio button to click.

Expected Behavior:

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 Results:

Test case passed.

Screenshot from 2024-06-04 11-38-47

Test case name:

Verify shopping list displays all the ingredients, meal it belongs to and product suggestions.

Related Issue: #603

Description:

This test case verifies that the shopping list displays all the ingredients, meal it belongs to and product suggestions and a disclaimer note.

Steps to follow:

Pre-requisite: MP-Template-031

  1. Navigate to "meal plans" from the navigation bar.
  2. Select "Breakfast Burrito" from the selected meal catalogue.
  3. Drag and drop it in the specific category of the meal plan.
  4. Navigate back to "meals".
  5. Click on "Breakfast Burrito" to display its ingredients.
  6. Navigate back to "meal plans".
  7. Click on the shopping icon.
  8. Verify that the shopping list has a disclaimer note and all the ingredients related to "Breakfast Burrito" with product suggestions, and prices.

Expected Behavior:

The shopping list has a disclaimer note and all the ingredients related to "Breakfast Burrito" with product suggestions, and prices.

Test Results:

Test case passed.

Screenshot from 2024-06-04 12-37-10

Screenshot from 2024-06-04 12-36-11

Test case name:

Ensure that there is no 'Measure' section and that 'Ingredients' exists under Meals.

Related Bug ID: #568

Steps to follow:

Pre-requisite: MP-Login-001

  1. Access the Admin UI as an admin.
  2. In the left navigation menu, select the section "Meals".
  3. Click on "Show" button on the right corner of 'Chicken Curry' meal.

Expected Behaviour:

No 'Measure' section present and 'Ingredients' button should show on the bottom of the page.

Test Results:

Passed successfully.

image

Test case name:

Verify the search for product keyword of product is not case-sensitive.

Related Bug ID: #568

Steps to follow:

Pre-requisite: AA-CreateProduct-054:

  1. Access the Admin UI as an admin.
  2. In the left navigation menu, select the section "Meals".
  3. Click on "Show" button on the right corner of "Tuna Noodle Casserole" meal.
  4. Click on "Ingredients" on the bottom of the page to display the ingredients table.
  5. On the "Butter" row with key word "butter", click on "Match" on the right side.
  6. Verify that the product with "Butter" keyword appears.

Expected Behaviour:

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.

Test Results:

Passed successfully. Screenshot from 2024-06-12 10-41-11 Screenshot from 2024-06-12 10-41-23

Clone this wiki locally