Browse Source

Rename attribute

pull/1584/head
Kat 3 years ago
parent
commit
f2c0882dd7
  1. 2
      app/helpers/interruption_screen_helper.rb
  2. 2
      app/models/form/lettings/pages/care_home_charges_value_check.rb
  3. 2
      app/models/form/lettings/pages/females_in_soft_age_range_in_pregnant_household_lead_age_value_check.rb
  4. 2
      app/models/form/lettings/pages/females_in_soft_age_range_in_pregnant_household_lead_hhmemb_value_check.rb
  5. 2
      app/models/form/lettings/pages/females_in_soft_age_range_in_pregnant_household_lead_value_check.rb
  6. 2
      app/models/form/lettings/pages/females_in_soft_age_range_in_pregnant_household_person_age_value_check.rb
  7. 2
      app/models/form/lettings/pages/females_in_soft_age_range_in_pregnant_household_person_value_check.rb
  8. 2
      app/models/form/lettings/pages/females_in_soft_age_range_in_pregnant_household_value_check.rb
  9. 2
      app/models/form/lettings/pages/lead_tenant_over_retirement_value_check.rb
  10. 2
      app/models/form/lettings/pages/lead_tenant_under_retirement_value_check.rb
  11. 2
      app/models/form/lettings/pages/max_rent_value_check.rb
  12. 2
      app/models/form/lettings/pages/min_rent_value_check.rb
  13. 2
      app/models/form/lettings/pages/net_income_value_check.rb
  14. 2
      app/models/form/lettings/pages/no_females_pregnant_household_lead_age_value_check.rb
  15. 2
      app/models/form/lettings/pages/no_females_pregnant_household_lead_hhmemb_value_check.rb
  16. 2
      app/models/form/lettings/pages/no_females_pregnant_household_lead_value_check.rb
  17. 2
      app/models/form/lettings/pages/no_females_pregnant_household_person_age_value_check.rb
  18. 2
      app/models/form/lettings/pages/no_females_pregnant_household_person_value_check.rb
  19. 2
      app/models/form/lettings/pages/no_females_pregnant_household_value_check.rb
  20. 2
      app/models/form/lettings/pages/person_over_retirement_value_check.rb
  21. 2
      app/models/form/lettings/pages/person_under_retirement_value_check.rb
  22. 2
      app/models/form/lettings/pages/property_major_repairs_value_check.rb
  23. 2
      app/models/form/lettings/pages/void_date_value_check.rb
  24. 4
      app/models/form/page.rb
  25. 2
      app/models/form/sales/pages/about_price_value_check.rb
  26. 2
      app/models/form/sales/pages/buyer1_income_value_check.rb
  27. 2
      app/models/form/sales/pages/buyer2_income_value_check.rb
  28. 2
      app/models/form/sales/pages/buyer_live_in_value_check.rb
  29. 2
      app/models/form/sales/pages/deposit_and_mortgage_value_check.rb
  30. 2
      app/models/form/sales/pages/deposit_value_check.rb
  31. 2
      app/models/form/sales/pages/discounted_sale_value_check.rb
  32. 2
      app/models/form/sales/pages/extra_borrowing_value_check.rb
  33. 2
      app/models/form/sales/pages/grant_value_check.rb
  34. 2
      app/models/form/sales/pages/handover_date_check.rb
  35. 2
      app/models/form/sales/pages/household_wheelchair_check.rb
  36. 2
      app/models/form/sales/pages/monthly_charges_value_check.rb
  37. 2
      app/models/form/sales/pages/mortgage_value_check.rb
  38. 2
      app/models/form/sales/pages/old_persons_shared_ownership_value_check.rb
  39. 2
      app/models/form/sales/pages/percentage_discount_value_check.rb
  40. 2
      app/models/form/sales/pages/person_student_not_child_value_check.rb
  41. 2
      app/models/form/sales/pages/retirement_value_check.rb
  42. 2
      app/models/form/sales/pages/savings_value_check.rb
  43. 2
      app/models/form/sales/pages/shared_ownership_deposit_value_check.rb
  44. 2
      app/models/form/sales/pages/staircase_bought_value_check.rb
  45. 116
      config/forms/2022_2023.json
  46. 4
      spec/fixtures/forms/2021_2022.json
  47. 4
      spec/models/form/lettings/pages/care_home_charges_value_check_spec.rb
  48. 4
      spec/models/form/lettings/pages/max_rent_value_check_spec.rb
  49. 4
      spec/models/form/lettings/pages/min_rent_value_check_spec.rb
  50. 4
      spec/models/form/sales/pages/about_price_value_check_spec.rb
  51. 4
      spec/models/form/sales/pages/buyer1_income_value_check_spec.rb
  52. 8
      spec/models/form/sales/pages/buyer_live_in_value_check_spec.rb
  53. 4
      spec/models/form/sales/pages/deposit_value_check_spec.rb
  54. 4
      spec/models/form/sales/pages/discounted_sale_value_check_spec.rb
  55. 4
      spec/models/form/sales/pages/handover_date_check_spec.rb
  56. 4
      spec/models/form/sales/pages/household_wheelchair_check_spec.rb
  57. 4
      spec/models/form/sales/pages/monthly_charges_value_check_spec.rb
  58. 4
      spec/models/form/sales/pages/mortgage_value_check_spec.rb
  59. 4
      spec/models/form/sales/pages/old_persons_shared_ownership_value_check_spec.rb
  60. 4
      spec/models/form/sales/pages/percentage_discount_value_check_spec.rb
  61. 24
      spec/models/form/sales/pages/person_student_not_child_value_check_spec.rb
  62. 24
      spec/models/form/sales/pages/retirement_value_check_spec.rb
  63. 4
      spec/models/form/sales/pages/savings_value_check_spec.rb
  64. 4
      spec/models/form/sales/pages/shared_ownership_deposit_value_check_spec.rb

2
app/helpers/interruption_screen_helper.rb

@ -30,7 +30,7 @@ module InterruptionScreenHelper
end end
def soft_validation_affected_questions(question, log) def soft_validation_affected_questions(question, log)
question.page.affected_question_ids.map { |question_id| log.form.get_question(question_id, log) }.compact question.page.interruption_screen_question_ids.map { |question_id| log.form.get_question(question_id, log) }.compact
end end
private private

2
app/models/form/lettings/pages/care_home_charges_value_check.rb

@ -13,7 +13,7 @@ class Form::Lettings::Pages::CareHomeChargesValueCheck < ::Form::Page
@questions ||= [Form::Lettings::Questions::CareHomeChargesValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::CareHomeChargesValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[chcharge is_carehome] %w[chcharge is_carehome]
end end
end end

2
app/models/form/lettings/pages/females_in_soft_age_range_in_pregnant_household_lead_age_value_check.rb

@ -17,7 +17,7 @@ class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdLeadAgeValu
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8 age1 age2 age3 age4 age5 age6 age7 age8] %w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8 age1 age2 age3 age4 age5 age6 age7 age8]
end end
end end

2
app/models/form/lettings/pages/females_in_soft_age_range_in_pregnant_household_lead_hhmemb_value_check.rb

@ -17,7 +17,7 @@ class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdLeadHhmembV
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8 age1 age2 age3 age4 age5 age6 age7 age8] %w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8 age1 age2 age3 age4 age5 age6 age7 age8]
end end
end end

2
app/models/form/lettings/pages/females_in_soft_age_range_in_pregnant_household_lead_value_check.rb

@ -17,7 +17,7 @@ class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdLeadValueCh
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8 age1 age2 age3 age4 age5 age6 age7 age8] %w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8 age1 age2 age3 age4 age5 age6 age7 age8]
end end
end end

2
app/models/form/lettings/pages/females_in_soft_age_range_in_pregnant_household_person_age_value_check.rb

@ -34,7 +34,7 @@ class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPersonAgeVa
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8 age1 age2 age3 age4 age5 age6 age7 age8] %w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8 age1 age2 age3 age4 age5 age6 age7 age8]
end end
end end

2
app/models/form/lettings/pages/females_in_soft_age_range_in_pregnant_household_person_value_check.rb

@ -34,7 +34,7 @@ class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdPersonValue
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8 age1 age2 age3 age4 age5 age6 age7 age8] %w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8 age1 age2 age3 age4 age5 age6 age7 age8]
end end
end end

2
app/models/form/lettings/pages/females_in_soft_age_range_in_pregnant_household_value_check.rb

@ -17,7 +17,7 @@ class Form::Lettings::Pages::FemalesInSoftAgeRangeInPregnantHouseholdValueCheck
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8 age1 age2 age3 age4 age5 age6 age7 age8] %w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8 age1 age2 age3 age4 age5 age6 age7 age8]
end end
end end

2
app/models/form/lettings/pages/lead_tenant_over_retirement_value_check.rb

@ -30,7 +30,7 @@ class Form::Lettings::Pages::LeadTenantOverRetirementValueCheck < ::Form::Page
@questions ||= [Form::Lettings::Questions::RetirementValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::RetirementValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[ecstat1 sex1 age1] %w[ecstat1 sex1 age1]
end end
end end

2
app/models/form/lettings/pages/lead_tenant_under_retirement_value_check.rb

@ -30,7 +30,7 @@ class Form::Lettings::Pages::LeadTenantUnderRetirementValueCheck < ::Form::Page
@questions ||= [Form::Lettings::Questions::NoRetirementValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::NoRetirementValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[ecstat1 sex1 age1] %w[ecstat1 sex1 age1]
end end
end end

2
app/models/form/lettings/pages/max_rent_value_check.rb

@ -29,7 +29,7 @@ class Form::Lettings::Pages::MaxRentValueCheck < ::Form::Page
@questions ||= [Form::Lettings::Questions::RentValueCheck.new(nil, nil, self, check_answers_card_number: @check_answers_card_number)] @questions ||= [Form::Lettings::Questions::RentValueCheck.new(nil, nil, self, check_answers_card_number: @check_answers_card_number)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[brent startdate la beds rent_type needstype] %w[brent startdate la beds rent_type needstype]
end end
end end

2
app/models/form/lettings/pages/min_rent_value_check.rb

@ -25,7 +25,7 @@ class Form::Lettings::Pages::MinRentValueCheck < ::Form::Page
@questions ||= [Form::Lettings::Questions::RentValueCheck.new(nil, nil, self, check_answers_card_number: @check_answers_card_number)] @questions ||= [Form::Lettings::Questions::RentValueCheck.new(nil, nil, self, check_answers_card_number: @check_answers_card_number)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[brent startdate la beds rent_type needstype] %w[brent startdate la beds rent_type needstype]
end end
end end

2
app/models/form/lettings/pages/net_income_value_check.rb

@ -25,7 +25,7 @@ class Form::Lettings::Pages::NetIncomeValueCheck < ::Form::Page
@questions ||= [Form::Lettings::Questions::NetIncomeValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::NetIncomeValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[incfreq earnings ecstat1] %w[incfreq earnings ecstat1]
end end
end end

2
app/models/form/lettings/pages/no_females_pregnant_household_lead_age_value_check.rb

@ -17,7 +17,7 @@ class Form::Lettings::Pages::NoFemalesPregnantHouseholdLeadAgeValueCheck < ::For
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8] %w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8]
end end
end end

2
app/models/form/lettings/pages/no_females_pregnant_household_lead_hhmemb_value_check.rb

@ -17,7 +17,7 @@ class Form::Lettings::Pages::NoFemalesPregnantHouseholdLeadHhmembValueCheck < ::
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8] %w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8]
end end
end end

2
app/models/form/lettings/pages/no_females_pregnant_household_lead_value_check.rb

@ -17,7 +17,7 @@ class Form::Lettings::Pages::NoFemalesPregnantHouseholdLeadValueCheck < ::Form::
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8] %w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8]
end end
end end

2
app/models/form/lettings/pages/no_females_pregnant_household_person_age_value_check.rb

@ -17,7 +17,7 @@ class Form::Lettings::Pages::NoFemalesPregnantHouseholdPersonAgeValueCheck < ::F
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8] %w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8]
end end
end end

2
app/models/form/lettings/pages/no_females_pregnant_household_person_value_check.rb

@ -17,7 +17,7 @@ class Form::Lettings::Pages::NoFemalesPregnantHouseholdPersonValueCheck < ::Form
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8] %w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8]
end end
end end

2
app/models/form/lettings/pages/no_females_pregnant_household_value_check.rb

@ -17,7 +17,7 @@ class Form::Lettings::Pages::NoFemalesPregnantHouseholdValueCheck < ::Form::Page
@questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::PregnancyValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8] %w[preg_occ sex1 sex2 sex3 sex4 sex5 sex6 sex7 sex8]
end end
end end

2
app/models/form/lettings/pages/person_over_retirement_value_check.rb

@ -35,7 +35,7 @@ class Form::Lettings::Pages::PersonOverRetirementValueCheck < ::Form::Page
@questions ||= [Form::Lettings::Questions::RetirementValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::RetirementValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
["ecstat#{@person_index}", "sex#{@person_index}", "age#{@person_index}"] ["ecstat#{@person_index}", "sex#{@person_index}", "age#{@person_index}"]
end end
end end

2
app/models/form/lettings/pages/person_under_retirement_value_check.rb

@ -35,7 +35,7 @@ class Form::Lettings::Pages::PersonUnderRetirementValueCheck < ::Form::Page
@questions ||= [Form::Lettings::Questions::NoRetirementValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::NoRetirementValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
["ecstat#{@person_index}", "sex#{@person_index}", "age#{@person_index}"] ["ecstat#{@person_index}", "sex#{@person_index}", "age#{@person_index}"]
end end
end end

2
app/models/form/lettings/pages/property_major_repairs_value_check.rb

@ -11,7 +11,7 @@ class Form::Lettings::Pages::PropertyMajorRepairsValueCheck < ::Form::Page
@questions ||= [Form::Lettings::Questions::MajorRepairsDateValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::MajorRepairsDateValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[mrcdate startdate] %w[mrcdate startdate]
end end
end end

2
app/models/form/lettings/pages/void_date_value_check.rb

@ -11,7 +11,7 @@ class Form::Lettings::Pages::VoidDateValueCheck < ::Form::Page
@questions ||= [Form::Lettings::Questions::VoidDateValueCheck.new(nil, nil, self)] @questions ||= [Form::Lettings::Questions::VoidDateValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[voiddate startdate] %w[voiddate startdate]
end end
end end

4
app/models/form/page.rb

@ -1,7 +1,7 @@
class Form::Page class Form::Page
attr_accessor :id, :header, :header_partial, :description, :questions, :depends_on, :title_text, attr_accessor :id, :header, :header_partial, :description, :questions, :depends_on, :title_text,
:informative_text, :subsection, :hide_subsection_label, :next_unresolved_page_id, :informative_text, :subsection, :hide_subsection_label, :next_unresolved_page_id,
:skip_text, :affected_question_ids :skip_text, :interruption_screen_question_ids
def initialize(id, hsh, subsection) def initialize(id, hsh, subsection)
@id = id @id = id
@ -17,7 +17,7 @@ class Form::Page
@hide_subsection_label = hsh["hide_subsection_label"] @hide_subsection_label = hsh["hide_subsection_label"]
@next_unresolved_page_id = hsh["next_unresolved_page_id"] @next_unresolved_page_id = hsh["next_unresolved_page_id"]
@skip_text = hsh["skip_text"] @skip_text = hsh["skip_text"]
@affected_question_ids = hsh["affected_question_ids"] || [] @interruption_screen_question_ids = hsh["interruption_screen_question_ids"] || []
end end
end end

2
app/models/form/sales/pages/about_price_value_check.rb

@ -38,7 +38,7 @@ class Form::Sales::Pages::AboutPriceValueCheck < ::Form::Page
] ]
end end
def affected_question_ids def interruption_screen_question_ids
%w[value beds la] %w[value beds la]
end end
end end

2
app/models/form/sales/pages/buyer1_income_value_check.rb

@ -30,7 +30,7 @@ class Form::Sales::Pages::Buyer1IncomeValueCheck < ::Form::Page
] ]
end end
def affected_question_ids def interruption_screen_question_ids
%w[ecstat1 income1] %w[ecstat1 income1]
end end
end end

2
app/models/form/sales/pages/buyer2_income_value_check.rb

@ -33,7 +33,7 @@ class Form::Sales::Pages::Buyer2IncomeValueCheck < ::Form::Page
] ]
end end
def affected_question_ids def interruption_screen_question_ids
%w[ecstat2 income2] %w[ecstat2 income2]
end end
end end

2
app/models/form/sales/pages/buyer_live_in_value_check.rb

@ -19,7 +19,7 @@ class Form::Sales::Pages::BuyerLiveInValueCheck < Form::Sales::Pages::Person
] ]
end end
def affected_question_ids def interruption_screen_question_ids
["ownershipsch", "buy#{@person_index}livein"] ["ownershipsch", "buy#{@person_index}livein"]
end end
end end

2
app/models/form/sales/pages/deposit_and_mortgage_value_check.rb

@ -15,7 +15,7 @@ class Form::Sales::Pages::DepositAndMortgageValueCheck < ::Form::Page
] ]
end end
def affected_question_ids def interruption_screen_question_ids
%w[mortgage deposit value discount] %w[mortgage deposit value discount]
end end
end end

2
app/models/form/sales/pages/deposit_value_check.rb

@ -18,7 +18,7 @@ class Form::Sales::Pages::DepositValueCheck < ::Form::Page
] ]
end end
def affected_question_ids def interruption_screen_question_ids
%w[savings deposit] %w[savings deposit]
end end
end end

2
app/models/form/sales/pages/discounted_sale_value_check.rb

@ -36,7 +36,7 @@ class Form::Sales::Pages::DiscountedSaleValueCheck < ::Form::Page
] ]
end end
def affected_question_ids def interruption_screen_question_ids
%w[value deposit ownershipsch mortgage mortgageused discount grant type] %w[value deposit ownershipsch mortgage mortgageused discount grant type]
end end
end end

2
app/models/form/sales/pages/extra_borrowing_value_check.rb

@ -18,7 +18,7 @@ class Form::Sales::Pages::ExtraBorrowingValueCheck < Form::Page
] ]
end end
def affected_question_ids def interruption_screen_question_ids
%w[extrabor mortgage deposit value discount] %w[extrabor mortgage deposit value discount]
end end
end end

2
app/models/form/sales/pages/grant_value_check.rb

@ -17,7 +17,7 @@ class Form::Sales::Pages::GrantValueCheck < ::Form::Page
] ]
end end
def affected_question_ids def interruption_screen_question_ids
%w[grant] %w[grant]
end end
end end

2
app/models/form/sales/pages/handover_date_check.rb

@ -17,7 +17,7 @@ class Form::Sales::Pages::HandoverDateCheck < ::Form::Page
] ]
end end
def affected_question_ids def interruption_screen_question_ids
%w[hodate saledate] %w[hodate saledate]
end end
end end

2
app/models/form/sales/pages/household_wheelchair_check.rb

@ -16,7 +16,7 @@ class Form::Sales::Pages::HouseholdWheelchairCheck < ::Form::Page
] ]
end end
def affected_question_ids def interruption_screen_question_ids
%w[disabled wheel] %w[disabled wheel]
end end
end end

2
app/models/form/sales/pages/monthly_charges_value_check.rb

@ -19,7 +19,7 @@ class Form::Sales::Pages::MonthlyChargesValueCheck < ::Form::Page
] ]
end end
def affected_question_ids def interruption_screen_question_ids
%w[type mscharge proptype] %w[type mscharge proptype]
end end
end end

2
app/models/form/sales/pages/mortgage_value_check.rb

@ -30,7 +30,7 @@ class Form::Sales::Pages::MortgageValueCheck < ::Form::Page
end end
end end
def affected_question_ids def interruption_screen_question_ids
%w[mortgage inc1mort inc2mort jointpur income1 income2 inc1mort inc2mort] %w[mortgage inc1mort inc2mort jointpur income1 income2 inc1mort inc2mort]
end end
end end

2
app/models/form/sales/pages/old_persons_shared_ownership_value_check.rb

@ -19,7 +19,7 @@ class Form::Sales::Pages::OldPersonsSharedOwnershipValueCheck < ::Form::Page
] ]
end end
def affected_question_ids def interruption_screen_question_ids
%w[type jointpur age1 age2] %w[type jointpur age1 age2]
end end
end end

2
app/models/form/sales/pages/percentage_discount_value_check.rb

@ -13,7 +13,7 @@ class Form::Sales::Pages::PercentageDiscountValueCheck < ::Form::Page
@questions ||= [Form::Sales::Questions::PercentageDiscountValueCheck.new(nil, nil, self)] @questions ||= [Form::Sales::Questions::PercentageDiscountValueCheck.new(nil, nil, self)]
end end
def affected_question_ids def interruption_screen_question_ids
%w[discount proptype] %w[discount proptype]
end end
end end

2
app/models/form/sales/pages/person_student_not_child_value_check.rb

@ -19,7 +19,7 @@ class Form::Sales::Pages::PersonStudentNotChildValueCheck < Form::Sales::Pages::
] ]
end end
def affected_question_ids def interruption_screen_question_ids
["relat#{@person_index}", "exstat#{@person_index}", "age#{@person_index}"] ["relat#{@person_index}", "exstat#{@person_index}", "age#{@person_index}"]
end end
end end

2
app/models/form/sales/pages/retirement_value_check.rb

@ -40,7 +40,7 @@ class Form::Sales::Pages::RetirementValueCheck < Form::Sales::Pages::Person
] ]
end end
def affected_question_ids def interruption_screen_question_ids
["age#{@person_index}", "exstat#{@person_index}", "sex#{@person_index}"] ["age#{@person_index}", "exstat#{@person_index}", "sex#{@person_index}"]
end end
end end

2
app/models/form/sales/pages/savings_value_check.rb

@ -18,7 +18,7 @@ class Form::Sales::Pages::SavingsValueCheck < ::Form::Page
] ]
end end
def affected_question_ids def interruption_screen_question_ids
%w[savings] %w[savings]
end end
end end

2
app/models/form/sales/pages/shared_ownership_deposit_value_check.rb

@ -25,7 +25,7 @@ class Form::Sales::Pages::SharedOwnershipDepositValueCheck < ::Form::Page
] ]
end end
def affected_question_ids def interruption_screen_question_ids
%w[mortgage mortgageused cashdis type deposit value equity] %w[mortgage mortgageused cashdis type deposit value equity]
end end
end end

2
app/models/form/sales/pages/staircase_bought_value_check.rb

@ -25,7 +25,7 @@ class Form::Sales::Pages::StaircaseBoughtValueCheck < ::Form::Page
] ]
end end
def affected_question_ids def interruption_screen_question_ids
%w[stairbought] %w[stairbought]
end end
end end

116
config/forms/2022_2023.json

@ -815,7 +815,7 @@
} }
} }
}, },
"affected_question_ids": ["voiddate", "startdate"] "interruption_screen_question_ids": ["voiddate", "startdate"]
}, },
"property_major_repairs": { "property_major_repairs": {
"header": "", "header": "",
@ -925,7 +925,7 @@
} }
} }
}, },
"affected_question_ids": ["mrcdate", "startdate"] "interruption_screen_question_ids": ["mrcdate", "startdate"]
} }
}, },
"displayed_in_tasklist": [ "displayed_in_tasklist": [
@ -1240,7 +1240,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
}, },
"females_in_soft_age_range_in_pregnant_household_lead_hhmemb_value_check": { "females_in_soft_age_range_in_pregnant_household_lead_hhmemb_value_check": {
"depends_on": [ "depends_on": [
@ -1284,7 +1284,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
}, },
"lead_tenant_age": { "lead_tenant_age": {
"header": "", "header": "",
@ -1384,7 +1384,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
}, },
"females_in_soft_age_range_in_pregnant_household_lead_age_value_check": { "females_in_soft_age_range_in_pregnant_household_lead_age_value_check": {
"depends_on": [ "depends_on": [
@ -1428,7 +1428,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
}, },
"lead_tenant_gender_identity": { "lead_tenant_gender_identity": {
"header": "", "header": "",
@ -1507,7 +1507,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
}, },
"females_in_soft_age_range_in_pregnant_household_lead_value_check": { "females_in_soft_age_range_in_pregnant_household_lead_value_check": {
"depends_on": [ "depends_on": [
@ -1551,7 +1551,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
}, },
"lead_tenant_ethnic_group": { "lead_tenant_ethnic_group": {
"header": "", "header": "",
@ -1894,7 +1894,7 @@
} }
} }
}, },
"affected_question_ids": ["ecstat1", "sex1", "age1"] "interruption_screen_question_ids": ["ecstat1", "sex1", "age1"]
}, },
"lead_tenant_over_retirement_value_check": { "lead_tenant_over_retirement_value_check": {
"depends_on": [ "depends_on": [
@ -1953,7 +1953,7 @@
} }
} }
}, },
"affected_question_ids": ["ecstat1", "sex1", "age1"] "interruption_screen_question_ids": ["ecstat1", "sex1", "age1"]
}, },
"person_2_known": { "person_2_known": {
"header": "You’ve given us the details for 1 person in the household", "header": "You’ve given us the details for 1 person in the household",
@ -2134,7 +2134,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
}, },
"females_in_soft_age_range_in_pregnant_household_person_2_age_value_check": { "females_in_soft_age_range_in_pregnant_household_person_2_age_value_check": {
"depends_on": [ "depends_on": [
@ -2179,7 +2179,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
}, },
"person_2_gender_identity": { "person_2_gender_identity": {
"header": "", "header": "",
@ -2259,7 +2259,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
}, },
"females_in_soft_age_range_in_pregnant_household_person_2_value_check": { "females_in_soft_age_range_in_pregnant_household_person_2_value_check": {
"depends_on": [ "depends_on": [
@ -2304,7 +2304,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
}, },
"person_2_working_situation": { "person_2_working_situation": {
"header": "", "header": "",
@ -2438,7 +2438,7 @@
} }
} }
}, },
"affected_question_ids": ["ecstat2", "sex2", "age2"] "interruption_screen_question_ids": ["ecstat2", "sex2", "age2"]
}, },
"person_2_over_retirement_value_check": { "person_2_over_retirement_value_check": {
"depends_on": [ "depends_on": [
@ -2497,7 +2497,7 @@
} }
} }
}, },
"affected_question_ids": ["ecstat2", "sex2", "age2"] "interruption_screen_question_ids": ["ecstat2", "sex2", "age2"]
}, },
"person_3_known": { "person_3_known": {
"header": "You’ve given us the details for 2 people in the household", "header": "You’ve given us the details for 2 people in the household",
@ -2675,7 +2675,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
}, },
"females_in_soft_age_range_in_pregnant_household_person_3_age_value_check": { "females_in_soft_age_range_in_pregnant_household_person_3_age_value_check": {
"depends_on": [ "depends_on": [
@ -2720,7 +2720,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
}, },
"person_3_gender_identity": { "person_3_gender_identity": {
"header": "", "header": "",
@ -2800,7 +2800,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
}, },
"females_in_soft_age_range_in_pregnant_household_person_3_value_check": { "females_in_soft_age_range_in_pregnant_household_person_3_value_check": {
"depends_on": [ "depends_on": [
@ -2845,7 +2845,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
}, },
"person_3_working_situation": { "person_3_working_situation": {
"header": "", "header": "",
@ -2979,7 +2979,7 @@
} }
} }
}, },
"affected_question_ids": ["ecstat3", "sex3", "age3"] "interruption_screen_question_ids": ["ecstat3", "sex3", "age3"]
}, },
"person_3_over_retirement_value_check": { "person_3_over_retirement_value_check": {
"depends_on": [ "depends_on": [
@ -3038,7 +3038,7 @@
} }
} }
}, },
"affected_question_ids": ["ecstat3", "sex3", "age3"] "interruption_screen_question_ids": ["ecstat3", "sex3", "age3"]
}, },
"person_4_known": { "person_4_known": {
"header": "You’ve given us the details for 3 people in the household", "header": "You’ve given us the details for 3 people in the household",
@ -3213,7 +3213,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
}, },
"females_in_soft_age_range_in_pregnant_household_person_4_age_value_check": { "females_in_soft_age_range_in_pregnant_household_person_4_age_value_check": {
"depends_on": [ "depends_on": [
@ -3258,7 +3258,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
}, },
"person_4_gender_identity": { "person_4_gender_identity": {
"header": "", "header": "",
@ -3338,7 +3338,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
}, },
"females_in_soft_age_range_in_pregnant_household_person_4_value_check": { "females_in_soft_age_range_in_pregnant_household_person_4_value_check": {
"depends_on": [ "depends_on": [
@ -3383,7 +3383,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
}, },
"person_4_working_situation": { "person_4_working_situation": {
"header": "", "header": "",
@ -3517,7 +3517,7 @@
} }
} }
}, },
"affected_question_ids": ["ecstat4", "sex4", "age4"] "interruption_screen_question_ids": ["ecstat4", "sex4", "age4"]
}, },
"person_4_over_retirement_value_check": { "person_4_over_retirement_value_check": {
"depends_on": [ "depends_on": [
@ -3576,7 +3576,7 @@
} }
} }
}, },
"affected_question_ids": ["ecstat4", "sex4", "age4"] "interruption_screen_question_ids": ["ecstat4", "sex4", "age4"]
}, },
"person_5_known": { "person_5_known": {
"header": "You’ve given us the details for 4 people in the household", "header": "You’ve given us the details for 4 people in the household",
@ -3748,7 +3748,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
}, },
"females_in_soft_age_range_in_pregnant_household_person_5_age_value_check": { "females_in_soft_age_range_in_pregnant_household_person_5_age_value_check": {
"depends_on": [ "depends_on": [
@ -3793,7 +3793,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
}, },
"person_5_gender_identity": { "person_5_gender_identity": {
"header": "", "header": "",
@ -3873,7 +3873,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
}, },
"females_in_soft_age_range_in_pregnant_household_person_5_value_check": { "females_in_soft_age_range_in_pregnant_household_person_5_value_check": {
"depends_on": [ "depends_on": [
@ -3918,7 +3918,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
}, },
"person_5_working_situation": { "person_5_working_situation": {
"header": "", "header": "",
@ -4052,7 +4052,7 @@
} }
} }
}, },
"affected_question_ids": ["ecstat5", "sex5", "age5"] "interruption_screen_question_ids": ["ecstat5", "sex5", "age5"]
}, },
"person_5_over_retirement_value_check": { "person_5_over_retirement_value_check": {
"depends_on": [ "depends_on": [
@ -4111,7 +4111,7 @@
} }
} }
}, },
"affected_question_ids": ["ecstat5", "sex5", "age5"] "interruption_screen_question_ids": ["ecstat5", "sex5", "age5"]
}, },
"person_6_known": { "person_6_known": {
"header": "You’ve given us the details for 5 people in the household", "header": "You’ve given us the details for 5 people in the household",
@ -4280,7 +4280,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
}, },
"females_in_soft_age_range_in_pregnant_household_person_6_age_value_check": { "females_in_soft_age_range_in_pregnant_household_person_6_age_value_check": {
"depends_on": [ "depends_on": [
@ -4325,7 +4325,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
}, },
"person_6_gender_identity": { "person_6_gender_identity": {
"header": "", "header": "",
@ -4405,7 +4405,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
}, },
"females_in_soft_age_range_in_pregnant_household_person_6_value_check": { "females_in_soft_age_range_in_pregnant_household_person_6_value_check": {
"depends_on": [ "depends_on": [
@ -4450,7 +4450,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
}, },
"person_6_working_situation": { "person_6_working_situation": {
"header": "", "header": "",
@ -4584,7 +4584,7 @@
} }
} }
}, },
"affected_question_ids": ["ecstat6", "sex6", "age6"] "interruption_screen_question_ids": ["ecstat6", "sex6", "age6"]
}, },
"person_6_over_retirement_value_check": { "person_6_over_retirement_value_check": {
"depends_on": [ "depends_on": [
@ -4643,7 +4643,7 @@
} }
} }
}, },
"affected_question_ids": ["ecstat6", "sex6", "age6"] "interruption_screen_question_ids": ["ecstat6", "sex6", "age6"]
}, },
"person_7_known": { "person_7_known": {
"header": "You’ve given us the details for 6 people in the household", "header": "You’ve given us the details for 6 people in the household",
@ -4809,7 +4809,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
}, },
"females_in_soft_age_range_in_pregnant_household_person_7_age_value_check": { "females_in_soft_age_range_in_pregnant_household_person_7_age_value_check": {
"depends_on": [ "depends_on": [
@ -4854,7 +4854,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
}, },
"person_7_gender_identity": { "person_7_gender_identity": {
"header": "", "header": "",
@ -4934,7 +4934,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
}, },
"females_in_soft_age_range_in_pregnant_household_person_7_value_check": { "females_in_soft_age_range_in_pregnant_household_person_7_value_check": {
"depends_on": [ "depends_on": [
@ -4979,7 +4979,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
}, },
"person_7_working_situation": { "person_7_working_situation": {
"header": "", "header": "",
@ -5113,7 +5113,7 @@
} }
} }
}, },
"affected_question_ids": ["ecstat7", "sex7", "age7"] "interruption_screen_question_ids": ["ecstat7", "sex7", "age7"]
}, },
"person_7_over_retirement_value_check": { "person_7_over_retirement_value_check": {
"depends_on": [ "depends_on": [
@ -5172,7 +5172,7 @@
} }
} }
}, },
"affected_question_ids": ["ecstat7", "sex7", "age7"] "interruption_screen_question_ids": ["ecstat7", "sex7", "age7"]
}, },
"person_8_known": { "person_8_known": {
"header": "You’ve given us the details for 7 people in the household", "header": "You’ve given us the details for 7 people in the household",
@ -5335,7 +5335,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
}, },
"females_in_soft_age_range_in_pregnant_household_person_8_age_value_check": { "females_in_soft_age_range_in_pregnant_household_person_8_age_value_check": {
"depends_on": [ "depends_on": [
@ -5380,7 +5380,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
}, },
"person_8_gender_identity": { "person_8_gender_identity": {
"header": "", "header": "",
@ -5460,7 +5460,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
}, },
"females_in_soft_age_range_in_pregnant_household_person_8_value_check": { "females_in_soft_age_range_in_pregnant_household_person_8_value_check": {
"depends_on": [ "depends_on": [
@ -5505,7 +5505,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
}, },
"person_8_working_situation": { "person_8_working_situation": {
"header": "", "header": "",
@ -5639,7 +5639,7 @@
} }
} }
}, },
"affected_question_ids": ["ecstat8", "sex8", "age8"] "interruption_screen_question_ids": ["ecstat8", "sex8", "age8"]
}, },
"person_8_over_retirement_value_check": { "person_8_over_retirement_value_check": {
"depends_on": [ "depends_on": [
@ -5698,7 +5698,7 @@
} }
} }
}, },
"affected_question_ids": ["ecstat8", "sex8", "age8"] "interruption_screen_question_ids": ["ecstat8", "sex8", "age8"]
} }
} }
}, },
@ -5881,7 +5881,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
}, },
"females_in_soft_age_range_in_pregnant_household_value_check": { "females_in_soft_age_range_in_pregnant_household_value_check": {
"depends_on": [ "depends_on": [
@ -5934,7 +5934,7 @@
} }
} }
}, },
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"] "interruption_screen_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
}, },
"access_needs_exist": { "access_needs_exist": {
"header": "", "header": "",
@ -7447,7 +7447,7 @@
} }
} }
}, },
"affected_question_ids": ["incfreq", "earnings", "ecstat1"] "interruption_screen_question_ids": ["incfreq", "earnings", "ecstat1"]
}, },
"housing_benefit": { "housing_benefit": {
"header": "", "header": "",
@ -7810,7 +7810,7 @@
} }
} }
}, },
"affected_question_ids": ["chcharge", "is_carehome"] "interruption_screen_question_ids": ["chcharge", "is_carehome"]
}, },
"rent_weekly": { "rent_weekly": {
"header": "Household rent and charges", "header": "Household rent and charges",
@ -8337,7 +8337,7 @@
} }
} }
}, },
"affected_question_ids": ["brent", "startdate", "la", "beds", "rent_type", "needstype"] "interruption_screen_question_ids": ["brent", "startdate", "la", "beds", "rent_type", "needstype"]
}, },
"max_rent_value_check": { "max_rent_value_check": {
"depends_on": [ "depends_on": [
@ -8382,7 +8382,7 @@
} }
} }
}, },
"affected_question_ids": ["brent", "startdate", "la", "beds", "rent_type", "needstype"] "interruption_screen_question_ids": ["brent", "startdate", "la", "beds", "rent_type", "needstype"]
}, },
"outstanding": { "outstanding": {
"header": "", "header": "",

4
spec/fixtures/forms/2021_2022.json vendored

@ -227,7 +227,7 @@
} }
} }
], ],
"affected_question_ids": ["age1", "ecstat1"] "interruption_screen_question_ids": ["age1", "ecstat1"]
}, },
"person_2_working_situation": { "person_2_working_situation": {
"header": "", "header": "",
@ -774,7 +774,7 @@
} }
} }
}, },
"affected_question_ids": ["ecstat1", "incfreq", "earnings"] "interruption_screen_question_ids": ["ecstat1", "incfreq", "earnings"]
}, },
"net_income_uc_proportion": { "net_income_uc_proportion": {
"questions": { "questions": {

4
spec/models/form/lettings/pages/care_home_charges_value_check_spec.rb

@ -42,7 +42,7 @@ RSpec.describe Form::Lettings::Pages::CareHomeChargesValueCheck, type: :model do
expect(page.informative_text).to eq("") expect(page.informative_text).to eq("")
end end
it "has the correct affected_question_ids" do it "has the correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[chcharge is_carehome]) expect(page.interruption_screen_question_ids).to eq(%w[chcharge is_carehome])
end end
end end

4
spec/models/form/lettings/pages/max_rent_value_check_spec.rb

@ -35,7 +35,7 @@ RSpec.describe Form::Lettings::Pages::MaxRentValueCheck, type: :model do
expect(page.informative_text).to eq({ "arguments" => [{ "arguments_for_key" => "soft_max_for_period", "i18n_template" => "soft_max_for_period", "key" => "field_formatted_as_currency" }], "translation" => "soft_validations.rent.max_hint_text" }) expect(page.informative_text).to eq({ "arguments" => [{ "arguments_for_key" => "soft_max_for_period", "i18n_template" => "soft_max_for_period", "key" => "field_formatted_as_currency" }], "translation" => "soft_validations.rent.max_hint_text" })
end end
it "has the correct affected_question_ids" do it "has the correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[brent startdate la beds rent_type needstype]) expect(page.interruption_screen_question_ids).to eq(%w[brent startdate la beds rent_type needstype])
end end
end end

4
spec/models/form/lettings/pages/min_rent_value_check_spec.rb

@ -53,7 +53,7 @@ RSpec.describe Form::Lettings::Pages::MinRentValueCheck, type: :model do
}) })
end end
it "has the correct affected_question_ids" do it "has the correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[brent startdate la beds rent_type needstype]) expect(page.interruption_screen_question_ids).to eq(%w[brent startdate la beds rent_type needstype])
end end
end end

4
spec/models/form/sales/pages/about_price_value_check_spec.rb

@ -52,7 +52,7 @@ RSpec.describe Form::Sales::Pages::AboutPriceValueCheck, type: :model do
}) })
end end
it "has the correct affected_question_ids" do it "has the correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[value beds la]) expect(page.interruption_screen_question_ids).to eq(%w[value beds la])
end end
end end

4
spec/models/form/sales/pages/buyer1_income_value_check_spec.rb

@ -35,7 +35,7 @@ RSpec.describe Form::Sales::Pages::Buyer1IncomeValueCheck, type: :model do
expect(page.interruption_screen?).to eq(true) expect(page.interruption_screen?).to eq(true)
end end
it "is has correct affected_question_ids" do it "is has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[ecstat1 income1]) expect(page.interruption_screen_question_ids).to eq(%w[ecstat1 income1])
end end
end end

8
spec/models/form/sales/pages/buyer_live_in_value_check_spec.rb

@ -43,8 +43,8 @@ RSpec.describe Form::Sales::Pages::BuyerLiveInValueCheck, type: :model do
}) })
end end
it "has the correct affected_question_ids" do it "has the correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[ownershipsch buy1livein]) expect(page.interruption_screen_question_ids).to eq(%w[ownershipsch buy1livein])
end end
context "with buyer 2" do context "with buyer 2" do
@ -65,8 +65,8 @@ RSpec.describe Form::Sales::Pages::BuyerLiveInValueCheck, type: :model do
}) })
end end
it "has the correct affected_question_ids" do it "has the correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[ownershipsch buy2livein]) expect(page.interruption_screen_question_ids).to eq(%w[ownershipsch buy2livein])
end end
end end
end end

4
spec/models/form/sales/pages/deposit_value_check_spec.rb

@ -35,7 +35,7 @@ RSpec.describe Form::Sales::Pages::DepositValueCheck, type: :model do
expect(page.interruption_screen?).to eq(true) expect(page.interruption_screen?).to eq(true)
end end
it "is has correct affected_question_ids" do it "is has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[savings deposit]) expect(page.interruption_screen_question_ids).to eq(%w[savings deposit])
end end
end end

4
spec/models/form/sales/pages/discounted_sale_value_check_spec.rb

@ -50,7 +50,7 @@ RSpec.describe Form::Sales::Pages::DiscountedSaleValueCheck, type: :model do
]) ])
end end
it "has correct affected_question_ids" do it "has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[value deposit ownershipsch mortgage mortgageused discount grant type]) expect(page.interruption_screen_question_ids).to eq(%w[value deposit ownershipsch mortgage mortgageused discount grant type])
end end
end end

4
spec/models/form/sales/pages/handover_date_check_spec.rb

@ -45,7 +45,7 @@ RSpec.describe Form::Sales::Pages::HandoverDateCheck, type: :model do
expect(page.interruption_screen?).to eq(true) expect(page.interruption_screen?).to eq(true)
end end
it "is has correct affected_question_ids" do it "is has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[hodate saledate]) expect(page.interruption_screen_question_ids).to eq(%w[hodate saledate])
end end
end end

4
spec/models/form/sales/pages/household_wheelchair_check_spec.rb

@ -35,7 +35,7 @@ RSpec.describe Form::Sales::Pages::HouseholdWheelchairCheck, type: :model do
expect(page.interruption_screen?).to eq(true) expect(page.interruption_screen?).to eq(true)
end end
it "is has correct affected_question_ids" do it "is has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[disabled wheel]) expect(page.interruption_screen_question_ids).to eq(%w[disabled wheel])
end end
end end

4
spec/models/form/sales/pages/monthly_charges_value_check_spec.rb

@ -46,7 +46,7 @@ RSpec.describe Form::Sales::Pages::MonthlyChargesValueCheck, type: :model do
expect(page.informative_text).to eq({}) expect(page.informative_text).to eq({})
end end
it "has correct affected_question_ids" do it "has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[type mscharge proptype]) expect(page.interruption_screen_question_ids).to eq(%w[type mscharge proptype])
end end
end end

4
spec/models/form/sales/pages/mortgage_value_check_spec.rb

@ -36,8 +36,8 @@ RSpec.describe Form::Sales::Pages::MortgageValueCheck, type: :model do
]) ])
end end
it "has correct affected_question_ids" do it "has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[mortgage inc1mort inc2mort jointpur income1 income2 inc1mort inc2mort]) expect(page.interruption_screen_question_ids).to eq(%w[mortgage inc1mort inc2mort jointpur income1 income2 inc1mort inc2mort])
end end
context "when checking buyer 2" do context "when checking buyer 2" do

4
spec/models/form/sales/pages/old_persons_shared_ownership_value_check_spec.rb

@ -42,7 +42,7 @@ RSpec.describe Form::Sales::Pages::OldPersonsSharedOwnershipValueCheck, type: :m
expect(page.informative_text).to eq({}) expect(page.informative_text).to eq({})
end end
it "has the correct affected_question_ids" do it "has the correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[type jointpur age1 age2]) expect(page.interruption_screen_question_ids).to eq(%w[type jointpur age1 age2])
end end
end end

4
spec/models/form/sales/pages/percentage_discount_value_check_spec.rb

@ -46,7 +46,7 @@ RSpec.describe Form::Sales::Pages::PercentageDiscountValueCheck, type: :model do
]) ])
end end
it "has correct affected_question_ids" do it "has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[discount proptype]) expect(page.interruption_screen_question_ids).to eq(%w[discount proptype])
end end
end end

24
spec/models/form/sales/pages/person_student_not_child_value_check_spec.rb

@ -39,8 +39,8 @@ RSpec.describe Form::Sales::Pages::PersonStudentNotChildValueCheck, type: :model
expect(page.questions.map(&:id)).to eq(%w[student_not_child_value_check]) expect(page.questions.map(&:id)).to eq(%w[student_not_child_value_check])
end end
it "has correct affected_question_ids" do it "has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[relat2 exstat2 age2]) expect(page.interruption_screen_question_ids).to eq(%w[relat2 exstat2 age2])
end end
context "with person 2" do context "with person 2" do
@ -55,8 +55,8 @@ RSpec.describe Form::Sales::Pages::PersonStudentNotChildValueCheck, type: :model
expect(page.depends_on).to eq([{ "person_2_student_not_child?" => true }]) expect(page.depends_on).to eq([{ "person_2_student_not_child?" => true }])
end end
it "has correct affected_question_ids" do it "has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[relat2 exstat2 age2]) expect(page.interruption_screen_question_ids).to eq(%w[relat2 exstat2 age2])
end end
end end
@ -72,8 +72,8 @@ RSpec.describe Form::Sales::Pages::PersonStudentNotChildValueCheck, type: :model
expect(page.depends_on).to eq([{ "person_3_student_not_child?" => true }]) expect(page.depends_on).to eq([{ "person_3_student_not_child?" => true }])
end end
it "has correct affected_question_ids" do it "has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[relat3 exstat3 age3]) expect(page.interruption_screen_question_ids).to eq(%w[relat3 exstat3 age3])
end end
end end
@ -89,8 +89,8 @@ RSpec.describe Form::Sales::Pages::PersonStudentNotChildValueCheck, type: :model
expect(page.depends_on).to eq([{ "person_4_student_not_child?" => true }]) expect(page.depends_on).to eq([{ "person_4_student_not_child?" => true }])
end end
it "has correct affected_question_ids" do it "has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[relat4 exstat4 age4]) expect(page.interruption_screen_question_ids).to eq(%w[relat4 exstat4 age4])
end end
end end
@ -106,8 +106,8 @@ RSpec.describe Form::Sales::Pages::PersonStudentNotChildValueCheck, type: :model
expect(page.depends_on).to eq([{ "person_5_student_not_child?" => true }]) expect(page.depends_on).to eq([{ "person_5_student_not_child?" => true }])
end end
it "has correct affected_question_ids" do it "has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[relat5 exstat5 age5]) expect(page.interruption_screen_question_ids).to eq(%w[relat5 exstat5 age5])
end end
end end
@ -123,8 +123,8 @@ RSpec.describe Form::Sales::Pages::PersonStudentNotChildValueCheck, type: :model
expect(page.depends_on).to eq([{ "person_6_student_not_child?" => true }]) expect(page.depends_on).to eq([{ "person_6_student_not_child?" => true }])
end end
it "has correct affected_question_ids" do it "has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[relat6 exstat6 age6]) expect(page.interruption_screen_question_ids).to eq(%w[relat6 exstat6 age6])
end end
end end
end end

24
spec/models/form/sales/pages/retirement_value_check_spec.rb

@ -72,8 +72,8 @@ RSpec.describe Form::Sales::Pages::RetirementValueCheck, type: :model do
}) })
end end
it "has correct affected_question_ids" do it "has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[age1 exstat1 sex1]) expect(page.interruption_screen_question_ids).to eq(%w[age1 exstat1 sex1])
end end
end end
@ -124,8 +124,8 @@ RSpec.describe Form::Sales::Pages::RetirementValueCheck, type: :model do
}) })
end end
it "has correct affected_question_ids" do it "has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[age2 exstat2 sex2]) expect(page.interruption_screen_question_ids).to eq(%w[age2 exstat2 sex2])
end end
end end
@ -176,8 +176,8 @@ RSpec.describe Form::Sales::Pages::RetirementValueCheck, type: :model do
}) })
end end
it "has correct affected_question_ids" do it "has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[age3 exstat3 sex3]) expect(page.interruption_screen_question_ids).to eq(%w[age3 exstat3 sex3])
end end
end end
@ -228,8 +228,8 @@ RSpec.describe Form::Sales::Pages::RetirementValueCheck, type: :model do
}) })
end end
it "has correct affected_question_ids" do it "has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[age4 exstat4 sex4]) expect(page.interruption_screen_question_ids).to eq(%w[age4 exstat4 sex4])
end end
end end
@ -280,8 +280,8 @@ RSpec.describe Form::Sales::Pages::RetirementValueCheck, type: :model do
}) })
end end
it "has correct affected_question_ids" do it "has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[age5 exstat5 sex5]) expect(page.interruption_screen_question_ids).to eq(%w[age5 exstat5 sex5])
end end
end end
@ -332,8 +332,8 @@ RSpec.describe Form::Sales::Pages::RetirementValueCheck, type: :model do
}) })
end end
it "has correct affected_question_ids" do it "has correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[age6 exstat6 sex6]) expect(page.interruption_screen_question_ids).to eq(%w[age6 exstat6 sex6])
end end
end end
end end

4
spec/models/form/sales/pages/savings_value_check_spec.rb

@ -35,7 +35,7 @@ RSpec.describe Form::Sales::Pages::SavingsValueCheck, type: :model do
expect(page.interruption_screen?).to eq(true) expect(page.interruption_screen?).to eq(true)
end end
it "has the correct affected_question_ids" do it "has the correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[savings]) expect(page.interruption_screen_question_ids).to eq(%w[savings])
end end
end end

4
spec/models/form/sales/pages/shared_ownership_deposit_value_check_spec.rb

@ -42,7 +42,7 @@ RSpec.describe Form::Sales::Pages::SharedOwnershipDepositValueCheck, type: :mode
expect(page.informative_text).to eq({}) expect(page.informative_text).to eq({})
end end
it "has the correct affected_question_ids" do it "has the correct interruption_screen_question_ids" do
expect(page.affected_question_ids).to eq(%w[mortgage mortgageused cashdis type deposit value equity]) expect(page.interruption_screen_question_ids).to eq(%w[mortgage mortgageused cashdis type deposit value equity])
end end
end end

Loading…
Cancel
Save