From b87b3083a3648acc4a9a1bf67f41620f39436108 Mon Sep 17 00:00:00 2001 From: Brian Sztamfater Date: Mon, 27 Mar 2023 12:18:57 -0300 Subject: [PATCH] Add accessibility-id for buttons 'Enable Biometrics' page Signed-off-by: Brian Sztamfater --- .../contexts/onboarding/enable_biometrics/view.cljs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/status_im2/contexts/onboarding/enable_biometrics/view.cljs b/src/status_im2/contexts/onboarding/enable_biometrics/view.cljs index 9eb28c47c5..d0c5f6211f 100644 --- a/src/status_im2/contexts/onboarding/enable_biometrics/view.cljs +++ b/src/status_im2/contexts/onboarding/enable_biometrics/view.cljs @@ -24,12 +24,14 @@ profile-color (:color (rf/sub [:onboarding-2/profile]))] [rn/view {:style (style/buttons insets)} [quo/button - {:on-press #(rf/dispatch [:onboarding-2/enable-biometrics]) + {:accessibility-label :enable-biometrics-button + :on-press #(rf/dispatch [:onboarding-2/enable-biometrics]) :before :i/face-id :override-background-color (colors/custom-color profile-color 50)} (i18n/label :t/biometric-enable-button {:bio-type-label bio-type-label})] [quo/button - {:on-press #(rf/dispatch [:onboarding-2/create-account-and-login]) + {:accessibility-label :maybe-later-button + :on-press #(rf/dispatch [:onboarding-2/create-account-and-login]) :override-background-color colors/white-opa-5 :style {:margin-top 12}} (i18n/label :t/maybe-later)]])) @@ -45,4 +47,4 @@ [rn/view {:style style/page-illustration} [quo/text "Illustration here"]] - [enable-biometrics-buttons {:insets insets}]]))]) \ No newline at end of file + [enable-biometrics-buttons {:insets insets}]]))])