From a055929f926650973f124a7f5cac47fea7f376b2 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 24 Jan 2023 14:04:15 -0500 Subject: [PATCH] test(community): re-add emoji tests Fixes #9246 #9247 #9248 --- .../shared/scripts/community_names.py | 1 + .../tst_communityMessageFlows/test.feature | 17 +++++++++++++++++ .../shared/scripts/chat_names.py | 2 -- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/test/ui-test/testSuites/suite_communities/shared/scripts/community_names.py b/test/ui-test/testSuites/suite_communities/shared/scripts/community_names.py index 071e3f3103..536ee5de5d 100644 --- a/test/ui-test/testSuites/suite_communities/shared/scripts/community_names.py +++ b/test/ui-test/testSuites/suite_communities/shared/scripts/community_names.py @@ -38,6 +38,7 @@ chatView_editMessageInputTextArea = {"container": chatView_editMessageInputCompo clearHistoryMenuItem = {"container": statusDesktop_mainWindow_overlay, "objectName": "clearHistoryMenuItem", "type": "StatusMenuItem", "visible": True} chatView_unfurledImageComponent_linkImage = {"container": chatView_log, "objectName": "LinksMessageView_unfurledImageComponent_linkImage", "type": "StatusChatImageLoader", "visible": True} emojiSuggestions_first_inputListRectangle ={"container": statusDesktop_mainWindow_overlay, "objectName": "inputListRectangle_0", "type": "Rectangle"} +chatInput_Emoji_Button = {"container": statusDesktop_mainWindow, "objectName": "statusChatInputEmojiButton", "type": "StatusFlatRoundButton", "visible": True} # Community channel popup: createOrEditCommunityChannelNameInput_TextEdit = {"container": statusDesktop_mainWindow_overlay, "objectName": "createOrEditCommunityChannelNameInput", "type": "TextEdit", "visible": True} diff --git a/test/ui-test/testSuites/suite_communities/tst_communityMessageFlows/test.feature b/test/ui-test/testSuites/suite_communities/tst_communityMessageFlows/test.feature index e0bf380510..576357cde0 100644 --- a/test/ui-test/testSuites/suite_communities/tst_communityMessageFlows/test.feature +++ b/test/ui-test/testSuites/suite_communities/tst_communityMessageFlows/test.feature @@ -142,3 +142,20 @@ Feature: Status Desktop community messages | displayName | | notExistingAccount | | asdfgNoNo | + + Scenario: The user can send an emoji as a message + When the user sends the emoji "heart_eyes" as a message + Then the last chat message contains "😍" + + Scenario Outline: The user can send an emoji in a message + When the user sends the emoji "sunglasses" with message "" + Then the last chat message contains "😎" + And the last chat message contains "" + Examples: + | message | + | wow I'm so cool | + + Scenario: The user can type message with emoji autoreplace + When the user sends a chat message "Hello :)" + Then the last chat message contains "🙂" + And the last chat message contains "Hello" diff --git a/test/ui-test/testSuites/suite_messaging/shared/scripts/chat_names.py b/test/ui-test/testSuites/suite_messaging/shared/scripts/chat_names.py index 925dd091ff..678d4b55b8 100644 --- a/test/ui-test/testSuites/suite_messaging/shared/scripts/chat_names.py +++ b/test/ui-test/testSuites/suite_messaging/shared/scripts/chat_names.py @@ -4,8 +4,6 @@ from scripts.global_names import * mainWindow_scrollView_ScrollView = {"container": statusDesktop_mainWindow, "id": "scrollView", "type": "StatusScrollView", "unnamed": 1, "visible": True} mark_as_Read_StatusMenuItem = {"container": statusDesktop_mainWindow_overlay, "objectName": "chatMarkAsReadMenuItem", "type": "StatusMenuItem", "visible": True} chat_Input_Stickers_Button = {"container": statusDesktop_mainWindow, "objectName": "statusChatInputStickersButton", "type": "StatusFlatRoundButton", "visible": True} -emojiPopup_Emoji_Button_Placeholder = {"container": statusDesktop_mainWindow, "objectName": "statusEmoji_%NAME%", "type": "StatusEmoji", "visible": True} -chatInput_Emoji_Button = {"container": statusDesktop_mainWindow, "objectName": "statusChatInputEmojiButton", "type": "StatusFlatRoundButton", "visible": True} chatView_unfurledLinkComponent_linkImage = {"container": chatView_log, "objectName": "LinksMessageView_unfurledLinkComponent_linkImage", "type": "StatusChatImageLoader", "visible": True} chatView_LinksMessageView_enableBtn = {"container": chatView_log, "objectName": "LinksMessageView_enableBtn", "type": "StatusFlatButton", "visible": True}