From 0bd957e71aae2955e06029c585fbe33620aa6b6f Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Mon, 23 Jan 2023 16:03:42 -0500 Subject: [PATCH] test(community): re-add test that replies to another message Fixes #9238 --- .../tst_communityAdminFlows/test.feature | 2 +- .../tst_communityFlows/test.feature | 11 +++++++- .../tst_communityMemberFlows/test.feature | 28 +++++++++++++++++++ 3 files changed, 39 insertions(+), 2 deletions(-) diff --git a/test/ui-test/testSuites/suite_communities/tst_communityAdminFlows/test.feature b/test/ui-test/testSuites/suite_communities/tst_communityAdminFlows/test.feature index 3b5a82786d..10f3875a81 100644 --- a/test/ui-test/testSuites/suite_communities/tst_communityAdminFlows/test.feature +++ b/test/ui-test/testSuites/suite_communities/tst_communityAdminFlows/test.feature @@ -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" diff --git a/test/ui-test/testSuites/suite_communities/tst_communityFlows/test.feature b/test/ui-test/testSuites/suite_communities/tst_communityFlows/test.feature index aa62bce940..d4191ca0db 100644 --- a/test/ui-test/testSuites/suite_communities/tst_communityFlows/test.feature +++ b/test/ui-test/testSuites/suite_communities/tst_communityFlows/test.feature @@ -114,4 +114,13 @@ Feature: Status Desktop community Then the community channel has emoji "" Examples: | new_emoji_description | new_emoji | - | thumbs up | 👍 | \ No newline at end of file + | 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 diff --git a/test/ui-test/testSuites/suite_communities/tst_communityMemberFlows/test.feature b/test/ui-test/testSuites/suite_communities/tst_communityMemberFlows/test.feature index 4c196b8191..7ca17e7aef 100644 --- a/test/ui-test/testSuites/suite_communities/tst_communityMemberFlows/test.feature +++ b/test/ui-test/testSuites/suite_communities/tst_communityMemberFlows/test.feature @@ -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 "" + Then the chat message "" is displayed as a reply + Examples: + | reply | + | This is a reply | + +