From 9a3cdc4f8b84069baa737a95ce344f4323c1529f Mon Sep 17 00:00:00 2001 From: Yevheniia Berdnyk Date: Tue, 6 Aug 2024 18:58:31 +0300 Subject: [PATCH] e2e: fixes for community link and welcome button error --- test/appium/views/chat_view.py | 2 +- test/appium/views/sign_in_view.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/appium/views/chat_view.py b/test/appium/views/chat_view.py index 56161be35b..ec8b295a50 100644 --- a/test/appium/views/chat_view.py +++ b/test/appium/views/chat_view.py @@ -457,7 +457,7 @@ class CommunityView(HomeView): self.community_options_button.click() self.share_community_button.click() text = self.sharing_text_native.text - self.click_system_back_button() + self.click_system_back_button(times=2) return text def handle_membership_request(self, username: str, approve=True): diff --git a/test/appium/views/sign_in_view.py b/test/appium/views/sign_in_view.py index ab3f76e691..0c526c3895 100644 --- a/test/appium/views/sign_in_view.py +++ b/test/appium/views/sign_in_view.py @@ -265,6 +265,7 @@ class SignInView(BaseView): self.allow_button.click_until_presence_of_element(self.start_button) else: self.maybe_later_button.click_until_presence_of_element(self.start_button) + self.cancel_button.click_if_shown() # TODO: remove when issue 20806 is fixed self.start_button.click() self.chats_tab.wait_for_visibility_of_element(30) self.driver.info("## New multiaccount is created successfully!", device=False)