parent
b798b18c18
commit
5bb4a3741d
|
@ -400,7 +400,9 @@ class StatusChatScreen:
|
|||
def verify_last_message_sent_contains_mention(self, displayName: str, message: str):
|
||||
[loaded, last_message_obj] = is_loaded_visible_and_enabled(ChatComponents.LAST_MESSAGE_TEXT.value)
|
||||
|
||||
if loaded:
|
||||
if not loaded:
|
||||
verify_failure("No messages found in chat.")
|
||||
|
||||
# Verifying mention
|
||||
verify_text_contains(str(last_message_obj.text), displayName)
|
||||
|
||||
|
@ -417,9 +419,6 @@ class StatusChatScreen:
|
|||
click_link(ChatComponents.LAST_MESSAGE_TEXT.value, href_info)
|
||||
verify(is_found(ChatComponents.MENTION_PROFILE_VIEW.value), "Checking user mentioned profile popup is open.")
|
||||
|
||||
else:
|
||||
verify_failure("No messages found in chat.")
|
||||
|
||||
def verify_chat_title(self, title: str):
|
||||
info_btn = get_obj(ChatComponents.TOOLBAR_INFO_BUTTON.value)
|
||||
verify_text(str(info_btn.title), title)
|
||||
|
|
|
@ -46,6 +46,9 @@ chatView_chatLogView_lastMsg_MessageView = {"container": chatView_log, "index":
|
|||
chatView_lastChatText_Text = {"container": chatView_chatLogView_lastMsg_MessageView, "type": "TextEdit", "objectName": "StatusTextMessage_chatText", "visible": True}
|
||||
chatView_gifPopupButton = {"container": statusDesktop_mainWindow, "objectName": "gifPopupButton", "type": "StatusFlatRoundButton", "visible": True}
|
||||
chatView_ChatToolbarMoreOptionsButton = {"container": statusDesktop_mainWindow, "objectName": "chatToolbarMoreOptionsButton", "type": "StatusFlatRoundButton", "visible": True}
|
||||
chatView_SuggestionBoxPanel ={"container": statusDesktop_mainWindow, "objectName": "suggestionsBox", "type": "SuggestionBoxPanel"}
|
||||
chatView_suggestion_ListView ={"container": chatView_SuggestionBoxPanel, "objectName": "suggestionBoxList", "type": "StatusListView"}
|
||||
chatView_userMentioned_ProfileView ={"container": statusDesktop_mainWindow_overlay, "objectName": "profileView", "type": "ProfileView"}
|
||||
|
||||
# Gif popup:
|
||||
gifPopup_enableGifButton = {"container": statusDesktop_mainWindow_overlay, "objectName": "enableGifsButton", "type": "StatusButton"}
|
||||
|
|
|
@ -126,3 +126,12 @@ Feature: Status Desktop community messages
|
|||
And the user selects the emoji in the suggestion's list
|
||||
When the user presses enter
|
||||
Then the last chat message contains "👍"
|
||||
|
||||
@mayfail
|
||||
# This tests fails. Issue #9314
|
||||
Scenario Outline: The user can do a mention
|
||||
When the user inputs a mention to "<displayName>" with message "<message>"
|
||||
Then the "<displayName>" mention with message "<message>" have been sent
|
||||
Examples:
|
||||
| displayName | message |
|
||||
| tester123 | testing mention |
|
|
@ -4,9 +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}
|
||||
chatView_SuggestionBoxPanel ={"container": statusDesktop_mainWindow, "objectName": "suggestionsBox", "type": "SuggestionBoxPanel"}
|
||||
chatView_suggestion_ListView ={"container": chatView_SuggestionBoxPanel, "objectName": "suggestionBoxList", "type": "StatusListView"}
|
||||
chatView_userMentioned_ProfileView ={"container": statusDesktop_mainWindow_overlay, "objectName": "profileView", "type": "ProfileView"}
|
||||
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}
|
||||
|
|
Loading…
Reference in New Issue