fjborquez / katara

Frontend for Avatar project
0 stars 0 forks source link

Create a House Update Form #12

Closed Norbbs closed 5 months ago

Norbbs commented 7 months ago

As a Data Owner I want to update a house to the other users and themselves So that all users can access and utilize the updated data related to the house for their respective needs

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

  1. Generate a form with the following fields filled in:
    • Description (textfield, mandatory).
    • City (a list of cities in Chile 🇨🇱. Only one can be chosen, mandatory)
    • Persons (a list of persons in the . Only one can be chosen, mandatory)
    • house by default? (a checkbox can be checked or not, mandatory).
    • button "update" for complete the process

Out of scope

  1. Any other form than updating houses
  2. For the cities entity: province, region and country are out of scope.

Acceptance Criteria

AC GIVEN WHEN THEN
  • - [ ]
1 Go to edit house information a houses list user clicks on Edit link the house data will be displayed successfully
  • - [ ]
2 Update a house successfully a form filled up correctly user clicks on update button the house will be updated and a message "house updated" will be displayed.
  • - [ ]
3 Update a house successfully with house by default checked a form filled up correctly and house by default field is checked user clicks on update button the house will be updated with house by default checked and a message "house updated" will be displayed.
  • - [ ]
4 Update a house successfully with house by default checked a form filled up correctly and house by default field is unchecked user clicks on register button AND the selected person has NOT any house registered the house will be updated with house by default checked and a message "house updated" will be displayed.
  • - [ ]
5 Update a house successfully with house by default checked a form filled up correctly and house by default field is checked user clicks on update button AND the person has at least one house registered the house will be updated with house by default checked AND the old one will be updated with by default as UNchecked.
  • - [ ]
6 Update a house successfully with house by default unchecked a form filled up correctly and house by default field is unchecked user clicks on update button AND the person has at least one house registered the house will be updated with house by default checked AND the old one will be updated with by default as UNchecked.
  • - [ ]
6 No update a house because of lack of description a form with description null or empty user clicks on update button the house WON'T be updated and an error message will be displayed "Fill in the description field".
  • - [ ]
7 No update a house because of description maximum characters allowed a house description with more than 30 characters user clicks on update button the house WON'T be updated and an error message will be displayed "Description exceeds the maximum allowed".
  • - [ ]
8 No update a house because of person is not selected a person is not selected in the form user clicks on update button the house WON'T be updated and an error message will be displayed "A person must be selected".
  • - [ ]
9 No update a house because of city is not selected a city is not selected in the form user clicks on update button the house WON'T be updated and an error message will be displayed "A city must be selected".
  • - [ ]
10 No update a house because of data duplication a form filled up correctly AND the selected person has one house with the SAME description in the SAME city registered user clicks on update button the house WON'T be updated and an error message will be displayed "person has the same house in the same city"
  • - [ ]
11 Update a house NOT because of data duplication a form filled up correctly AND person has one house with the SAME description but NOT in the SAME city registered user clicks on update button the house will be updated and a message "house updated" will be displayed.
  • - [ ]
12 Update a house NOT because of data duplication a form filled up correctly AND person has one house with a DIFFERENT description but in the SAME city registered user clicks on update button the house will be updated and a message "house updated" will be displayed.
  • - [ ]
13 Update a house NOT because of data duplication a house description correctly AND person has one house with a DIFFERENT description in a DIFFERENT city registered user clicks on update button the house will be updated and a message "house updated" will be displayed.
  • - [ ]
14 No update house successfully with isDefault property is false a form filled up correctly, house by default field is uncheckedAND this user has ALL registered houses by default are unchecked the house update process is triggered the house WON'T be updated and an error message will be displayed "At least one house by default must be checked".

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
  • - [ ]
Technical documentation published
  • - [ ]
Spike, PoC or benchmarks findings documented