Skip to content

Commit

Permalink
Move Maryland Health Connection screens after tax refund page (#5276)
Browse files Browse the repository at this point in the history
  • Loading branch information
embarnard authored Dec 23, 2024
1 parent 16d6e27 commit 0f4c194
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ module Questions
class MdHadHealthInsuranceController < QuestionsController
def form_params
if params[:state_file_md_had_health_insurance_form]
params
.fetch(:state_file_md_had_health_insurance_form, {})
.permit(
form_class.attribute_names +
[{ dependents_attributes: [:id, :md_did_not_have_health_insurance] }])
params
.fetch(:state_file_md_had_health_insurance_form, {})
.permit(
form_class.attribute_names +
[{ dependents_attributes: [:id, :md_did_not_have_health_insurance] }])
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/lib/navigation/state_file_md_question_navigation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class StateFileMdQuestionNavigation < Navigation::StateFileBaseQuestionNavigatio
Navigation::NavigationStep.new(StateFile::Questions::SpouseStateIdController),
Navigation::NavigationStep.new(StateFile::Questions::MdReviewController),
Navigation::NavigationStep.new(StateFile::Questions::TaxesOwedController),
Navigation::NavigationStep.new(StateFile::Questions::MdHadHealthInsuranceController),
Navigation::NavigationStep.new(StateFile::Questions::MdTaxRefundController),
Navigation::NavigationStep.new(StateFile::Questions::MdHadHealthInsuranceController),
Navigation::NavigationStep.new(StateFile::Questions::EsignDeclarationController), # creates EfileSubmission and transitions to preparing
]),
Navigation::NavigationSection.new("state_file.navigation.section_6", [
Expand Down
17 changes: 8 additions & 9 deletions spec/features/state_file/complete_intake_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -598,15 +598,6 @@
expect(page).to have_text I18n.t("state_file.questions.shared.abstract_review_header.title")
click_on I18n.t("general.continue")

expect(page).to have_text I18n.t("state_file.questions.md_had_health_insurance.edit.title")
choose I18n.t("general.affirmative")
check "Zeus L Thunder"
within "#answer-no-health-insurance" do
choose I18n.t("general.affirmative")
end

click_on I18n.t("general.continue")

expect(strip_html_tags(page.body)).to have_text strip_html_tags(I18n.t("state_file.questions.tax_refund.edit.title_html", state_name: "Maryland", refund_amount: 1000))
choose I18n.t('state_file.questions.tax_refund.edit.direct_deposit')
choose I18n.t("views.questions.bank_details.account_type.checking")
Expand All @@ -623,6 +614,14 @@
check I18n.t('state_file.questions.md_tax_refund.edit.bank_authorization_confirmation')
click_on I18n.t("general.continue")

expect(page).to have_text I18n.t("state_file.questions.md_had_health_insurance.edit.title")
choose I18n.t("general.affirmative")
check "Zeus L Thunder"
within "#answer-no-health-insurance" do
choose I18n.t("general.affirmative")
end
click_on I18n.t("general.continue")

expect(page).to have_text I18n.t("state_file.questions.esign_declaration.edit.title", state_name: "Maryland")
fill_in 'state_file_esign_declaration_form_primary_signature_pin', with: "12345"
fill_in 'state_file_esign_declaration_form_spouse_signature_pin', with: "54321"
Expand Down

0 comments on commit 0f4c194

Please sign in to comment.