Noelia cc64e443e4 test(chore/style): Applied parameters style consistency on suite_messaging and some onboarding / login statements
To make the feature files style consistent for direct string and also use it for examples (params), it has been introduced "" to all plain strings and also into the parameters, that now will be written like this: "<example-param>": Applied on the complete `suite_messaging` and in specific statements of the `onboarding / login`.
2022-10-20 16:06:39 +02:00

74 lines
2.6 KiB
Gherkin

Feature: Status Desktop Group Chat
As a user I want to use group chat functionality.
The feature start sequence follows the global one (setup on global `bdd_hooks`):
Background:
Given the user starts the application with a specific data folder "../../../fixtures/group_chat"
When the user "tester123" logs in with password "TesTEr16843/!@00"
Then the user lands on the signed in app
@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
Given the user creates a group chat adding users
| Athletic |
| Nervous |
And the group chat is created
And the group chat history contains "created the group" message
And the group chat contains the following members
| Athletic |
| Nervous |
When the user sends a chat message "<message1>"
Then the chat title is "<groupName>"
And the last chat message contains "<message1>"
# Invited user 1
Given the user restarts the app
And the user "Nervous" logs in with password "TesTEr16843/!@00"
And the user lands on the signed in app
And the user clicks on "<groupName>" chat
When the user sends a chat message "<message2>"
Then the last chat message contains "<message2>"
# Invited user 2
Given the user restarts the app
And the user "Athletic" logs in with password "TesTEr16843/!@00"
And the user lands on the signed in app
And the user clicks on "<groupName>" chat
When the user sends a chat message "<message3>"
Then the last chat message contains "<message3>"
Examples:
| message1 | message2 | message3 | groupName |
| Admin user message sent | Invited user 1 message sent!! | Invited user 2 message sent!! | Athletic&Nervous |
# TODO: Add cleanup scenario. Leave, one by one, the chat
Scenario: As an admin user I want to change group chat's name, color and image
When the user creates a group chat adding users
| Athletic |
| Nervous |
Then the group chat is created
Given the user opens the edit group chat popup
And the user changes the group name to "Fat&Lazy"
When the user saves changes
Then the chat title is "Fat&Lazy"
Given the user opens the edit group chat popup
And the user changes the group color to "#7CDA00"
When the user saves changes
Then the chat color is "#7CDA00"
Given the user opens the edit group chat popup
And the user changes the group image
When the user saves changes
Then the chat image is changed
When the user leaves current chat
Then the chat "Fat&Lazy" does not exist