Test case UC2 - AntonStrand/1DV610-L2 GitHub Wiki
Test case 2.1, Can't see your todos pre-login
No todos should be shown before logging in.
Prerequisite
- You're at 1dv610.antonstrand.se.
Input:
- Make sure to not be logged in.
Output:
- There is not a
Your todosheadline - There are no todos
Test case 2.2, Logged in without todos
If the user don't have any todos a message should be shown instead.
Prerequisite
- You're at 1dv610.antonstrand.se.
Input:
- Perform Test case 4.10
- Log in using the user credentials you just used
Output:
- There is a field with the headline
Add a todo - There is a
Your todosheadline - Beneath the headline, it says
You don't have any todos yet.
Test case 2.3, Logged in with todos
All of the user's todos should be listed from newest to oldest.
Prerequisite
- Preform Test case 2.2
Todo:
- Write
Todo 1in theTask:field - Press
Add todo - Write
Todo 2in theTask:field - Press
Add todo - Write
Todo 3in theTask:field - Press
Add todo
Output:
- There is a field with the headline
Add a todo - There is a
Your todosheadline - Beneath the headline, three todos are listed in this order:
Todo 3Todo 2Todo 1
Test case 2.4, Todos are saved between sessions
All of the user's todos should be listed from newest to oldest.
Prerequisite
- Preform Test case 2.3
Input:
- Press the
logoutbutton - Log in using the user credentials from the previous test
Output:
- There is a field with the headline
Add a todo - There is a
Your todosheadline - Beneath the headline, three todos are listed in this order:
Todo 3Todo 2Todo 1