Browse Source

feat: move period after brent in soft validation page

pull/1993/head
natdeanlewissoftwire 3 years ago
parent
commit
54b564917e
  1. 2
      app/models/form/lettings/pages/max_rent_value_check.rb
  2. 2
      app/models/form/lettings/pages/min_rent_value_check.rb
  3. 4
      config/forms/2022_2023.json
  4. 2
      spec/models/form/lettings/pages/max_rent_value_check_spec.rb
  5. 2
      spec/models/form/lettings/pages/min_rent_value_check_spec.rb

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

@ -19,6 +19,6 @@ class Form::Lettings::Pages::MaxRentValueCheck < ::Form::Page
end
def interruption_screen_question_ids
%w[brent startdate uprn postcode_full la beds rent_type needstype period]
%w[brent period startdate uprn postcode_full la beds rent_type needstype]
end
end

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

@ -19,6 +19,6 @@ class Form::Lettings::Pages::MinRentValueCheck < ::Form::Page
end
def interruption_screen_question_ids
%w[brent startdate uprn postcode_full la beds rent_type needstype period]
%w[brent period startdate uprn postcode_full la beds rent_type needstype]
end
end

4
config/forms/2022_2023.json

@ -8316,7 +8316,7 @@
}
}
},
"interruption_screen_question_ids": ["brent", "startdate", "la", "beds", "rent_type", "needstype", "period"]
"interruption_screen_question_ids": ["brent", "period", "startdate", "la", "beds", "rent_type", "needstype"]
},
"max_rent_value_check": {
"depends_on": [
@ -8361,7 +8361,7 @@
}
}
},
"interruption_screen_question_ids": ["brent", "startdate", "la", "beds", "rent_type", "needstype", "period"]
"interruption_screen_question_ids": ["brent", "period", "startdate", "la", "beds", "rent_type", "needstype"]
},
"scharge_value_check": {
"depends_on": [

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

@ -32,6 +32,6 @@ RSpec.describe Form::Lettings::Pages::MaxRentValueCheck, type: :model do
end
it "has the correct interruption_screen_question_ids" do
expect(page.interruption_screen_question_ids).to eq(%w[brent startdate uprn postcode_full la beds rent_type needstype period])
expect(page.interruption_screen_question_ids).to eq(%w[brent period startdate uprn postcode_full la beds rent_type needstype])
end
end

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

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

Loading…
Cancel
Save