-
Notifications
You must be signed in to change notification settings - Fork 0
Test cases
Daniil edited this page Feb 29, 2024
·
6 revisions
Talking about time we assume user follows following validation:
- Valid time format is 'HH:mm', e.g. '17:45'.
- Values like: '24:00', '3:', 'hh:100' and so on must be recognized as invalid.
Text must be at least 1 char long.
1.1.
- Given: User clicked 'Suggest' button.
- When: User enter valid text.
- Then: Localized message with 'Thanks for suggestion' sent AND extual suggestion recieved by users with admin access.
1.2.
- Given: User clicked 'Suggest' button.
- When: User clicks '/cancel' button.
- Then: Localized message with 'Okay' sent.
2.1.
- Given: User clicked 'Suggest' button.
- When: User sends sticker/photo/video.
- Then: Localized message that text cannot be empty sent.
Text must be at least 1 char long and less or equal than 125 chars.
- Max length violation:
1.1.
- Given: User in 'Todo Items' menu and clicked 'Add todo item' button.
- When: Enters text with length more than 125 chars.
- Then: Localized message that todo item cannot be longer than 125 chars.
- Limit exceded:
2.1.
- Given: User already has 7 todo items.
- When: Add new item with valid data.
- Then: Localized message that limit reached sent.
3.1.
- Given: User has at least 2 todo items in list.
- When: Click 'My list' button. then click at item to finish it.
- Then: List without specified item shown.
3.2.
- Given: User has exactly 1 todo item in list.
- When: Click 'My list' button. then click at item to finish it.
- Then: Localized message that all items finished sent.
4.1.
- Given: User has at least 1 todo item and opened 'My list'.
- When: Click 'Go back' button.
- Then: Localized message 'As you wish' sent.
5.1.
- Given: User has at least 1 todo item.
- When: Go to 'Todo items' menu and click 'My list'.
- Then: Localized list with user todo items shown with text and creation date.
5.2.
- Given: User has no todo items.
- When: Go to 'Todo items' menu and click 'My list'.
- Then: Localized message with suggestion to add plan as now it is empty.
6.1.
- Given: User clicked 'Add todo item' and recieved message with asking for text and suggestion to click '/cancel' to cancel creation.
- When: Click '/cancel'.
- Then: New item is not created and user returned to todo items menu.
7.1.
- Given: User has less than 7 todo items and clicked 'Todo items' button.
- When: Click 'Add todo item' and enter valid text.
- Then: New item added and present in list after clicking 'My list' button.
8.1.
- Given: User in 'Todo Items' menu.
- When: Click 'Add todo item' and send a sticker/photo/video.
- Then: Localized message that todo item cannot be empty should be sent.
1.1.
- Given: User in 'Reminders' menu and clicks 'Remind me' button.
- When: Enter any text and valid time.
- Then: Success message sent and reminder with specified text recieved at specified time.
1.2.
- Given: User in 'Reminders' menu and clicks 'Remind me' button.
- When: Click '/cancel' button.
- Then: Localized 'Okay' message sent.
2.1.
- Given: User in 'Reminders' menu and clicks 'Remind me' button.
- When: Enter any text and invalid time.
- Then: Localized message that time format is invalid recieved.
- Given: User in 'Reminders' menu and clicks 'Remind me' button.
- When: User sent sticker/photo/video.
- Then: Localized message that text cannot be empty sent.
TBD
Contact information: daniilpoyarkov@gmail.com