use cases - OskarKlintrotSkolarbeteWP14/1dv608-Project GitHub Wiki
User is at the front page
- User want to register a new user account.
- The system renders a registration form.
- The user fill in the form.
- The system creates the user
- 4a. User already exist
- i. System presents error message.
- ii. Step 2 in main scenario.
- 4b. User enters illegal credentials
- i. System presents error message.
- ii. Step 2 in main scenario.
UC 1 is successful.
- User enters credentials
- System login user
- 2a. Credentials are incorrect
- i. System presents error message.
- ii. Step 1 in main scenario.
UC 2 is successful.
- The user enters a new todo
- The system adds the new todo to the database
- The system renders a new view with the new todo's from the database
- 2a. The todo is not valid.
- i. System shows an error message.
- ii. Step 1 in main scenario.
UC 3 is successful.
- User wants to edit a todo
- System rerender the view and now let's the user edit the todo
- User edits todo and saves it
- The system updates the todo in the database
- 4a. Todo is not valid
- i. System shows an error message.
- ii. Step 2 in main scenario.
UC 3 is successful.
- User marks a todo as done
- System rerender the view and now strike out the todo
UC 5 is successful.
- User want to unmark a todo as done
- System rerender the view and now don't strike out the todo
UC 3 is successful.
- User want to remove a todo
- System ask the user to confirm
- User confirm
- System removes the todo
- 3a. User don't confirm
- i. Rerender todo-list.
UC2 is successful.
- User want to log out
- System logout user