test(community): re-add test that replies to another message

Fixes #9238
This commit is contained in:
Jonathan Rainville 2023-01-23 16:03:42 -05:00
parent e54e08d81f
commit 0bd957e71a
3 changed files with 39 additions and 2 deletions

View File

@ -30,7 +30,7 @@ Feature: Status Desktop community admin features
# User 2 Alice (admin) logs in
Given the user restarts the app
And the user "Alive" logs in with password "TesTEr16843/!@00"
And the user "Alice" logs in with password "TesTEr16843/!@00"
Then the user lands on the signed in app
When the user opens the community named "MyFriends"
Then the user lands on the community named "MyFriends"

View File

@ -114,4 +114,13 @@ Feature: Status Desktop community
Then the community channel has emoji "<new_emoji>"
Examples:
| new_emoji_description | new_emoji |
| thumbs up | 👍 |
| thumbs up | 👍 |
# TODO: This scenario must be in a different feature since it does not accomplishe the start/en sequence and / or background
# Add new test case that contains scenarios related to create/delete and navigate throw communities and usage of navbar.
#@merge
#Scenario: User leaves community
# When the user opens app settings screen
# And the user opens the communities settings
# And the user leaves the community
# Then the count of communities in navbar is 0

View File

@ -40,3 +40,31 @@ Feature: Status Desktop community members
When the admin kicks the user named Bobby
And the admin goes back to the community
Then the number of members is 1
@relyon-mailserver
# TODO we need the mailserver to get the message we want to reply to
# TODO move this test to another Case that contains other community scenarios that need reboots
Scenario Outline: The user can reply to another message
# User 1 Bobby sends a message
Given the user starts the application with a specific data folder "../../../fixtures/community_members"
When the user "Bobby" logs in with password "TesTEr16843/!@00"
Then the user lands on the signed in app
When the user opens the community named "MyFriends"
Then the user lands on the community named "MyFriends"
When the user switches to "general" chat
And the user sends a chat message "Reply to me please"
Then the last chat message contains "Reply to me please"
# User 2 Alice (admin) logs in
Given the user restarts the app
And the user "Alice" logs in with password "TesTEr16843/!@00"
Then the user lands on the signed in app
When the user opens the community named "MyFriends"
Then the user lands on the community named "MyFriends"
When the user replies to the message at index 0 with "<reply>"
Then the chat message "<reply>" is displayed as a reply
Examples:
| reply |
| This is a reply |