From a7d09ccb2a7f9a1091211cd7ab39ead890720c9a Mon Sep 17 00:00:00 2001 From: Churikova Tetiana Date: Mon, 6 Mar 2023 13:11:32 +0100 Subject: [PATCH] e2e: new intro fix --- test/appium/views/sign_in_view.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/test/appium/views/sign_in_view.py b/test/appium/views/sign_in_view.py index 2bfcc34a480..2e498fcd985 100644 --- a/test/appium/views/sign_in_view.py +++ b/test/appium/views/sign_in_view.py @@ -125,6 +125,10 @@ def __init__(self, driver): super().__init__(driver) self.driver = driver + # intro screen + self.sign_in_intro_button = Button(self.driver, accessibility_id="already-use-status-button") + self.i_m_new_in_status_button = Button(self.driver, accessibility_id="new-to-status-button") + self.password_input = EditBox(self.driver, accessibility_id="password-input") self.migration_password_input = EditBox(self.driver, accessibility_id="enter-password-input") self.sign_in_button = SignInButton(self.driver) @@ -177,8 +181,7 @@ def create_user(self, password=common_password, keycard=False, enable_notificati self.driver.info("## Creating new multiaccount (password:'%s', keycard:'%s')" % (password, str(keycard)), device=False) if not second_user: - self.accept_tos_checkbox.enable() - self.get_started_button.click_until_presence_of_element(self.generate_key_button) + self.i_m_new_in_status_button.click_until_presence_of_element(self.generate_key_button) self.generate_key_button.click() self.next_button.click_until_absense_of_element(self.element_by_translation_id("intro-wizard-title2")) @@ -192,14 +195,6 @@ def create_user(self, password=common_password, keycard=False, enable_notificati self.confirm_your_password_input.set_value(password) self.next_button.click() - # Old UI - # self.maybe_later_button.wait_for_visibility_of_element(30) - # if enable_notifications: - # self.enable_notifications_button.click() - # else: - # self.maybe_later_button.click_until_presence_of_element(self.lets_go_button) - # self.lets_go_button.click_until_absense_of_element(self.lets_go_button) - # self.profile_button.wait_for_visibility_of_element(30) self.chats_tab.wait_for_visibility_of_element(30)