Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions app/views/idv/in_person/address.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<%= render ValidatedFieldComponent.new(
form: f,
input_html: { value: pii[:address1] },
label: t('in_person_proofing.form.address.address1'),
label: t('idv.form.address1'),
label_html: { class: 'usa-label' },
maxlength: 255,
name: :address1,
Expand All @@ -33,7 +33,7 @@
<%= render ValidatedFieldComponent.new(
form: f,
input_html: { value: pii[:address2] },
label: t('in_person_proofing.form.address.address2'),
label: t('idv.form.address2_optional'),
Comment thread
aduth marked this conversation as resolved.
label_html: { class: 'usa-label' },
maxlength: 255,
name: :address2,
Expand All @@ -42,7 +42,7 @@
<%= render ValidatedFieldComponent.new(
form: f,
input_html: { value: pii[:city] },
label: t('in_person_proofing.form.address.city'),
label: t('idv.form.city'),
label_html: { class: 'usa-label' },
maxlength: 255,
name: :city,
Expand All @@ -51,7 +51,7 @@
<%= render ValidatedFieldComponent.new(
collection: us_states_territories,
form: f,
label: t('in_person_proofing.form.address.state'),
label: t('idv.form.state'),
label_html: { class: 'usa-label' },
name: :state,
prompt: t('in_person_proofing.form.address.state_prompt'),
Expand All @@ -66,7 +66,7 @@
error_messages: { patternMismatch: t('idv.errors.pattern_mismatch.zipcode') },
form: f,
input_html: { value: pii[:zipcode], class: 'zipcode' },
label: t('in_person_proofing.form.address.zipcode'),
label: t('idv.form.zipcode'),
label_html: { class: 'usa-label' },
name: :zipcode,
pattern: '\d{5}([\-]\d{4})?',
Expand Down
5 changes: 0 additions & 5 deletions config/locales/in_person_proofing/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,11 @@ en:
ID in person.'
form:
address:
address1: Address
Comment thread
aduth marked this conversation as resolved.
address2: Address (optional)
city: City
same_address: 'Is this address displayed on the state-issued ID that you are
bringing to the Post Office?'
same_address_choice_no: I have a different address on my ID
same_address_choice_yes: This address is on my state-issued ID
state: State
state_prompt: '- Select -'
zipcode: ZIP Code
state_id:
dob: Date of birth
dob_hint: 'Example: 4 28 1986'
Expand Down
5 changes: 0 additions & 5 deletions config/locales/in_person_proofing/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,11 @@ es:
información para confirmar que coincide con su cédula en persona.'
form:
address:
address1: Dirección
address2: Dirección (opcional)
city: Ciudad
same_address: '¿Aparece esta dirección en la cédula de identidad emitido por el
Estado que va a llevar a la oficina de Correos?'
same_address_choice_no: Tengo una dirección diferente en mi cédula de identidad
same_address_choice_yes: Esta dirección aparece en mi cédula de identidad emitida por el estado
state: Estado
state_prompt: '- Seleccione -'
zipcode: Código postal
state_id:
dob: Fecha de nacimiento
dob_hint: 'Ejemplo: 4 28 1986'
Expand Down
5 changes: 0 additions & 5 deletions config/locales/in_person_proofing/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,11 @@ fr:
d’identité en personne.'
form:
address:
address1: Adresse
address2: Adresse (facultatif)
city: Ville
same_address: Cette adresse figure-t-elle sur la pièce d’identité délivrée par
l’État que vous apportez au bureau de poste?
same_address_choice_no: J’ai une adresse différente sur mon document d’identité
same_address_choice_yes: Cette adresse figure sur mon document d’identité nationale
state: État
state_prompt: '- Sélectionnez -'
zipcode: Code postal
state_id:
dob: Date de naissance
dob_hint: 'Exemple: 4 28 1986'
Expand Down
2 changes: 1 addition & 1 deletion spec/features/idv/steps/in_person/verify_step_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
# click update address button
click_button t('idv.buttons.change_address_label')
expect(page).to have_content(t('in_person_proofing.headings.update_address'))
fill_in t('in_person_proofing.form.address.address1'), with: 'bad address'
fill_in t('idv.form.address1'), with: 'bad address'
click_doc_auth_back_link
expect(page).to have_content(t('headings.verify'))
expect(page).to have_text(InPersonHelper::GOOD_ADDRESS1)
Expand Down
10 changes: 5 additions & 5 deletions spec/support/features/in_person_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ def fill_out_state_id_form_ok
end

def fill_out_address_form_ok
fill_in t('in_person_proofing.form.address.address1'), with: GOOD_ADDRESS1
fill_in t('in_person_proofing.form.address.address2'), with: GOOD_ADDRESS2
fill_in t('in_person_proofing.form.address.city'), with: GOOD_CITY
fill_in t('in_person_proofing.form.address.zipcode'), with: GOOD_ZIPCODE
select GOOD_STATE, from: t('in_person_proofing.form.address.state')
fill_in t('idv.form.address1'), with: GOOD_ADDRESS1
fill_in t('idv.form.address2_optional'), with: GOOD_ADDRESS2
fill_in t('idv.form.city'), with: GOOD_CITY
fill_in t('idv.form.zipcode'), with: GOOD_ZIPCODE
select GOOD_STATE, from: t('idv.form.state')
choose t('in_person_proofing.form.address.same_address_choice_yes')
end

Expand Down