diff --git a/app/views/idv/phone/new.html.erb b/app/views/idv/phone/new.html.erb index 8676e1d388a..ad97b710ce5 100644 --- a/app/views/idv/phone/new.html.erb +++ b/app/views/idv/phone/new.html.erb @@ -83,6 +83,8 @@ idv_gpo_path, ), ) %> + <% else %> + <%= t('idv.messages.phone.failed_number.try_again_html') %> <% end %> <% end %> diff --git a/config/locales/idv/en.yml b/config/locales/idv/en.yml index 0d64e1e0cab..ed43879d62e 100644 --- a/config/locales/idv/en.yml +++ b/config/locales/idv/en.yml @@ -216,9 +216,9 @@ en: This is to help verify your identity. failed_number: alert_text: We couldn’t match you to this number. - gpo_alert_html: If you don’t have another number to try, - %{link_html} instead. + gpo_alert_html: Try another number or %{link_html}. gpo_verify_link: verify by mail + try_again_html: Try another number. rules: - Based in the United States (including U.S. territories) - Your primary number (the one you use the most often) diff --git a/config/locales/idv/es.yml b/config/locales/idv/es.yml index a41780bcc1d..0f23efd9026 100644 --- a/config/locales/idv/es.yml +++ b/config/locales/idv/es.yml @@ -226,9 +226,9 @@ es: código único. Esto es para ayudar a verificar su identidad. failed_number: alert_text: No pudimos asociarlo a este número. - gpo_alert_html: Si no dispone de otro número de teléfono, - %{link_html}. - gpo_verify_link: realice la verificación por correo + gpo_alert_html: Pruebe con otro número o %{link_html}. + gpo_verify_link: verifique por correo + try_again_html: Pruebe con otro número. rules: - Con base en Estados Unidos (incluidos los territorios de EE.UU.) - Su número principal (el que utiliza con más frecuencia) diff --git a/config/locales/idv/fr.yml b/config/locales/idv/fr.yml index ceb0c4ba01e..2863a7e9e7c 100644 --- a/config/locales/idv/fr.yml +++ b/config/locales/idv/fr.yml @@ -240,9 +240,9 @@ fr: code à usage unique. Ceci est pour aider à vérifier votre identité. failed_number: alert_text: Nous n’avons pas pu vous associer à ce numéro. - gpo_alert_html: Si vous n’avez pas d’autre numéro de téléphone - à essayer, %{link_html}. - gpo_verify_link: vérifiez plutôt par courrier + gpo_alert_html: Essayez un autre numéro ou %{link_html}. + gpo_verify_link: vérifiez par courrier + try_again_html: Essayez un autre numéro. rules: - Basé aux Etats-Unis (y compris les territoires américains) - Votre numéro principal (celui que vous utilisez le plus souvent) diff --git a/spec/features/idv/steps/phone_step_spec.rb b/spec/features/idv/steps/phone_step_spec.rb index 924ebd6b120..c89ed4d6a78 100644 --- a/spec/features/idv/steps/phone_step_spec.rb +++ b/spec/features/idv/steps/phone_step_spec.rb @@ -163,6 +163,11 @@ ), ), ) + expect(page).to have_content( + strip_tags( + t('idv.messages.phone.failed_number.try_again_html'), + ), + ) click_idv_send_security_code click_on t('idv.failure.phone.warning.try_again_button')