2022-08-12 18:55:06 +00:00
|
|
|
Feature: Status Desktop Group Chat
|
|
|
|
|
|
|
|
As a user I want to use group chat functionality.
|
|
|
|
|
2022-10-13 16:03:10 +00:00
|
|
|
The feature start sequence follows the global one (setup on global `bdd_hooks`):
|
|
|
|
|
2022-08-12 18:55:06 +00:00
|
|
|
Background:
|
|
|
|
|
2022-10-25 18:39:21 +00:00
|
|
|
Given the user starts the application with a specific data folder "../../../fixtures/mutual_contacts"
|
2022-10-19 10:39:48 +00:00
|
|
|
When the user "tester123" logs in with password "TesTEr16843/!@00"
|
2022-09-01 07:53:22 +00:00
|
|
|
Then the user lands on the signed in app
|
2022-10-11 13:58:34 +00:00
|
|
|
|
2022-10-13 16:03:10 +00:00
|
|
|
@relyon-mailserver
|
|
|
|
Scenario Outline: As an admin user I want to create a group chat with my contacts and the invited users can send messages
|
2022-08-12 18:55:06 +00:00
|
|
|
|
2022-10-13 16:03:10 +00:00
|
|
|
Given the user creates a group chat adding users
|
|
|
|
| Athletic |
|
|
|
|
| Nervous |
|
|
|
|
And the group chat is created
|
2022-09-01 07:53:22 +00:00
|
|
|
And the group chat history contains "created the group" message
|
|
|
|
And the group chat contains the following members
|
2022-10-27 12:54:11 +00:00
|
|
|
| Athletic |
|
2022-10-13 16:03:10 +00:00
|
|
|
| Nervous |
|
2022-10-27 12:54:11 +00:00
|
|
|
And the user opens the edit group chat popup
|
|
|
|
And the user changes the group name to "<groupName>"
|
|
|
|
And the user saves changes
|
|
|
|
And the chat title is "<groupName>"
|
2022-10-13 16:03:10 +00:00
|
|
|
|
2022-10-19 10:39:48 +00:00
|
|
|
When the user sends a chat message "<message1>"
|
|
|
|
Then the chat title is "<groupName>"
|
|
|
|
And the last chat message contains "<message1>"
|
2022-08-12 18:55:06 +00:00
|
|
|
|
2022-10-27 12:54:11 +00:00
|
|
|
# Chat cleanup
|
|
|
|
When the user leaves current chat
|
|
|
|
Then the chat "<groupName>" does not exist
|
|
|
|
|
2022-08-12 18:55:06 +00:00
|
|
|
# Invited user 1
|
2022-10-13 16:03:10 +00:00
|
|
|
Given the user restarts the app
|
2022-10-19 10:39:48 +00:00
|
|
|
And the user "Nervous" logs in with password "TesTEr16843/!@00"
|
2022-10-13 16:03:10 +00:00
|
|
|
And the user lands on the signed in app
|
2022-10-19 10:39:48 +00:00
|
|
|
And the user clicks on "<groupName>" chat
|
|
|
|
When the user sends a chat message "<message2>"
|
|
|
|
Then the last chat message contains "<message2>"
|
2022-10-13 16:03:10 +00:00
|
|
|
|
2022-10-27 12:54:11 +00:00
|
|
|
# Chat cleanup
|
|
|
|
When the user leaves chat "<groupName>" by right click on it
|
|
|
|
Then the chat "<groupName>" does not exist
|
|
|
|
|
2022-10-13 16:03:10 +00:00
|
|
|
# Invited user 2
|
|
|
|
Given the user restarts the app
|
2022-10-19 10:39:48 +00:00
|
|
|
And the user "Athletic" logs in with password "TesTEr16843/!@00"
|
2022-10-13 16:03:10 +00:00
|
|
|
And the user lands on the signed in app
|
2022-10-19 10:39:48 +00:00
|
|
|
And the user clicks on "<groupName>" chat
|
|
|
|
When the user sends a chat message "<message3>"
|
|
|
|
Then the last chat message contains "<message3>"
|
2022-10-13 16:03:10 +00:00
|
|
|
|
2022-10-27 12:54:11 +00:00
|
|
|
# Chat cleanup
|
|
|
|
When the user leaves chat "<groupName>" by right click on it
|
|
|
|
Then the chat "<groupName>" does not exist
|
2022-07-20 12:14:50 +00:00
|
|
|
|
2022-10-27 12:54:11 +00:00
|
|
|
Examples:
|
|
|
|
| message1 | message2 | message3 | groupName |
|
|
|
|
| Admin user message sent | Invited user 1 message sent!! | Invited user 2 message sent!! | Here we are!! |
|