diff --git a/app/views/idv/gpo_verify/index.html.erb b/app/views/idv/gpo_verify/index.html.erb index f901c9e1267..40612a17bb5 100644 --- a/app/views/idv/gpo_verify/index.html.erb +++ b/app/views/idv/gpo_verify/index.html.erb @@ -9,6 +9,18 @@ <% title t('forms.verify_profile.title') %> +<%= render AlertComponent.new(type: :info, class: 'margin-bottom-4', text_tag: 'div') do %> +
+ <%= t('forms.verify_profile.alert_info') %>
+
+ <%= render 'shared/address', address: @gpo_verify_form.pii %>
+
+ <%= t('forms.verify_profile.wrong_address') %> + <%= link_to t('forms.verify_profile.clear_and_start_over'), idv_confirm_start_over_path %> +
+<% end %> + <%= render PageHeadingComponent.new.with_content(t('forms.verify_profile.welcome_back')) %> <%= sanitize t('forms.verify_profile.welcome_back_description'), tags: %w[p strong] %>If your letter hasn’t arrived yet, please be patient as letters typically take 3 to 7 business days to arrive. Thank you for your patience.
' + wrong_address: Not the right address? webauthn_delete: caution: If you remove your security key you won’t be able to use it to access your %{app_name} account. diff --git a/config/locales/forms/es.yml b/config/locales/forms/es.yml index 92fe063975d..7e6facd7f85 100644 --- a/config/locales/forms/es.yml +++ b/config/locales/forms/es.yml @@ -142,6 +142,8 @@ es: validation: required_checkbox: Marque esta casilla para continuar verify_profile: + alert_info: 'Enviamos una carta con su código único a:' + clear_and_start_over: Borrar su información y empezar de nuevo instructions: Introduzca el código de 10 caracteres de la carta que ha recibido. name: Código único return_to_profile: Regrese a su perfil @@ -152,6 +154,7 @@ es: único a continuación.Si su carta aún no ha llegado, tenga paciencia, ya que las cartas suelen tardar de 3 a 7 días hábiles en llegar. Gracias por su paciencia.
' + wrong_address: ¿La dirección no es correcta? webauthn_delete: caution: Si elimina su clave de seguridad, no podrá usarla para acceder a su cuenta %{app_name}. diff --git a/config/locales/forms/fr.yml b/config/locales/forms/fr.yml index bb9eaf67407..778f8b04348 100644 --- a/config/locales/forms/fr.yml +++ b/config/locales/forms/fr.yml @@ -143,6 +143,8 @@ fr: validation: required_checkbox: Veuillez cocher cette case pour continuer verify_profile: + alert_info: 'Nous avons envoyé une lettre avec votre code à usage unique à:' + clear_and_start_over: Supprimez vos données et recommencez instructions: Entrez le code à 10 caractères figurant sur la lettre que vous avez reçue. name: Code à usage unique @@ -155,6 +157,7 @@ fr: encore arrivée, veuillez être patient car les lettres prennent généralement entre trois à sept jours ouvrables pour arriver. Nous vous remercions de votre patience.' + wrong_address: Pas la bonne adresse? webauthn_delete: caution: Si vous supprimez votre clé de sécurité, vous ne pourrez plus l’utiliser pour accéder à votre compte %{app_name}. diff --git a/spec/features/idv/steps/gpo_otp_verification_step_spec.rb b/spec/features/idv/steps/gpo_otp_verification_step_spec.rb index 989882f443a..fe52b3b71df 100644 --- a/spec/features/idv/steps/gpo_otp_verification_step_spec.rb +++ b/spec/features/idv/steps/gpo_otp_verification_step_spec.rb @@ -9,7 +9,15 @@ :profile, deactivation_reason: 3, gpo_verification_pending_at: 2.days.ago, - pii: { ssn: '123-45-6789', dob: '1970-01-01' }, + pii: { + address1: '1 Secure Way', + address2: 'Unit #4', + city: 'Loginville', + state: 'DC', + zipcode: '11111', + ssn: '123-45-6789', + dob: '1970-01-01', + }, fraud_review_pending_at: fraud_review_pending_timestamp, fraud_rejection_at: fraud_rejection_timestamp, ) @@ -111,4 +119,34 @@ expect(page).to_not have_content(t('account.index.verification.reactivate_button')) end end + + it 'allows a user to cancel and start over withinthe banner' do + sign_in_live_with_2fa(user) + + expect(current_path).to eq idv_gpo_verify_path + expect(page).to have_content t('forms.verify_profile.alert_info') + expect(page).to have_content t('forms.verify_profile.wrong_address') + expect(page).to have_content '1 Secure Way' + + click_on t('forms.verify_profile.clear_and_start_over') + + expect(current_path).to eq idv_confirm_start_over_path + + click_idv_continue + + expect(current_path).to eq idv_doc_auth_welcome_step + end + + it 'allows a user to cancel and start over in the footer' do + sign_in_live_with_2fa(user) + + expect(current_path).to eq idv_gpo_verify_path + click_on t('idv.messages.clear_and_start_over') + + expect(current_path).to eq idv_confirm_start_over_path + + click_idv_continue + + expect(current_path).to eq idv_doc_auth_welcome_step + end end