show notifications and welcome screen for keycard

Signed-off-by: Michele Balistreri <michele@bitgamma.com>
This commit is contained in:
Michele Balistreri 2021-05-18 14:56:52 +03:00
parent 72df44da6c
commit f770045f89
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
3 changed files with 4 additions and 11 deletions

View File

@ -193,10 +193,7 @@
:chat-key whisper-private-key}
encryption-public-key
{})
(if (= flow :import)
(navigation/navigate-replace :keycard-recovery-success nil)
(navigation/navigate-to-cofx (if platform/android?
:notifications-settings :welcome) nil))))))
(navigation/navigate-to-cofx :notifications-onboarding nil)))))
(fx/defn return-to-keycard-login
[{:keys [db] :as cofx}]

View File

@ -140,13 +140,7 @@
(fx/defn finish-keycard-setup
[{:keys [db] :as cofx}]
(let [flow (get-in db [:keycard :flow])]
(when flow
(fx/merge cofx
{:db (update db :keycard dissoc :flow)}
(if (= :import flow)
(navigation/navigate-to-cofx :intro-stack {:screen :keycard-recovery-success})
(navigation/navigate-to-cofx :notifications-onboarding nil))))))
{:db (update db :keycard dissoc :flow)})
(fx/defn initialize-dapp-permissions
{:events [::initialize-dapp-permissions]}

View File

@ -275,6 +275,8 @@ class TestCreateAccount(SingleDeviceTestCase):
keycard_view.pair_code_input.set_value(pair_code)
sign_in.pair_to_this_device_button.click()
keycard_view.enter_default_pin()
sign_in.maybe_later_button.click_until_presence_of_element(sign_in.lets_go_button)
sign_in.lets_go_button.click_until_absense_of_element(sign_in.lets_go_button)
sign_in.home_button.wait_for_visibility_of_element(30)
sign_in.just_fyi('Check assets after pairing keycard for recovered multiaccount')