e2e: updated create profile flow

This commit is contained in:
Yevheniia Berdnyk 2024-07-12 01:39:48 +03:00 committed by Andrea Maria Piana
parent 93b5f7a918
commit 13232dc7b7
1 changed files with 3 additions and 0 deletions

View File

@ -150,6 +150,7 @@ class SignInView(BaseView):
self.i_m_new_in_status_button = Button(self.driver, accessibility_id="new-to-status-button")
self.create_profile_button = Button(self.driver, accessibility_id='new-to-status-button')
self.not_now_button = Button(self.driver, xpath="//*[@text='Not now']")
self.sync_or_recover_profile_button = Button(self.driver, accessibility_id='already-use-status-button')
self.migration_password_input = EditBox(self.driver, accessibility_id="enter-password-input")
@ -236,6 +237,7 @@ class SignInView(BaseView):
(password, str(keycard), str(enable_notifications)), device=False)
if first_user:
self.create_profile_button.click_until_presence_of_element(self.generate_keys_button)
self.not_now_button.wait_and_click()
else:
if self.show_profiles_button.is_element_displayed(20):
self.show_profiles_button.click()
@ -274,6 +276,7 @@ class SignInView(BaseView):
if not second_user:
self.sync_or_recover_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)
self.plus_profiles_button.click()