As a Data Owner
I want to create a recipe with ingredients
So that I can choose what kind of dishes I prepare
Definition Of Ready (DoR)
Definition
Observations
- [x]
The story meet the INVEST and SMART criteria
- [x]
Dependencies identified and resolved
- [x]
Written acceptance criteria with test scenarios, understood by the team and agreed upon
- [x]
The user story was understood and agreed upon in a refinement session with the dev team
- [x]
The team has an idea of how to make the demonstration of the finished story
Scope
Add ingredients table to a recipe form with the following fields:
Quantity (numeric textfield optional, only images formats will be allowed, mandatory).
Unit of measurement (a selector with a list of uoms filtered by category = mass or volume, mandatory).
Product (an autocomplete textfield, it will show all registered products in the database, mandatory).
Comments (an autocomplete textfield, it will show all registered comments in the database, optional).
button "add ingredient" for add a new row in the ingredient table
button "register" for complete the process
Out of scope
Any other form than creating recipes and ingredients
Wireframe
Acceptance Criteria
Keep it in mind the same AC for the recipe registration form
AC
GIVEN
WHEN
THEN
- [ ]
1
Show a recipe registration form with an ingredients table
recipe main menu option
user clicks on Recipes link
the recipe creation form will be displayed successfully with ingredients table
- [ ]
2
Add an ingredient row successfully
a ingredients table is displayed
user clicks on add ingredient button
a new row with quantity, uom, product and comment are displayed
- [ ]
3
Don't add an ingredient because of lack of product, quantity or uom
a row form with product null or empty
user clicks on register button
the recipe WON'T be added NOR ingredients and an error message will be displayed "Fill in the product, quantity or uom field".
- [ ]
4
Show a quantity component that allows positives numbers and zero only
an ingredients table
user clicks on "add ingredient" button
a compoment only allows possitive numbers and zero will be displayed and displayed and working.
- [ ]
5
Don't add a recipe because of a quantity is less than or equal than zero
an ingredients table with a quantity less or equal than zero
user clicks on register button
the recipe WON'T be added and an error message will be displayed "The quantity must be greather than zero".
- [ ]
6
Don't add a recipe because of data duplication
an ingredients table with more than one ingredient row with the SAME product and the SAME comments
user clicks on register button
the recipe WON'T be added NOR ingredients and an error message will be displayed "The ingridient {product + comments} already exists".
- [ ]
7
Show an uom component that allows mass or volume units
a recipe creation form
user sees the form
a compoment with a list of mass or volume units will be displayed and working.
- [ ]
8
Dont' add a recipe because of uom is not a mass or volume uom
an ingredients table with one or more ingredients rows with a not mass or volume unit selector
user clicks on register button
the recipe WON'T be added and an error message will be displayed "Select a correct uom for the {product}".
- [ ]
9
Add a product in the autocomplete textfield
an autocomplete product textfield
user types on it
a list of products (productType + productPresentation + productBrand) will be displayed.
- [ ]
10
Add a product in the autocomplete textfield which doesn't match with any register
an autocomplete product textfield and doesn't match with any register
user types on it
an empty list with a link ADD NEW PRODUCT will be displayed.
- [ ]
10
Add a comments in the autocomplete textfield
an autocomplete comments textfield
user types on it
a list of commets will be displayed.
- [ ]
11
Add a comments in the autocomplete textfield which doesn't match with any register
an autocomplete comments textfield and doesn't match with any register
user types on it
an empty list WON'T be displayed just a standard textfield
- [ ]
12
Add a recipe with all fields filled in correctly
a form filled up correctly with quantity, uom (mass or volume), product and comments
user clicks on register button
the recipe will be created and ingredients will be created and if commnets were added it will be created and a message "recipe added" will be displayed.
Definition of Done (DoD)
Definition
Result
- [ ]
All acceptance criteria have been met
- [ ]
No significant or critical defects
- [ ]
Deskcheck ceremony has been made
- [ ]
Keep minimum test coverage of 80% over the necessary code and components
As a Data Owner I want to create a recipe with ingredients So that I can choose what kind of dishes I prepare
Definition Of Ready (DoR)
Scope
Out of scope
Wireframe
Acceptance Criteria
Keep it in mind the same AC for the recipe registration form
ADD NEW PRODUCT
will be displayed.Definition of Done (DoD)