Skip to content

Commit

Permalink
test(community): re-add test that replies to another message
Browse files Browse the repository at this point in the history
Fixes #9238
  • Loading branch information
jrainville committed Jan 31, 2023
1 parent e54e08d commit 0bd957e
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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 |


0 comments on commit 0bd957e

Please sign in to comment.