From 028f959bc3f4bd65c25dfc7ad75b742c40ed2339 Mon Sep 17 00:00:00 2001 From: Yevheniia Berdnyk Date: Fri, 8 Nov 2024 19:13:30 +0200 Subject: [PATCH] e2e: updated onboarding flow --- test/appium/tests/critical/chats/test_public_chat_browsing.py | 4 +--- test/appium/views/sign_in_view.py | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/test/appium/tests/critical/chats/test_public_chat_browsing.py b/test/appium/tests/critical/chats/test_public_chat_browsing.py index 2f1f45100b..90aa42bb3f 100644 --- a/test/appium/tests/critical/chats/test_public_chat_browsing.py +++ b/test/appium/tests/critical/chats/test_public_chat_browsing.py @@ -237,9 +237,7 @@ class TestCommunityOneDeviceMerged(MultipleSharedDeviceTestCase): self.home.just_fyi("Check that removed user is not shown in the list anymore") self.home.reopen_app(sign_in=False) - if self.sign_in.terms_and_privacy_checkbox.is_element_displayed(5): - self.sign_in.terms_and_privacy_checkbox.click() - self.sign_in.explore_new_status_button.click_until_presence_of_element(self.sign_in.show_profiles_button) + self.sign_in.explore_new_status_button.click_until_presence_of_element(self.sign_in.show_profiles_button) self.sign_in.show_profiles_button.wait_and_click() if self.sign_in.element_by_text(self.username).is_element_displayed(): self.errors.append("Removed user is re-appeared after relogin!") diff --git a/test/appium/views/sign_in_view.py b/test/appium/views/sign_in_view.py index 93dd87a007..084057fa91 100644 --- a/test/appium/views/sign_in_view.py +++ b/test/appium/views/sign_in_view.py @@ -244,7 +244,6 @@ class SignInView(BaseView): self.driver.info("## Creating new multiaccount (password:'%s', keycard:'%s', enable_notification: '%s')" % (password, str(keycard), str(enable_notifications)), device=False) if first_user: - self.terms_and_privacy_checkbox.click() self.create_profile_button.click_until_presence_of_element(self.generate_keys_button) self.not_now_button.wait_and_click() else: @@ -292,8 +291,7 @@ class SignInView(BaseView): if not after_sync_code: if not second_user: - self.terms_and_privacy_checkbox.click() - self.sync_or_recover_profile_button.click_until_presence_of_element(self.generate_keys_button) + self.create_profile_button.click_until_presence_of_element(self.generate_keys_button) self.not_now_button.wait_and_click() else: self.show_profiles_button.wait_and_click(20)