From 0fd9380481d489f8f39f374242cfb2b8280f3fc5 Mon Sep 17 00:00:00 2001 From: Anne LoVerso Date: Mon, 30 Dec 2024 12:41:21 -0500 Subject: [PATCH] fix e2e test failures --- .../state_file/questions/nj_household_rent_own/edit.html.erb | 2 +- config/locales/en.yml | 2 +- config/locales/es.yml | 2 +- spec/features/state_file/complete_intake_spec.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/state_file/questions/nj_household_rent_own/edit.html.erb b/app/views/state_file/questions/nj_household_rent_own/edit.html.erb index 969945060a..4c7fa7bbcd 100644 --- a/app/views/state_file/questions/nj_household_rent_own/edit.html.erb +++ b/app/views/state_file/questions/nj_household_rent_own/edit.html.erb @@ -15,7 +15,7 @@ { value: :own, label: t(".homeowner_html") }, { value: :rent, label: t(".tenant_html") }, { value: :both, label: t(".both_html") }, - { value: :neither, label: t(".neither") }, + { value: :neither, label: t(".neither_html") }, ] ) %> diff --git a/config/locales/en.yml b/config/locales/en.yml index f1c85052e1..10608a2875 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3236,7 +3236,7 @@ en: helper_4_header: How much is this deduction or credit worth? homeowner_html: I was a homeowner for at least part of the year label_html: How would you describe your living situation in %{filing_year} as it pertains to your main home(s)? - neither: Other + neither_html: Other tenant_html: I was a renter for at least part of the year title: You may qualify for a property tax deduction or credit on your main home, whether you owned or rented it. nj_ineligible_property_tax: diff --git a/config/locales/es.yml b/config/locales/es.yml index 0a9f25c4fe..8339941dcd 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -3196,7 +3196,7 @@ es: helper_4_header: How much is this deduction or credit worth? homeowner_html: I was a homeowner for at least part of the year label_html: How would you describe your living situation in %{filing_year} as it pertains to your main home(s)? - neither: Other + neither_html: Other tenant_html: I was a renter for at least part of the year title: You may qualify for a property tax deduction or credit on your main home, whether you owned or rented it. nj_ineligible_property_tax: diff --git a/spec/features/state_file/complete_intake_spec.rb b/spec/features/state_file/complete_intake_spec.rb index fbe00fdc6f..3ae6ed8233 100644 --- a/spec/features/state_file/complete_intake_spec.rb +++ b/spec/features/state_file/complete_intake_spec.rb @@ -725,7 +725,7 @@ def continue def choose_household_rent_own(household_rent_own) case household_rent_own when "homeowner", "tenant", "both", "neither" - choose I18n.t("state_file.questions.nj_household_rent_own.edit.#{household_rent_own}") + choose strip_html_tags(I18n.t("state_file.questions.nj_household_rent_own.edit.#{household_rent_own}_html")) else throw "not a valid choice" end