Skip to content

Commit

Permalink
Add health insurance premium data to the final review screen for ID
Browse files Browse the repository at this point in the history
  • Loading branch information
arinchoi03 committed Oct 29, 2024
1 parent 4f96e1b commit 6492041
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
8 changes: 8 additions & 0 deletions app/views/state_file/questions/id_review/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,13 @@
<% content_for :card do %>
<%= render "state_file/questions/shared/review_header" %>

<div id="health-insurance-premium" class="white-group">
<div class="spacing-below-5">
<p class="text--bold spacing-below-5"><%=t(".health_insurance_premium_title") %></p>
<p><%=number_to_currency(current_intake.health_insurance_paid_amount || 0, precision: 2)%></p>
<%= link_to t("general.edit"), StateFile::Questions::IdHealthInsurancePremiumController.to_path_helper(return_to_review: "y"), class: "button--small" %>
</div>
</div>

<%= render "state_file/questions/shared/review_footer" %>
<% end %>
3 changes: 3 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2550,6 +2550,9 @@ en:
<li><b>Salary reduction plans:</b> Premiums deducted from your paycheck before taxes do not qualify.</li>
<li><b>Social Security Medicare A and B:</b> No deduction for employer-required Medicare A payments.</li>
</ul>
id_review:
edit:
health_insurance_premium_title: "Idaho Health Insurance Premium Subtraction"
id_sales_use_tax:
edit:
sales_tax_content: This is a tax collected at the point of sale when you buy goods within your state.
Expand Down
3 changes: 3 additions & 0 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2522,6 +2522,9 @@ es:
<li><b>Planes de reducción salarial:</b> Las primas deducidas de su cheque de pago antes de impuestos no califican.</li>
<li><b>Seguro Social Medicare A y B:</b> Sin deducción por pagos de Medicare A requeridos por el empleador.</li>
</ul>
id_review:
edit:
health_insurance_premium_title: "Resta de primas de seguro médico de Idaho"
id_sales_use_tax:
edit:
sales_tax_content: Este es un impuesto que se recauda en el punto de venta cuando se compran productos dentro de su estado.
Expand Down
6 changes: 3 additions & 3 deletions spec/features/state_file/complete_intake_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -495,18 +495,18 @@
# Health Insurance Premium
expect(page).to have_text I18n.t('state_file.questions.id_health_insurance_premium.edit.title')
choose I18n.t("general.affirmative")
fill_in 'state_file_id_health_insurance_premium_health_insurance_paid', with: "1234.60"
fill_in 'state_file_id_health_insurance_premium_form_health_insurance_paid_amount', with: "1234.60"
click_on I18n.t("general.continue")

# Sales/Use Tax
expect(page).to have_text I18n.t('state_file.questions.id_sales_use_tax.edit.title', year: MultiTenantService.statefile.current_tax_year)
choose I18n.t("general.affirmative")
fill_in 'state_file_id_sales_use_tax_form_total_purchase_amount', with: "290"
click_on I18n.t("general.continue")

# ID Review page
click_on I18n.t("general.continue")
expect(page).to have_text "Idaho Health Insurance Premium Subtraction"
expect(page).to have_text "1234.60"
expect(page).to have_text "$1,234.60"

# TODO: uncomment when the name dob page is added; test fails without a name
# expect(page).to have_text(I18n.t('state_file.questions.unemployment.index.1099_label', name: StateFileIdIntake.last.primary.full_name))
Expand Down

0 comments on commit 6492041

Please sign in to comment.