Browse Source

Update affected_question_ids for lettings

pull/1584/head
Kat 3 years ago
parent
commit
adf8d1bf77
  1. 4
      app/models/form/lettings/pages/care_home_charges_value_check.rb
  2. 4
      app/models/form/lettings/pages/females_in_soft_age_range_in_pregnant_household_lead_age_value_check.rb
  3. 4
      app/models/form/lettings/pages/females_in_soft_age_range_in_pregnant_household_lead_hhmemb_value_check.rb
  4. 4
      app/models/form/lettings/pages/females_in_soft_age_range_in_pregnant_household_lead_value_check.rb
  5. 4
      app/models/form/lettings/pages/females_in_soft_age_range_in_pregnant_household_person_age_value_check.rb
  6. 4
      app/models/form/lettings/pages/females_in_soft_age_range_in_pregnant_household_person_value_check.rb
  7. 4
      app/models/form/lettings/pages/females_in_soft_age_range_in_pregnant_household_value_check.rb
  8. 4
      app/models/form/lettings/pages/lead_tenant_over_retirement_value_check.rb
  9. 4
      app/models/form/lettings/pages/lead_tenant_under_retirement_value_check.rb
  10. 4
      app/models/form/lettings/pages/max_rent_value_check.rb
  11. 4
      app/models/form/lettings/pages/min_rent_value_check.rb
  12. 4
      app/models/form/lettings/pages/net_income_value_check.rb
  13. 5
      app/models/form/lettings/pages/person_over_retirement_value_check.rb
  14. 5
      app/models/form/lettings/pages/person_under_retirement_value_check.rb
  15. 4
      app/models/form/lettings/pages/property_major_repairs_value_check.rb
  16. 4
      app/models/form/lettings/pages/void_date_value_check.rb
  17. 174
      config/forms/2022_2023.json
  18. 4
      spec/models/form/lettings/pages/care_home_charges_value_check_spec.rb
  19. 4
      spec/models/form/lettings/pages/max_rent_value_check_spec.rb
  20. 4
      spec/models/form/lettings/pages/min_rent_value_check_spec.rb

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

174
config/forms/2022_2023.json

@ -814,7 +814,8 @@
}
}
}
}
},
"affected_question_ids": ["voiddate", "startdate"]
},
"property_major_repairs": {
"header": "",
@ -923,7 +924,8 @@
}
}
}
}
},
"affected_question_ids": ["mrcdate", "startdate"]
}
},
"displayed_in_tasklist": [
@ -1237,7 +1239,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_lead_hhmemb_value_check": {
"depends_on": [
@ -1280,7 +1283,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"lead_tenant_age": {
"header": "",
@ -1379,7 +1383,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_lead_age_value_check": {
"depends_on": [
@ -1422,7 +1427,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"lead_tenant_gender_identity": {
"header": "",
@ -1500,7 +1506,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_lead_value_check": {
"depends_on": [
@ -1543,7 +1550,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"lead_tenant_ethnic_group": {
"header": "",
@ -1885,7 +1893,8 @@
}
}
}
}
},
"affected_question_ids": ["ecstat1", "sex1", "age1"]
},
"lead_tenant_over_retirement_value_check": {
"depends_on": [
@ -1943,7 +1952,8 @@
}
}
}
}
},
"affected_question_ids": ["ecstat1", "sex1", "age1"]
},
"person_2_known": {
"header": "You’ve given us the details for 1 person in the household",
@ -2123,7 +2133,8 @@
}
}
}
}
},
"affected_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": {
"depends_on": [
@ -2167,7 +2178,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_2_gender_identity": {
"header": "",
@ -2246,7 +2258,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_2_value_check": {
"depends_on": [
@ -2290,7 +2303,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_2_working_situation": {
"header": "",
@ -2423,7 +2437,8 @@
}
}
}
}
},
"affected_question_ids": ["ecstat2", "sex2", "age2"]
},
"person_2_over_retirement_value_check": {
"depends_on": [
@ -2481,7 +2496,8 @@
}
}
}
}
},
"affected_question_ids": ["ecstat2", "sex2", "age2"]
},
"person_3_known": {
"header": "You’ve given us the details for 2 people in the household",
@ -2658,7 +2674,8 @@
}
}
}
}
},
"affected_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": {
"depends_on": [
@ -2702,7 +2719,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_3_gender_identity": {
"header": "",
@ -2781,7 +2799,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_3_value_check": {
"depends_on": [
@ -2825,7 +2844,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_3_working_situation": {
"header": "",
@ -2958,7 +2978,8 @@
}
}
}
}
},
"affected_question_ids": ["ecstat3", "sex3", "age3"]
},
"person_3_over_retirement_value_check": {
"depends_on": [
@ -3016,7 +3037,8 @@
}
}
}
}
},
"affected_question_ids": ["ecstat3", "sex3", "age3"]
},
"person_4_known": {
"header": "You’ve given us the details for 3 people in the household",
@ -3190,7 +3212,8 @@
}
}
}
}
},
"affected_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": {
"depends_on": [
@ -3234,7 +3257,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_4_gender_identity": {
"header": "",
@ -3313,7 +3337,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_4_value_check": {
"depends_on": [
@ -3357,7 +3382,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_4_working_situation": {
"header": "",
@ -3490,7 +3516,8 @@
}
}
}
}
},
"affected_question_ids": ["ecstat4", "sex4", "age4"]
},
"person_4_over_retirement_value_check": {
"depends_on": [
@ -3548,7 +3575,8 @@
}
}
}
}
},
"affected_question_ids": ["ecstat4", "sex4", "age4"]
},
"person_5_known": {
"header": "You’ve given us the details for 4 people in the household",
@ -3719,7 +3747,8 @@
}
}
}
}
},
"affected_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": {
"depends_on": [
@ -3763,7 +3792,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_5_gender_identity": {
"header": "",
@ -3842,7 +3872,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_5_value_check": {
"depends_on": [
@ -3886,7 +3917,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_5_working_situation": {
"header": "",
@ -4019,7 +4051,8 @@
}
}
}
}
},
"affected_question_ids": ["ecstat5", "sex5", "age5"]
},
"person_5_over_retirement_value_check": {
"depends_on": [
@ -4077,7 +4110,8 @@
}
}
}
}
},
"affected_question_ids": ["ecstat5", "sex5", "age5"]
},
"person_6_known": {
"header": "You’ve given us the details for 5 people in the household",
@ -4245,7 +4279,8 @@
}
}
}
}
},
"affected_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": {
"depends_on": [
@ -4289,7 +4324,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_6_gender_identity": {
"header": "",
@ -4368,7 +4404,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_6_value_check": {
"depends_on": [
@ -4412,7 +4449,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_6_working_situation": {
"header": "",
@ -4545,7 +4583,8 @@
}
}
}
}
},
"affected_question_ids": ["ecstat6", "sex6", "age6"]
},
"person_6_over_retirement_value_check": {
"depends_on": [
@ -4603,7 +4642,8 @@
}
}
}
}
},
"affected_question_ids": ["ecstat6", "sex6", "age6"]
},
"person_7_known": {
"header": "You’ve given us the details for 6 people in the household",
@ -4768,7 +4808,8 @@
}
}
}
}
},
"affected_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": {
"depends_on": [
@ -4812,7 +4853,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_7_gender_identity": {
"header": "",
@ -4891,7 +4933,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_7_value_check": {
"depends_on": [
@ -4935,7 +4978,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_7_working_situation": {
"header": "",
@ -5068,7 +5112,8 @@
}
}
}
}
},
"affected_question_ids": ["ecstat7", "sex7", "age7"]
},
"person_7_over_retirement_value_check": {
"depends_on": [
@ -5126,7 +5171,8 @@
}
}
}
}
},
"affected_question_ids": ["ecstat7", "sex7", "age7"]
},
"person_8_known": {
"header": "You’ve given us the details for 7 people in the household",
@ -5288,7 +5334,8 @@
}
}
}
}
},
"affected_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": {
"depends_on": [
@ -5332,7 +5379,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_8_gender_identity": {
"header": "",
@ -5411,7 +5459,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_person_8_value_check": {
"depends_on": [
@ -5455,7 +5504,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"person_8_working_situation": {
"header": "",
@ -5588,7 +5638,8 @@
}
}
}
}
},
"affected_question_ids": ["ecstat8", "sex8", "age8"]
},
"person_8_over_retirement_value_check": {
"depends_on": [
@ -5646,7 +5697,8 @@
}
}
}
}
},
"affected_question_ids": ["ecstat8", "sex8", "age8"]
}
}
},
@ -5828,7 +5880,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8"]
},
"females_in_soft_age_range_in_pregnant_household_value_check": {
"depends_on": [
@ -5880,7 +5933,8 @@
}
}
}
}
},
"affected_question_ids": ["preg_occ", "sex1", "sex2", "sex3", "sex4", "sex5", "sex6", "sex7", "sex8", "age1", "age2", "age3", "age4", "age5", "age6", "age7", "age8"]
},
"access_needs_exist": {
"header": "",
@ -7392,7 +7446,8 @@
}
}
}
}
},
"affected_question_ids": ["incfreq", "earnings", "ecstat1"]
},
"housing_benefit": {
"header": "",
@ -7754,7 +7809,8 @@
}
}
}
}
},
"affected_question_ids": ["chcharge", "is_carehome"]
},
"rent_weekly": {
"header": "Household rent and charges",
@ -8280,7 +8336,8 @@
}
}
}
}
},
"affected_question_ids": ["brent", "startdate", "la", "beds", "rent_type", "needstype"]
},
"max_rent_value_check": {
"depends_on": [
@ -8324,7 +8381,8 @@
}
}
}
}
},
"affected_question_ids": ["brent", "startdate", "la", "beds", "rent_type", "needstype"]
},
"outstanding": {
"header": "",

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

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

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

@ -34,4 +34,8 @@ RSpec.describe Form::Lettings::Pages::MaxRentValueCheck, type: :model do
it "has the correct informative_text" 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" })
end
it "has the correct affected_question_ids" do
expect(page.affected_question_ids).to eq(%w[brent startdate la beds rent_type needstype])
end
end

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

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

Loading…
Cancel
Save