diff --git a/app/views/idv/welcome/show.html.erb b/app/views/idv/welcome/show.html.erb index 8544c7d4ef1..0ce1009fd3c 100644 --- a/app/views/idv/welcome/show.html.erb +++ b/app/views/idv/welcome/show.html.erb @@ -25,8 +25,14 @@

<%= t('doc_auth.instructions.getting_started') %>

<%= render ProcessListComponent.new(heading_level: :h3, class: 'margin-y-3') do |c| %> - <%= c.with_item(heading: t('doc_auth.instructions.bullet1')) do %> -

<%= t('doc_auth.instructions.text1') %>

+ <% if decorated_sp_session.selfie_required? %> + <%= c.with_item(heading: t('doc_auth.instructions.bullet1_with_selfie')) do %> +

<%= t('doc_auth.instructions.text1_with_selfie') %>

+ <% end %> + <% else %> + <%= c.with_item(heading: t('doc_auth.instructions.bullet1')) do %> +

<%= t('doc_auth.instructions.text1') %>

+ <% end %> <% end %> <%= c.with_item(heading: t('doc_auth.instructions.bullet2')) do %>

<%= t('doc_auth.instructions.text2') %>

@@ -58,4 +64,4 @@ <% end %> <%= render 'shared/cancel', link: idv_cancel_path(step: 'welcome') %> <% end %> -<%= javascript_packs_tag_once('document-capture-welcome') %> \ No newline at end of file +<%= javascript_packs_tag_once('document-capture-welcome') %> diff --git a/config/locales/doc_auth/en.yml b/config/locales/doc_auth/en.yml index 51cdb7c9bb7..40b0f6a3a9a 100644 --- a/config/locales/doc_auth/en.yml +++ b/config/locales/doc_auth/en.yml @@ -246,6 +246,7 @@ en: you_entered: 'You entered:' instructions: bullet1: Take photos of your ID + bullet1_with_selfie: Take photos of yourself and your ID bullet2: Enter your Social Security number bullet3: Match to your phone number bullet4: Re-enter your %{app_name} password @@ -260,6 +261,8 @@ en: considered valid. Do not enter real PII in this field. text1: Use your driver’s license or state ID card. Other forms of ID are not accepted. + text1_with_selfie: Take a photo of yourself and take photos of your driver’s + license or state ID card. Other forms of ID are not accepted. text2: You will not need your physical SSN card. text3: Your phone number matches you to your personal information. After you match, we’ll send you a code. diff --git a/config/locales/doc_auth/es.yml b/config/locales/doc_auth/es.yml index 85e6111e5a5..ce537f99f04 100644 --- a/config/locales/doc_auth/es.yml +++ b/config/locales/doc_auth/es.yml @@ -288,6 +288,7 @@ es: you_entered: 'Ud. entregó:' instructions: bullet1: Tomar fotos de tu identificación oficial + bullet1_with_selfie: Tomar fotos tuyas y de tu identificación oficial bullet2: Ingresar tu Número de Seguro Social bullet3: Confirmar tu número de teléfono bullet4: Ingresar de nuevo tu contraseña de %{app_name} @@ -303,6 +304,9 @@ es: se consideran válidos. No ingrese PII real en este campo. text1: Utiliza tu licencia de conducir o identificación oficial estatal. No aceptamos ningún otro tipo de identificación. + text1_with_selfie: Tómate una foto y toma fotografías de tu licencia de conducir + o identificación oficial estatal. No aceptamos ningún otro tipo de + identificación. text2: No necesitarás tu tarjeta física del seguro social. text3: Tu número de teléfono te vincula con tu información personal. Luego de confirmar tu información, te enviaremos un código. diff --git a/config/locales/doc_auth/fr.yml b/config/locales/doc_auth/fr.yml index e93163a2f82..1c12cc52be6 100644 --- a/config/locales/doc_auth/fr.yml +++ b/config/locales/doc_auth/fr.yml @@ -298,6 +298,7 @@ fr: you_entered: 'Tu as soumis:' instructions: bullet1: Prendre des photos de votre pièce d’identité + bullet1_with_selfie: Prenez des photos de vous et de vos pièces d’identité bullet2: Saisissez votre numéro de sécurité sociale bullet3: Faites correspondre votre numéro de téléphone bullet4: Saisissez à nouveau votre mot de passe %{app_name} @@ -313,6 +314,9 @@ fr: champ. text1: Utilisez votre permis de conduire ou votre carte d’identité nationale. Les autres pièces d’identité ne sont pas acceptées. + text1_with_selfie: Prenez une photo de vous et une de votre permis de conduire + ou carte d’identité nationale. Les autres pièces d’identité ne sont pas + acceptées. text2: Vous n’aurez pas besoin de votre carte de sécurité sociale. text3: Votre numéro de téléphone correspond à vos informations personnelles. Une fois la correspondance établie, nous vous enverrons un code. diff --git a/spec/views/idv/welcome/show.html.erb_spec.rb b/spec/views/idv/welcome/show.html.erb_spec.rb index 82699afe628..12cd6916e6c 100644 --- a/spec/views/idv/welcome/show.html.erb_spec.rb +++ b/spec/views/idv/welcome/show.html.erb_spec.rb @@ -3,11 +3,13 @@ RSpec.describe 'idv/welcome/show.html.erb' do let(:user_fully_authenticated) { true } let(:sp_name) { nil } + let(:selfie_required) { false } let(:user) { create(:user) } before do @decorated_sp_session = instance_double(ServiceProviderSession) allow(@decorated_sp_session).to receive(:sp_name).and_return(sp_name) + allow(@decorated_sp_session).to receive(:selfie_required?).and_return(selfie_required) @sp_name = @decorated_sp_session.sp_name || APP_NAME @title = t('doc_auth.headings.welcome', sp_name: @sp_name) allow(view).to receive(:decorated_sp_session).and_return(@decorated_sp_session) @@ -33,6 +35,7 @@ it 'renders the welcome template' do expect(rendered).to have_content(@title) expect(rendered).to have_content(t('doc_auth.instructions.getting_started')) + expect(rendered).to have_content(t('doc_auth.instructions.bullet1')) expect(rendered).to have_link( t('doc_auth.info.getting_started_learn_more'), href: help_center_redirect_path( @@ -44,5 +47,13 @@ ), ) end + + context 'when the SP requests IAL2 verification' do + let(:selfie_required) { true } + + it 'renders a modified welcome template' do + expect(rendered).to have_content(t('doc_auth.instructions.bullet1_with_selfie')) + end + end end end