From 37af9d9b9795975970d77288807d20a43c5cda13 Mon Sep 17 00:00:00 2001 From: Yevheniia Berdnyk Date: Mon, 4 Sep 2023 13:07:41 +0300 Subject: [PATCH] e2e: updated community channel element --- test/appium/tests/medium/test_activity_center.py | 6 +----- test/appium/views/home_view.py | 10 +--------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/test/appium/tests/medium/test_activity_center.py b/test/appium/tests/medium/test_activity_center.py index d4513f7483..00f170fdfa 100644 --- a/test/appium/tests/medium/test_activity_center.py +++ b/test/appium/tests/medium/test_activity_center.py @@ -321,14 +321,10 @@ class TestActivityMultipleDevicePRTwo(MultipleSharedDeviceTestCase): self.chat_2.chat_element_by_text(self.community_name).view_community_button.click() self.community_2.join_community() self.channel_2 = self.community_2.get_channel(self.channel_name).click() + self.channel_2.chat_message_input.wait_for_visibility_of_element(20) @marks.testrail_id(702957) def test_activity_center_mentions(self): - if not self.channel_2.chat_message_input.is_element_displayed(): - self.channel_2.navigate_back_to_home_view() - self.home_2.communities_tab.click() - self.home_2.get_chat(self.community_name, community=True).click() - self.home_2.get_chat(self.channel_name, community_channel=True).click() self.home_1.navigate_back_to_home_view() self.home_1.communities_tab.click() diff --git a/test/appium/views/home_view.py b/test/appium/views/home_view.py index 49cbe2a6d1..337d11c45e 100644 --- a/test/appium/views/home_view.py +++ b/test/appium/views/home_view.py @@ -36,7 +36,7 @@ class ChatElement(SilentButton): if self.community_channel: super().__init__( driver, - xpath="//*[@content-desc='chat-name-text']//*[starts-with(@text,'# %s')]/../.." % username_part) + xpath="//*[@content-desc='channel-list-item']//*[starts-with(@text,'# %s')]/.." % username_part) elif community: super().__init__( driver, @@ -113,14 +113,6 @@ class ChatElement(SilentButton): return UnreadMessagesPublicChat(self.driver, self.locator) - # @property - # def new_messages_community(self): - # class UnreadMessagesCommunity(BaseElement): - # def __init__(self, driver, parent_locator: str): - # super().__init__(driver, prefix=parent_locator, xpath="%s/android.view.ViewGroup" % parent_locator) - # - # return UnreadMessagesCommunity(self.driver, self.locator) - @property def chat_image(self): class ChatImage(BaseElement):