diff --git a/app/controllers/idv/how_to_verify_controller.rb b/app/controllers/idv/how_to_verify_controller.rb
index 233d6165d6d..5b65ae67cfb 100644
--- a/app/controllers/idv/how_to_verify_controller.rb
+++ b/app/controllers/idv/how_to_verify_controller.rb
@@ -5,6 +5,7 @@ class HowToVerifyController < ApplicationController
include Idv::AvailabilityConcern
include IdvStepConcern
include RenderConditionConcern
+ include DocAuthVendorConcern
before_action :confirm_step_allowed
before_action :set_how_to_verify_presenter
@@ -86,8 +87,16 @@ def how_to_verify_form_params
end
def set_how_to_verify_presenter
+ @mobile_required = mobile_required?
@selfie_required = idv_session.selfie_check_required
- @presenter = Idv::HowToVerifyPresenter.new(selfie_check_required: @selfie_required)
+ @presenter = Idv::HowToVerifyPresenter.new(
+ mobile_required: @mobile_required,
+ selfie_check_required: @selfie_required,
+ )
+ end
+
+ def mobile_required?
+ idv_session.selfie_check_required || doc_auth_vendor == Idp::Constants::Vendors::SOCURE
end
end
end
diff --git a/app/presenters/idv/how_to_verify_presenter.rb b/app/presenters/idv/how_to_verify_presenter.rb
index ed3ba1574cd..ee161ca8284 100644
--- a/app/presenters/idv/how_to_verify_presenter.rb
+++ b/app/presenters/idv/how_to_verify_presenter.rb
@@ -4,22 +4,23 @@ class Idv::HowToVerifyPresenter
include ActionView::Helpers::TagHelper
include ActionView::Helpers::TranslationHelper
- attr_reader :selfie_required
+ attr_reader :mobile_required, :selfie_required
- def initialize(selfie_check_required:)
+ def initialize(mobile_required:, selfie_check_required:)
+ @mobile_required = mobile_required
@selfie_required = selfie_check_required
end
def how_to_verify_info
- if selfie_required
- t('doc_auth.info.how_to_verify_selfie')
+ if mobile_required
+ t('doc_auth.info.how_to_verify_mobile')
else
t('doc_auth.info.how_to_verify')
end
end
def asset_url
- if selfie_required
+ if mobile_required
'idv/mobile-phone-icon.svg'
else
'idv/remote.svg'
@@ -27,7 +28,7 @@ def asset_url
end
def alt_text
- if selfie_required
+ if mobile_required
t('image_description.phone_icon')
else
t('image_description.laptop_and_phone')
@@ -35,32 +36,31 @@ def alt_text
end
def verify_online_text
- if selfie_required
- t('doc_auth.headings.verify_online_selfie')
+ if mobile_required
+ t('doc_auth.headings.verify_online_mobile')
else
t('doc_auth.headings.verify_online')
end
end
def verify_online_instruction
- if selfie_required
- t('doc_auth.info.verify_online_instruction_selfie')
- else
- t('doc_auth.info.verify_online_instruction')
- end
+ return t('doc_auth.info.verify_online_instruction_selfie') if selfie_required
+ return t('doc_auth.info.verify_online_instruction_mobile_no_selfie') if mobile_required
+
+ t('doc_auth.info.verify_online_instruction')
end
def verify_online_description
- if selfie_required
- t('doc_auth.info.verify_online_description_selfie')
+ if mobile_required
+ t('doc_auth.info.verify_online_description_mobile')
else
t('doc_auth.info.verify_online_description')
end
end
def submit
- if selfie_required
- t('forms.buttons.continue_remote_selfie')
+ if mobile_required
+ t('forms.buttons.continue_remote_mobile')
else
t('forms.buttons.continue_remote')
end
@@ -75,8 +75,8 @@ def post_office_instruction
end
def post_office_description
- if selfie_required
- t('doc_auth.info.verify_at_post_office_description_selfie')
+ if mobile_required
+ t('doc_auth.info.verify_at_post_office_description_mobile')
else
t('doc_auth.info.verify_at_post_office_description')
end
diff --git a/app/views/idv/how_to_verify/show.html.erb b/app/views/idv/how_to_verify/show.html.erb
index bb19ea1e96a..4c1ee1f7fa8 100644
--- a/app/views/idv/how_to_verify/show.html.erb
+++ b/app/views/idv/how_to_verify/show.html.erb
@@ -50,7 +50,7 @@
<%= f.label(
:selection_remote,
) do %>
- <% if @selfie_required %>
+ <% if @mobile_required %>
<%= t('doc_auth.tips.mobile_phone_required') %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 2ba1e98735e..5a93bfbb264 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -602,7 +602,7 @@ doc_auth.headings.upload_from_phone: Use your phone to take photos
doc_auth.headings.verify_at_post_office: Verify your identity at a Post Office
doc_auth.headings.verify_identity: Verify your identity
doc_auth.headings.verify_online: Verify your identity online
-doc_auth.headings.verify_online_selfie: Verify your identity online using your phone
+doc_auth.headings.verify_online_mobile: Verify your identity online using your phone
doc_auth.headings.verify_with_phone: Verify your identity using your phone
doc_auth.headings.welcome: Let’s verify your identity for %{sp_name}
doc_auth.hybrid_flow_warning.explanation_html: You’re using %{app_name} to verify your identity for access to %{service_provider_name} and its services.
@@ -623,7 +623,7 @@ doc_auth.info.exit.without_sp: Exit identity verification and go to your account
doc_auth.info.getting_started_html: '%{sp_name} needs to make sure you are you — not someone pretending to be you. %{link_html}'
doc_auth.info.getting_started_learn_more: Learn more about verifying your identity
doc_auth.info.how_to_verify: You have the option to verify your identity online, or in person at a participating Post Office.
-doc_auth.info.how_to_verify_selfie: You have the option to verify your identity online with your phone, or in person at a participating Post Office.
+doc_auth.info.how_to_verify_mobile: You have the option to verify your identity online with your phone, or in person at a participating Post Office.
doc_auth.info.how_to_verify_troubleshooting_options_header: Want to learn more about how to verify your identity?
doc_auth.info.hybrid_handoff: We’ll collect information about you by reading your state‑issued ID.
doc_auth.info.hybrid_handoff_ipp_html: 'Don’t have a mobile phone? You can verify your identity at a United States Post Office instead.'
@@ -660,14 +660,15 @@ doc_auth.info.tag: Recommended
doc_auth.info.upload_from_computer: Don’t have a phone? Upload photos of your ID from this computer.
doc_auth.info.upload_from_phone: You won’t have to sign in again, and you’ll switch back to this computer after you take photos. Your mobile phone must have a camera and a web browser.
doc_auth.info.verify_at_post_office_description: This option is better if you don’t have a phone to take photos of your ID.
-doc_auth.info.verify_at_post_office_description_selfie: Choose this option if you don’t have a phone to take pictures.
+doc_auth.info.verify_at_post_office_description_mobile: Choose this option if you don’t have a phone to take pictures.
doc_auth.info.verify_at_post_office_instruction: You’ll enter your ID information online, and verify your identity in person at a participating Post Office.
doc_auth.info.verify_at_post_office_instruction_selfie: You’ll enter your ID information online, and verify your identity in person at a participating Post Office.
doc_auth.info.verify_at_post_office_link_text: Learn more about verifying in person
doc_auth.info.verify_identity: We’ll ask for your ID, phone number, and other personal information to verify your identity against public records.
doc_auth.info.verify_online_description: This option is better if you have a phone to take photos of your ID.
-doc_auth.info.verify_online_description_selfie: Choose this option if you have a phone to take pictures.
+doc_auth.info.verify_online_description_mobile: Choose this option if you have a phone to take pictures.
doc_auth.info.verify_online_instruction: You’ll take photos of your ID to verify your identity fully online. Most users finish this process in one sitting.
+doc_auth.info.verify_online_instruction_mobile_no_selfie: You’ll take photos of your ID using a phone. Most users finish this process in one sitting.
doc_auth.info.verify_online_instruction_selfie: You’ll take photos of your ID and a photo of yourself using a phone. Most users finish this process in one sitting.
doc_auth.info.verify_online_link_text: Learn more about verifying online
doc_auth.info.you_entered: 'You entered:'
@@ -846,7 +847,7 @@ forms.buttons.confirm: Confirm
forms.buttons.continue: Continue
forms.buttons.continue_ipp: Continue in person
forms.buttons.continue_remote: Continue online
-forms.buttons.continue_remote_selfie: Continue on your phone
+forms.buttons.continue_remote_mobile: Continue on your phone
forms.buttons.delete: Delete
forms.buttons.disable: Delete
forms.buttons.edit: Edit
diff --git a/config/locales/es.yml b/config/locales/es.yml
index d93a88dbcf3..5787d46520e 100644
--- a/config/locales/es.yml
+++ b/config/locales/es.yml
@@ -613,7 +613,7 @@ doc_auth.headings.upload_from_phone: Utilice su teléfono para tomar fotos
doc_auth.headings.verify_at_post_office: Verifique su identidad en una oficina de correos
doc_auth.headings.verify_identity: Verifique su identidad
doc_auth.headings.verify_online: Verifique su identidad en línea
-doc_auth.headings.verify_online_selfie: Verifique su identidad en línea con su teléfono
+doc_auth.headings.verify_online_mobile: Verifique su identidad en línea con su teléfono
doc_auth.headings.verify_with_phone: Verifique su identidad con su teléfono
doc_auth.headings.welcome: Verifiquemos su identidad para %{sp_name}
doc_auth.hybrid_flow_warning.explanation_html: Está utilizando %{app_name} para verificar su identidad y acceder a %{service_provider_name} y sus servicios.
@@ -634,7 +634,7 @@ doc_auth.info.exit.without_sp: Salga de la verificación de identidad y vaya a l
doc_auth.info.getting_started_html: '%{sp_name} necesita asegurarse de que se trata de usted y no de alguien que se hace pasar por usted. %{link_html}'
doc_auth.info.getting_started_learn_more: Obtenga más información sobre la verificación de su identidad
doc_auth.info.how_to_verify: Tiene la opción de verificar su identidad en línea, o en persona en una oficina de correos participante.
-doc_auth.info.how_to_verify_selfie: Tiene la opción de verificar su identidad en línea con su teléfono, o en persona en una oficina de correos participante.
+doc_auth.info.how_to_verify_mobile: Tiene la opción de verificar su identidad en línea con su teléfono, o en persona en una oficina de correos participante.
doc_auth.info.how_to_verify_troubleshooting_options_header: ¿Desea obtener más información sobre cómo verificar su identidad?
doc_auth.info.hybrid_handoff: Recopilaremos información sobre usted leyendo su identificación emitida por el estado.
doc_auth.info.hybrid_handoff_ipp_html: '¿No tiene un teléfono móvil? Puede verificar su identidad en una oficina de correos de los Estados Unidos.'
@@ -671,14 +671,15 @@ doc_auth.info.tag: Recomendado
doc_auth.info.upload_from_computer: '¿No tiene un teléfono? Cargue fotos de su identificación desde esta computadora.'
doc_auth.info.upload_from_phone: No tendrá que volver a iniciar sesión y volverá a esta computadora después de tomar las fotos. Su teléfono móvil debe tener una cámara y un navegador web.
doc_auth.info.verify_at_post_office_description: Esta opción es mejor si no tiene un teléfono para tomar fotografías de su identificación.
-doc_auth.info.verify_at_post_office_description_selfie: Elija esta opción si no tiene un teléfono para tomar fotografías.
+doc_auth.info.verify_at_post_office_description_mobile: Elija esta opción si no tiene un teléfono para tomar fotografías.
doc_auth.info.verify_at_post_office_instruction: Ingresará la información de su identificación en línea, y verificará su identidad en persona en una oficina de correos participante.
doc_auth.info.verify_at_post_office_instruction_selfie: Ingresará la información de su identificación en línea, y verificará su identidad en persona en una oficina de correos participante.
doc_auth.info.verify_at_post_office_link_text: Obtenga más información sobre la verificación en persona
doc_auth.info.verify_identity: Le pediremos su identificación, número de teléfono y otros datos personales para verificar su identidad comparándola con los registros públicos.
doc_auth.info.verify_online_description: Esta opción es mejor si tiene un teléfono para tomar fotografías de su identificación.
-doc_auth.info.verify_online_description_selfie: Elija esta opción si tiene un teléfono para tomar fotografías.
+doc_auth.info.verify_online_description_mobile: Elija esta opción si tiene un teléfono para tomar fotografías.
doc_auth.info.verify_online_instruction: Tomará fotografías de su identificación para verificar su identidad por completo en línea. La mayoría de los usuarios logran terminar este proceso en una sola sesión.
+doc_auth.info.verify_online_instruction_mobile_no_selfie: Tomará fotografías de su identificación con un teléfono. La mayoría de los usuarios logran terminar este proceso en una sola sesión.
doc_auth.info.verify_online_instruction_selfie: Tomará con un teléfono fotos de su identificación y una foto de usted. La mayoría de los usuarios logran terminar este proceso en una sola sesión.
doc_auth.info.verify_online_link_text: Obtenga más información sobre la verificación en línea
doc_auth.info.you_entered: 'Usted ingresó:'
@@ -857,7 +858,7 @@ forms.buttons.confirm: Confirmar
forms.buttons.continue: Continuar
forms.buttons.continue_ipp: Continúe en persona
forms.buttons.continue_remote: Continúe en línea
-forms.buttons.continue_remote_selfie: Continúe en su teléfono
+forms.buttons.continue_remote_mobile: Continúe en su teléfono
forms.buttons.delete: Eliminar
forms.buttons.disable: Eliminar
forms.buttons.edit: Editar
diff --git a/config/locales/fr.yml b/config/locales/fr.yml
index e20fa43644b..498c910720b 100644
--- a/config/locales/fr.yml
+++ b/config/locales/fr.yml
@@ -602,7 +602,7 @@ doc_auth.headings.upload_from_phone: Utiliser votre téléphone pour prendre des
doc_auth.headings.verify_at_post_office: Confirmer votre identité en personne dans un bureau de poste
doc_auth.headings.verify_identity: Confirmer votre identité
doc_auth.headings.verify_online: Confirmer votre identité en ligne
-doc_auth.headings.verify_online_selfie: Confirmer votre identité en ligne à l’aide de votre téléphone
+doc_auth.headings.verify_online_mobile: Confirmer votre identité en ligne à l’aide de votre téléphone
doc_auth.headings.verify_with_phone: Confirmer votre identité à l’aide de votre téléphone
doc_auth.headings.welcome: Vérifions votre identité auprès de %{sp_name}
doc_auth.hybrid_flow_warning.explanation_html: Vous utilisez %{app_name} pour confirmer votre identité et accéder à %{service_provider_name} et à ses services.
@@ -623,7 +623,7 @@ doc_auth.info.exit.without_sp: Quitter la vérification d’identité et accéde
doc_auth.info.getting_started_html: '%{sp_name} doit s’assurer qu’il s’agit bien de vous et non de quelqu’un qui se fait passer pour vous. %{link_html}'
doc_auth.info.getting_started_learn_more: En savoir plus sur la vérification de votre identité
doc_auth.info.how_to_verify: Vous pouvez confirmer votre identité en ligne ou en personne dans un bureau de poste participant.
-doc_auth.info.how_to_verify_selfie: Vous avez la possibilité de confirmer votre identité en ligne avec votre téléphone ou en personne dans un bureau de poste participant.
+doc_auth.info.how_to_verify_mobile: Vous avez la possibilité de confirmer votre identité en ligne avec votre téléphone ou en personne dans un bureau de poste participant.
doc_auth.info.how_to_verify_troubleshooting_options_header: Vous voulez en savoir plus sur la façon de confirmer votre identité?
doc_auth.info.hybrid_handoff: Nous recueillerons des informations vous concernant en lisant votre pièce d’identité délivrée par un État.
doc_auth.info.hybrid_handoff_ipp_html: 'Vous n’avez pas de téléphone portable? Vous pouvez confirmer votre identité dans un bureau de poste américain participant.'
@@ -660,14 +660,15 @@ doc_auth.info.tag: Recommandation
doc_auth.info.upload_from_computer: Vous n’avez pas de téléphone ? Téléchargez les photos de votre pièce d’identité depuis cet ordinateur.
doc_auth.info.upload_from_phone: Vous n’aurez pas à vous reconnecter. Vous reviendrez sur cet ordinateur après avoir pris des photos. Votre téléphone portable doit être équipé d’un appareil photo et d’un navigateur web.
doc_auth.info.verify_at_post_office_description: Cette option est préférable si vous n’avez pas de téléphone permettant de prendre des photos de votre pièce d’identité.
-doc_auth.info.verify_at_post_office_description_selfie: Choisissez cette option si vous ne disposez pas d’un téléphone permettant de prendre des photos.
+doc_auth.info.verify_at_post_office_description_mobile: Choisissez cette option si vous ne disposez pas d’un téléphone permettant de prendre des photos.
doc_auth.info.verify_at_post_office_instruction: Vous saisirez vos données d’identification en ligne et confirmerez votre identité en personne dans un bureau de poste participant.
doc_auth.info.verify_at_post_office_instruction_selfie: Vous saisirez vos données d’identification en ligne et confirmez votre identité en personne dans un bureau de poste participant.
doc_auth.info.verify_at_post_office_link_text: En savoir plus sur la vérification en personne
doc_auth.info.verify_identity: Nous vous demanderons votre pièce d’identité, numéro de téléphone et d’autres renseignements personnels afin de confirmer votre identité par rapport aux registres publics.
doc_auth.info.verify_online_description: Cette option est préférable si vous disposez d’un téléphone permettant de prendre des photos de votre pièce d’identité.
-doc_auth.info.verify_online_description_selfie: Choisissez cette option si vous disposez d’un téléphone permettant de prendre des photos.
+doc_auth.info.verify_online_description_mobile: Choisissez cette option si vous disposez d’un téléphone permettant de prendre des photos.
doc_auth.info.verify_online_instruction: Vous prendrez des photos de votre pièce d’identité pour confirmer votre identité entièrement en ligne. La plupart des utilisateurs y parviennent en une seule prise.
+doc_auth.info.verify_online_instruction_mobile_no_selfie: Vous prendrez des photos de votre pièce d’identité à l’aide d’un téléphone. La plupart des utilisateurs effectuent l’ensemble du processus en une seule fois.
doc_auth.info.verify_online_instruction_selfie: Vous prendrez des photos de votre pièce d’identité et une photo de vous-même avec un téléphone. La plupart des utilisateurs y parviennent en une seule prise.
doc_auth.info.verify_online_link_text: En savoir plus sur la vérification en ligne
doc_auth.info.you_entered: 'Vous avez saisi :'
@@ -846,7 +847,7 @@ forms.buttons.confirm: Confirmer
forms.buttons.continue: Suite
forms.buttons.continue_ipp: Continuer en personne
forms.buttons.continue_remote: Continuer en ligne
-forms.buttons.continue_remote_selfie: Continuer sur votre téléphone
+forms.buttons.continue_remote_mobile: Continuer sur votre téléphone
forms.buttons.delete: Supprimer
forms.buttons.disable: Supprimer
forms.buttons.edit: Modifier
diff --git a/config/locales/zh.yml b/config/locales/zh.yml
index 89061d000ad..695e86cbef4 100644
--- a/config/locales/zh.yml
+++ b/config/locales/zh.yml
@@ -613,7 +613,7 @@ doc_auth.headings.upload_from_phone: 使用手机拍照
doc_auth.headings.verify_at_post_office: 去邮局验证身份
doc_auth.headings.verify_identity: 验证你的身份
doc_auth.headings.verify_online: 在网上验证身份
-doc_auth.headings.verify_online_selfie: 使用手机在网上验证你的身份
+doc_auth.headings.verify_online_mobile: 使用手机在网上验证你的身份
doc_auth.headings.verify_with_phone: 使用你的电话来验证你的身份
doc_auth.headings.welcome: 现在我们来为%{sp_name}验证你的身份
doc_auth.hybrid_flow_warning.explanation_html: 你在使用 %{app_name} 验证身份以访问 %{service_provider_name} 及其服务。
@@ -634,7 +634,7 @@ doc_auth.info.exit.without_sp: 退出身份验证并到你的账户页面
doc_auth.info.getting_started_html: '%{sp_name} 需要确保你是你,而不是别人冒充你。 了解更多有关验证你身份的信息 %{link_html}'
doc_auth.info.getting_started_learn_more: 了解有关验证你身份的更多信息
doc_auth.info.how_to_verify: 你可以选择在网上验证身份或者到参与本项目的邮局亲身验证身份。
-doc_auth.info.how_to_verify_selfie: 你可以选择用你的手机在网上验证身份或者到参与本项目的邮局亲身验证身份。
+doc_auth.info.how_to_verify_mobile: 你可以选择用你的手机在网上验证身份或者到参与本项目的邮局亲身验证身份。
doc_auth.info.how_to_verify_troubleshooting_options_header: 想对验证身份获得更多了解吗?
doc_auth.info.hybrid_handoff: 我们将通过读取州政府颁发给你的身份证件来收集你的信息。
doc_auth.info.hybrid_handoff_ipp_html: '没有手机?你可以去一个美国邮局验证身份。'
@@ -671,14 +671,15 @@ doc_auth.info.tag: 建议
doc_auth.info.upload_from_computer: 没有手机?从该电脑上传你身份证件的照片。
doc_auth.info.upload_from_phone: 你不必重新登录,而且拍完照后可以转回到该电脑。你的手机必须带有相机和网络浏览器。
doc_auth.info.verify_at_post_office_description: 如果你没有手机拍身份证件照片,这一选项更好。
-doc_auth.info.verify_at_post_office_description_selfie: 如果你没有手机可以拍照,请选择该选项
+doc_auth.info.verify_at_post_office_description_mobile: 如果你没有手机可以拍照,请选择该选项
doc_auth.info.verify_at_post_office_instruction: 你在网上输入身份证件信息,然后到一个参与本项目的邮局去亲身验证身份。
doc_auth.info.verify_at_post_office_instruction_selfie: 你在网上输入身份证件信息,然后到一个参与本项目的邮局去亲身验证身份。
doc_auth.info.verify_at_post_office_link_text: 对亲身验证获得更多了解
doc_auth.info.verify_identity: 我们会要求获得你的身份识别、电话号码和其他个人信息并通过与公共记录核对来验证你的身份。
doc_auth.info.verify_online_description: 如果你没有移动设备或者无法轻松拍身份证件照片,这一选项更好。
-doc_auth.info.verify_online_description_selfie: 如果你有手机可以拍照,请选择该选项。
+doc_auth.info.verify_online_description_mobile: 如果你有手机可以拍照,请选择该选项。
doc_auth.info.verify_online_instruction: 你将拍身份证件的照片来完全在网上验证身份。大多数用户都能轻松完成这样流程。
+doc_auth.info.verify_online_instruction_mobile_no_selfie: 你将使用手机拍摄你的身份证件照片。大多数用户一次就能完成这个流程。
doc_auth.info.verify_online_instruction_selfie: 你将用手机拍摄身份证件和本人的照片。大多数用户都能轻松完成这一流程。
doc_auth.info.verify_online_link_text: 对网上验证获得更多了解
doc_auth.info.you_entered: 你输入了:
@@ -857,7 +858,7 @@ forms.buttons.confirm: 确认
forms.buttons.continue: 继续
forms.buttons.continue_ipp: 继续亲身验证
forms.buttons.continue_remote: 继续在网上验证
-forms.buttons.continue_remote_selfie: 在手机上继续
+forms.buttons.continue_remote_mobile: 在手机上继续
forms.buttons.delete: 删除
forms.buttons.disable: 删除
forms.buttons.edit: 编辑
diff --git a/spec/features/idv/doc_auth/hybrid_handoff_spec.rb b/spec/features/idv/doc_auth/hybrid_handoff_spec.rb
index c5694c47a20..519ba225ac5 100644
--- a/spec/features/idv/doc_auth/hybrid_handoff_spec.rb
+++ b/spec/features/idv/doc_auth/hybrid_handoff_spec.rb
@@ -385,7 +385,7 @@ def verify_no_upload_photos_section_and_link(page)
end
describe 'when selfie is required by sp' do
before do
- click_on t('forms.buttons.continue_remote_selfie')
+ click_on t('forms.buttons.continue_remote_mobile')
end
it 'shows selfie version of top content and ipp option section' do
verify_handoff_page_selfie_version_content(page)
diff --git a/spec/support/features/doc_auth_helper.rb b/spec/support/features/doc_auth_helper.rb
index 264cee35488..c4789cbf340 100644
--- a/spec/support/features/doc_auth_helper.rb
+++ b/spec/support/features/doc_auth_helper.rb
@@ -103,7 +103,7 @@ def complete_up_to_how_to_verify_step_for_opt_in_ipp(remote: true,
complete_agreement_step
if remote
if facial_match_required
- click_on t('forms.buttons.continue_remote_selfie')
+ click_on t('forms.buttons.continue_remote_mobile')
else
click_on t('forms.buttons.continue_remote')
end
diff --git a/spec/views/idv/how_to_verify/show.html.erb_spec.rb b/spec/views/idv/how_to_verify/show.html.erb_spec.rb
index 4e7b1e6cfad..1a3d6ec7d42 100644
--- a/spec/views/idv/how_to_verify/show.html.erb_spec.rb
+++ b/spec/views/idv/how_to_verify/show.html.erb_spec.rb
@@ -2,8 +2,14 @@
RSpec.describe 'idv/how_to_verify/show.html.erb' do
selection = Idv::HowToVerifyForm::IPP
+ let(:mobile_required) { false }
let(:selfie_check_required) { false }
- let(:presenter) { Idv::HowToVerifyPresenter.new(selfie_check_required: selfie_check_required) }
+ let(:presenter) do
+ Idv::HowToVerifyPresenter.new(
+ mobile_required: mobile_required,
+ selfie_check_required: selfie_check_required,
+ )
+ end
let(:idv_how_to_verify_form) { Idv::HowToVerifyForm.new(selection: selection) }
before do
@@ -11,9 +17,10 @@
assign(:presenter, presenter)
assign :idv_how_to_verify_form, idv_how_to_verify_form
end
- context 'when selfie is not required' do
+ context 'when mobile is not required' do
before do
- @selfie_required = false
+ @mobile_required = mobile_required
+ @selfie_required = selfie_check_required
render
end
@@ -61,11 +68,13 @@
end
end
- context 'when selfie is required' do
- let(:selfie_check_required) { true }
+ context 'when mobile is required' do
+ let(:selfie_check_required) { false }
+ let(:mobile_required) { true }
before do
- @selfie_required = true
+ @selfie_required = selfie_check_required
+ @mobile_required = mobile_required
render
end
@@ -81,12 +90,12 @@
end
it 'renders two options for verifying your identity' do
- expect(rendered).to have_content(t('doc_auth.headings.verify_online_selfie'))
+ expect(rendered).to have_content(t('doc_auth.headings.verify_online_mobile'))
expect(rendered).to have_content(t('doc_auth.headings.verify_at_post_office'))
end
it 'renders a button for remote and ipp' do
- expect(rendered).to have_button(t('forms.buttons.continue_remote_selfie'))
+ expect(rendered).to have_button(t('forms.buttons.continue_remote_mobile'))
expect(rendered).to have_button(t('forms.buttons.continue_ipp'))
end
@@ -102,17 +111,27 @@
expect(rendered).to have_link(t('links.cancel'))
end
- it 'renders selfie specific content' do
- expect(rendered).to have_content(t('doc_auth.info.how_to_verify_selfie'))
- expect(rendered).to have_content(t('doc_auth.tips.mobile_phone_required'))
- expect(rendered).to have_content(t('doc_auth.info.verify_online_instruction_selfie'))
- expect(rendered).to have_content(t('doc_auth.info.verify_online_description_selfie'))
- expect(rendered).to have_content(
- t('doc_auth.info.verify_at_post_office_instruction_selfie'),
- )
+ it 'renders mobile specific content' do
expect(rendered).to have_content(
- t('doc_auth.info.verify_at_post_office_description_selfie'),
+ t('doc_auth.info.verify_online_instruction_mobile_no_selfie'),
)
end
+
+ context 'when selfie is required' do
+ let(:selfie_check_required) { true }
+
+ it 'renders selfie specific content' do
+ expect(rendered).to have_content(t('doc_auth.info.how_to_verify_mobile'))
+ expect(rendered).to have_content(t('doc_auth.tips.mobile_phone_required'))
+ expect(rendered).to have_content(t('doc_auth.info.verify_online_instruction_selfie'))
+ expect(rendered).to have_content(t('doc_auth.info.verify_online_description_mobile'))
+ expect(rendered).to have_content(
+ t('doc_auth.info.verify_at_post_office_instruction_selfie'),
+ )
+ expect(rendered).to have_content(
+ t('doc_auth.info.verify_at_post_office_description_mobile'),
+ )
+ end
+ end
end
end