From 5fdaf0054dffc3d3dcc20f46d52f2163ad92b0ba Mon Sep 17 00:00:00 2001 From: Yevheniia Berdnyk Date: Tue, 13 Feb 2024 14:31:37 +0200 Subject: [PATCH] e2e: updated join community --- test/appium/views/chat_view.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/appium/views/chat_view.py b/test/appium/views/chat_view.py index 49038c584b..d4cbaafc91 100644 --- a/test/appium/views/chat_view.py +++ b/test/appium/views/chat_view.py @@ -416,6 +416,8 @@ class CommunityView(HomeView): self.membership_request_pending_text = Text(self.driver, translation_id="membership-request-pending") self.join_button = Button(self.driver, accessibility_id="show-request-to-join-screen-button") self.join_community_button = Button(self.driver, accessibility_id="join-community-button") + self.slide_to_request_to_join_button = Button( + self.driver, xpath="(//*[@resource-id='slide-button-track']//*[@content-desc='icon'])[1]") self.follow_button = Button(self.driver, translation_id="follow") self.community_tags = BaseElement( self.driver, xpath="//*[@content-desc='chat-name-text']/../android.widget.HorizontalScrollView") @@ -434,7 +436,7 @@ class CommunityView(HomeView): self.driver.info("Joining community") ChatView(self.driver).chat_element_by_text("https://status.app/c/").click_on_link_inside_message_body() self.join_button.wait_and_click(120) - self.join_community_button.scroll_and_click() + self.slide_to_request_to_join_button.swipe_right_on_element(width_percentage=16) self.password_input.send_keys(password) Button(self.driver, xpath="//*[@content-desc='password-input']/../following-sibling::*//*[@text='Join Community']").click()