diff --git a/test/appium/tests/critical/test_public_chat_browsing.py b/test/appium/tests/critical/test_public_chat_browsing.py index b19f93d3fa..98953909d4 100644 --- a/test/appium/tests/critical/test_public_chat_browsing.py +++ b/test/appium/tests/critical/test_public_chat_browsing.py @@ -1227,7 +1227,7 @@ class TestCommunityMultipleDeviceMergedTwo(MultipleSharedDeviceTestCase): control_message_1_1_chat = "it is just a message text" self.chat_2.send_message(control_message_1_1_chat) self.chat_2.chat_element_by_text(community_name).view_community_button.click() - self.community_2.join_community() + self.community_2.join_community(open_community=False) self.home_1.just_fyi("Device 1 accepts the community request") self.home_1.jump_to_communities_home() diff --git a/test/appium/views/chat_view.py b/test/appium/views/chat_view.py index 18db29d14e..509fd739f2 100644 --- a/test/appium/views/chat_view.py +++ b/test/appium/views/chat_view.py @@ -411,16 +411,17 @@ class CommunityView(HomeView): #### NEW UI # Communities initial page self.community_description_text = Text(self.driver, accessibility_id="community-description-text") + self.community_status_joined = Text(self.driver, accessibility_id="status-tag-positive") - def join_community(self, password=common_password): + def join_community(self, password=common_password, open_community=True): self.driver.info("Joining community") self.join_button.click() - self.checkbox_button.scroll_to_element() - self.checkbox_button.enable() self.join_community_button.scroll_and_click() self.password_input.set_value(password) Button(self.driver, xpath="//*[@content-desc='password-input']/../following-sibling::*//*[@text='Join Community']").click() + if open_community: + self.community_status_joined.wait_for_visibility_of_element(60) def get_channel(self, channel_name: str): self.driver.info("Getting %s channel element in community" % channel_name)