diff --git a/test/appium/tests/critical/test_public_chat_browsing.py b/test/appium/tests/critical/test_public_chat_browsing.py index eb86d37f8b..482ca8eea7 100644 --- a/test/appium/tests/critical/test_public_chat_browsing.py +++ b/test/appium/tests/critical/test_public_chat_browsing.py @@ -1146,8 +1146,16 @@ class TestCommunityMultipleDeviceMerged(MultipleSharedDeviceTestCase): self.home_1.contact_details_row(username=self.username_2).click() self.chat_1.profile_send_message_button.click() else: - self.home_1.add_contact(self.public_key_2) - self.home_2.handle_contact_request(self.username_1) + self.home_1.navigate_back_to_home_view() + self.chat_1.profile_button.click() + self.profile_1.contacts_button.wait_and_click() + self.profile_1.blocked_users_button.wait_and_click() + self.profile_1.element_by_text(self.username_2).click() + self.chat_1.unblock_contact_button.click() + self.chat_1.close_button.click() + self.chat_1.navigate_back_to_home_view() + self.home_1.chats_tab.click() + self.home_1.get_chat(self.username_2).click() self.chat_1.send_message("just a message") self.home_2.get_chat(self.username_1).click() diff --git a/test/appium/views/home_view.py b/test/appium/views/home_view.py index 54cfed156f..759b16325a 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='chat-name-text']//*[starts-with(@text,'# %s')]/.." % username_part) elif community: super().__init__( driver,