diff --git a/config/locales/doc_auth/en.yml b/config/locales/doc_auth/en.yml index cfd92f4126a..4962fbe6374 100644 --- a/config/locales/doc_auth/en.yml +++ b/config/locales/doc_auth/en.yml @@ -87,8 +87,7 @@ en: network_error: We are having technical difficulties on our end. Please try to submit your images again later. no_liveness: Try taking new pictures. - selfie_failure: Try taking your photos again. Make sure all of your photos are - clear and in focus. + selfie_failure: We couldn’t verify the photo of yourself. Try taking a new picture. selfie_failure_help_link_text: Review more tips for taking clear photos glare: failed_short: Image has glare, please try again. diff --git a/config/locales/doc_auth/es.yml b/config/locales/doc_auth/es.yml index b4da9edb2e8..c20af575a2f 100644 --- a/config/locales/doc_auth/es.yml +++ b/config/locales/doc_auth/es.yml @@ -111,8 +111,7 @@ es: network_error: Estamos teniendo problemas técnicos por nuestra parte. Intente enviar sus imágenes de nuevo más tarde. no_liveness: Intente tomar nuevas fotografías. - selfie_failure: Intente tomar de nuevo sus fotos. Asegúrese de que sus fotos - estén claras y enfocadas. + selfie_failure: No pudimos verificar su foto. Intente tomar una nueva foto. selfie_failure_help_link_text: Consulte más consejos para tomar fotos claras glare: failed_short: Hay reflejos en la imagen, por favor inténtelo de nuevo. @@ -190,7 +189,7 @@ es: verify_at_post_office: Verifique su identidad en una oficina de correos verify_identity: Verifique su identidad verify_online: Verifique su identidad en línea - welcome: 'Verifiquemos su identidad para
%{sp_name}' + welcome: 'Verifiquemos su identidad para %{sp_name}' hybrid_flow_warning: explanation_html: Usted está utilizando %{app_name} para verificar su identidad y acceder a diff --git a/config/locales/doc_auth/fr.yml b/config/locales/doc_auth/fr.yml index 90c246421e5..d632532239b 100644 --- a/config/locales/doc_auth/fr.yml +++ b/config/locales/doc_auth/fr.yml @@ -118,8 +118,8 @@ fr: network_error: Nous avons des difficultés techniques de notre côté. Veuillez essayer de soumettre à nouveau vos images plus tard. no_liveness: Essayez de prendre de nouvelles photos. - selfie_failure: Essayez de prendre de nouvelles photos de vous-même. Veillez à - ce que toutes vos photos soient claires et nettes. + selfie_failure: Nous n’avons pas pu vérifier votre photo. Essayez de prendre une + nouvelle photo. selfie_failure_help_link_text: Consultez plus de conseils pour prendre des photos claires glare: failed_short: L’image a des reflets, veuillez réessayer. diff --git a/config/locales/doc_auth/zh.yml b/config/locales/doc_auth/zh.yml index ac35da9834a..4806e2b13b6 100644 --- a/config/locales/doc_auth/zh.yml +++ b/config/locales/doc_auth/zh.yml @@ -66,8 +66,7 @@ zh: multiple_front_id_failures: 我们无法验证你身份证件的正面。尝试重拍一张。 network_error: 我们这边有技术困难。请稍后再提交你的图像。 no_liveness: 尝试重拍。 - selfie_failure: Try taking your photos again. Make sure all of your photos are - clear and in focus. + selfie_failure: 我们无法验证你自己的照片。请重拍一张。 selfie_failure_help_link_text: Review more tips for taking clear photos glare: failed_short: 图像有炫光,请再试一次。 diff --git a/spec/features/idv/doc_auth/document_capture_spec.rb b/spec/features/idv/doc_auth/document_capture_spec.rb index 8abe2acf0ea..7d351836d37 100644 --- a/spec/features/idv/doc_auth/document_capture_spec.rb +++ b/spec/features/idv/doc_auth/document_capture_spec.rb @@ -353,6 +353,10 @@ expect(page).to have_content(body_error_message) click_try_again + + selfie_inline_error_message = strip_tags(t('doc_auth.errors.general.selfie_failure')) + expect(page).to have_content(selfie_inline_error_message) + expect(page).to have_current_path(idv_document_capture_path) # inline error to be fixed in lg-12999 @@ -385,6 +389,8 @@ inline_error_message = strip_tags(t('doc_auth.errors.dpi.failed_short')) expect(page).to have_content(inline_error_message) + selfie_inline_error_message = strip_tags(t('doc_auth.errors.general.selfie_failure')) + expect(page).not_to have_content(selfie_inline_error_message) # when there are both doc auth errors and face match errors @@ -414,6 +420,8 @@ inline_error_message = strip_tags(t('doc_auth.errors.dpi.failed_short')) expect(page).to have_content(inline_error_message) + selfie_inline_error_message = strip_tags(t('doc_auth.errors.general.selfie_failure')) + expect(page).not_to have_content(selfie_inline_error_message) # when doc auth result and liveness pass but face match fails @@ -445,6 +453,8 @@ t('doc_auth.errors.general.multiple_front_id_failures'), ) expect(page).to have_content(inline_error_message) + selfie_inline_error_message = strip_tags(t('doc_auth.errors.general.selfie_failure')) + expect(page).to have_content(selfie_inline_error_message) # when there is a doc auth error on one side of the ID and face match errors @@ -474,6 +484,8 @@ inline_error_message = strip_tags(t('doc_auth.errors.general.fallback_field_level')) expect(page).to have_content(inline_error_message) + selfie_inline_error_message = strip_tags(t('doc_auth.errors.general.selfie_failure')) + expect(page).not_to have_content(selfie_inline_error_message) # when there is a doc auth error on one side of the ID and a liveness error @@ -503,6 +515,8 @@ inline_error_message = strip_tags(t('doc_auth.errors.general.fallback_field_level')) expect(page).to have_content(inline_error_message) + selfie_inline_error_message = strip_tags(t('doc_auth.errors.general.selfie_failure')) + expect(page).not_to have_content(selfie_inline_error_message) # when doc auth result is "attention" and face match errors @@ -532,6 +546,8 @@ inline_error_message = strip_tags(t('doc_auth.errors.general.fallback_field_level')) expect(page).to have_content(inline_error_message) + selfie_inline_error_message = strip_tags(t('doc_auth.errors.general.selfie_failure')) + expect(page).not_to have_content(selfie_inline_error_message) # when doc auth passes but there are both liveness errors and face match errors @@ -561,6 +577,9 @@ click_try_again expect(page).to have_current_path(idv_document_capture_path) + selfie_inline_error_message = strip_tags(t('doc_auth.errors.general.selfie_failure')) + expect(page).to have_content(selfie_inline_error_message) + # when doc auth, liveness, and face match pass but PII validation fails attach_images( @@ -591,6 +610,8 @@ t('doc_auth.errors.general.multiple_front_id_failures'), ) expect(page).to have_content(inline_error_message) + selfie_inline_error_message = strip_tags(t('doc_auth.errors.general.selfie_failure')) + expect(page).not_to have_content(selfie_inline_error_message) # when there are both face match errors and pii errors @@ -622,6 +643,8 @@ t('doc_auth.errors.general.multiple_front_id_failures'), ) expect(page).to have_content(inline_error_message) + selfie_inline_error_message = strip_tags(t('doc_auth.errors.general.selfie_failure')) + expect(page).to have_content(selfie_inline_error_message) end end diff --git a/spec/i18n_spec.rb b/spec/i18n_spec.rb index b35e176c306..84a1838a3e1 100644 --- a/spec/i18n_spec.rb +++ b/spec/i18n_spec.rb @@ -89,7 +89,6 @@ class BaseTask { key: 'doc_auth.errors.alerts.selfie_not_live', locales: %i[zh] }, { key: 'doc_auth.errors.alerts.selfie_not_live_help_link_text', locales: %i[zh] }, { key: 'doc_auth.errors.alerts.selfie_poor_quality', locales: %i[zh] }, - { key: 'doc_auth.errors.general.selfie_failure', locales: %i[zh] }, { key: 'doc_auth.errors.general.selfie_failure_help_link_text', locales: %i[zh] }, { key: 'doc_auth.headings.hybrid_handoff_selfie', locales: %i[zh] }, { key: 'doc_auth.info.getting_started_html', locales: %i[zh] },