chore: remove identifiers screens (#20503)
* chore: remove identifiers screens so users are navigated straight to enable notifications during onboarding * removed navigated back button from enable notification screen * fix top margin * e2e: updated sign in flow * make lint-fix --------- Co-authored-by: Yevheniia Berdnyk <ie.berdnyk@gmail.com>
This commit is contained in:
parent
f89b66f562
commit
311fde9409
|
@ -72,10 +72,7 @@
|
||||||
(let [insets (safe-area/get-insets)]
|
(let [insets (safe-area/get-insets)]
|
||||||
[rn/view {:style (style/page-container insets)}
|
[rn/view {:style (style/page-container insets)}
|
||||||
[rn/view {:style style/page-heading}
|
[rn/view {:style style/page-heading}
|
||||||
[quo/page-nav
|
[quo/page-nav {:type :no-title :background :blur}]
|
||||||
{:background :blur
|
|
||||||
:icon-name :i/arrow-left
|
|
||||||
:on-press #(rf/dispatch [:navigate-back])}]
|
|
||||||
[page-title]]
|
[page-title]]
|
||||||
[enable-notifications-simple]
|
[enable-notifications-simple]
|
||||||
[enable-notification-buttons {:insets insets}]]))
|
[enable-notification-buttons {:insets insets}]]))
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
:onboarding/navigated-to-enter-seed-phrase-from-screen
|
:onboarding/navigated-to-enter-seed-phrase-from-screen
|
||||||
:screen/onboarding.new-to-status)]]
|
:screen/onboarding.new-to-status)]]
|
||||||
:dispatch-later [{:ms constants/onboarding-generating-keys-animation-duration-ms
|
:dispatch-later [{:ms constants/onboarding-generating-keys-animation-duration-ms
|
||||||
:dispatch [:onboarding/navigate-to-identifiers]}]
|
:dispatch [:init-root :screen/onboarding.enable-notifications]}]
|
||||||
:db (-> db
|
:db (-> db
|
||||||
(dissoc :profile/login)
|
(dissoc :profile/login)
|
||||||
(dissoc :auth-method)
|
(dissoc :auth-method)
|
||||||
|
|
|
@ -346,12 +346,11 @@
|
||||||
:component enter-seed-phrase/view}
|
:component enter-seed-phrase/view}
|
||||||
|
|
||||||
{:name :screen/onboarding.enable-notifications
|
{:name :screen/onboarding.enable-notifications
|
||||||
:options {:theme :dark
|
:options {:theme :dark
|
||||||
:layout options/onboarding-transparent-layout
|
:layout options/onboarding-transparent-layout
|
||||||
:animations (merge
|
:animations (merge
|
||||||
transitions/new-to-status-modal-animations
|
transitions/new-to-status-modal-animations
|
||||||
transitions/push-animations-for-transparent-background)
|
transitions/push-animations-for-transparent-background)}
|
||||||
:modalPresentationStyle :overCurrentContext}
|
|
||||||
:component enable-notifications/view}
|
:component enable-notifications/view}
|
||||||
|
|
||||||
{:name :screen/onboarding.identifiers
|
{:name :screen/onboarding.identifiers
|
||||||
|
|
|
@ -244,8 +244,8 @@ class SignInView(BaseView):
|
||||||
self.generate_keys_button.click_until_presence_of_element(self.profile_title_input)
|
self.generate_keys_button.click_until_presence_of_element(self.profile_title_input)
|
||||||
self.set_profile(username)
|
self.set_profile(username)
|
||||||
self.set_password(password)
|
self.set_password(password)
|
||||||
if self.enable_biometric_maybe_later_button.is_element_displayed(10):
|
# if self.enable_biometric_maybe_later_button.is_element_displayed(10):
|
||||||
self.enable_biometric_maybe_later_button.click()
|
# self.enable_biometric_maybe_later_button.click()
|
||||||
# self.next_button.click_until_absense_of_element(self.element_by_translation_id("intro-wizard-title2"))
|
# self.next_button.click_until_absense_of_element(self.element_by_translation_id("intro-wizard-title2"))
|
||||||
# if keycard:
|
# if keycard:
|
||||||
# keycard_flow = self.keycard_storage_button.click()
|
# keycard_flow = self.keycard_storage_button.click()
|
||||||
|
@ -256,7 +256,7 @@ class SignInView(BaseView):
|
||||||
# self.create_password_input.send_keys(password)
|
# self.create_password_input.send_keys(password)
|
||||||
# self.confirm_your_password_input.send_keys(password)
|
# self.confirm_your_password_input.send_keys(password)
|
||||||
# self.next_button.click()
|
# self.next_button.click()
|
||||||
self.identifiers_button.wait_and_click(30)
|
# self.identifiers_button.wait_and_click(30)
|
||||||
if enable_notifications:
|
if enable_notifications:
|
||||||
self.enable_notifications_button.click_until_presence_of_element(self.start_button)
|
self.enable_notifications_button.click_until_presence_of_element(self.start_button)
|
||||||
if self.allow_button.is_element_displayed():
|
if self.allow_button.is_element_displayed():
|
||||||
|
@ -283,9 +283,9 @@ class SignInView(BaseView):
|
||||||
self.continue_button.click_until_presence_of_element(self.profile_title_input)
|
self.continue_button.click_until_presence_of_element(self.profile_title_input)
|
||||||
self.set_profile(username, set_image)
|
self.set_profile(username, set_image)
|
||||||
self.set_password(password)
|
self.set_password(password)
|
||||||
if self.enable_biometric_maybe_later_button.is_element_displayed(10):
|
# if self.enable_biometric_maybe_later_button.is_element_displayed(10):
|
||||||
self.enable_biometric_maybe_later_button.click()
|
# self.enable_biometric_maybe_later_button.click()
|
||||||
self.identifiers_button.wait_and_click(30)
|
# self.identifiers_button.wait_and_click(30)
|
||||||
if enable_notifications:
|
if enable_notifications:
|
||||||
self.enable_notifications_button.click_until_presence_of_element(self.start_button)
|
self.enable_notifications_button.click_until_presence_of_element(self.start_button)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue