Browse Source

Rename ‘About this log‘ section

pull/254/head
Paul Robert Lloyd 3 years ago
parent
commit
9285b08c66
  1. 24
      config/forms/2021_2022.json
  2. 8
      spec/fixtures/forms/2022_2023.json
  3. 4
      spec/models/form/subsection_spec.rb

24
config/forms/2021_2022.json

@ -3,11 +3,11 @@
"start_year": 2021, "start_year": 2021,
"end_year": 2022, "end_year": 2022,
"sections": { "sections": {
"about_this_log": { "setup": {
"label": "About this log", "label": "Before you start",
"subsections": { "subsections": {
"about_this_log": { "setup": {
"label": "About this log", "label": "Set up your lettings log",
"pages": { "pages": {
"gdpr_acceptance": { "gdpr_acceptance": {
"header": "", "header": "",
@ -230,7 +230,7 @@
"subsections": { "subsections": {
"household_characteristics": { "household_characteristics": {
"label": "Household characteristics", "label": "Household characteristics",
"depends_on": [{ "about_this_log": "completed" }], "depends_on": [{ "setup": "completed" }],
"pages": { "pages": {
"person_1_age": { "person_1_age": {
"header": "", "header": "",
@ -779,7 +779,7 @@
}, },
"household_situation": { "household_situation": {
"label": "Household situation", "label": "Household situation",
"depends_on": [{ "about_this_log": "completed" }], "depends_on": [{ "setup": "completed" }],
"pages": { "pages": {
"previous_housing_situation": { "previous_housing_situation": {
"header": "", "header": "",
@ -907,7 +907,7 @@
}, },
"household_needs": { "household_needs": {
"label": "Household needs", "label": "Household needs",
"depends_on": [{ "about_this_log": "completed" }], "depends_on": [{ "setup": "completed" }],
"pages": { "pages": {
"armed_forces": { "armed_forces": {
"header": "Experience of the UK Armed Forces", "header": "Experience of the UK Armed Forces",
@ -1051,7 +1051,7 @@
"subsections": { "subsections": {
"tenancy_information": { "tenancy_information": {
"label": "Tenancy information", "label": "Tenancy information",
"depends_on": [{ "about_this_log": "completed" }], "depends_on": [{ "setup": "completed" }],
"pages": { "pages": {
"starter_tenancy": { "starter_tenancy": {
"header": "", "header": "",
@ -1165,7 +1165,7 @@
}, },
"property_information": { "property_information": {
"label": "Property information", "label": "Property information",
"depends_on": [{ "about_this_log": "completed" }], "depends_on": [{ "setup": "completed" }],
"pages": { "pages": {
"property_postcode": { "property_postcode": {
"header": "", "header": "",
@ -1831,7 +1831,7 @@
"subsections": { "subsections": {
"income_and_benefits": { "income_and_benefits": {
"label": "Income, benefits and outgoings", "label": "Income, benefits and outgoings",
"depends_on": [{ "about_this_log": "completed" }], "depends_on": [{ "setup": "completed" }],
"pages": { "pages": {
"net_income_known": { "net_income_known": {
"header": "Household’s combined income", "header": "Household’s combined income",
@ -2710,7 +2710,7 @@
"subsections": { "subsections": {
"local_authority": { "local_authority": {
"label": "Local authority", "label": "Local authority",
"depends_on": [{ "about_this_log": "completed" }], "depends_on": [{ "setup": "completed" }],
"pages": { "pages": {
"time_lived_in_la": { "time_lived_in_la": {
"header": "", "header": "",
@ -3280,7 +3280,7 @@
"declaration": { "declaration": {
"label": "Declaration", "label": "Declaration",
"depends_on": [{ "depends_on": [{
"about_this_log": "completed", "setup": "completed",
"household_characteristics": "completed", "household_characteristics": "completed",
"household_situation": "completed", "household_situation": "completed",
"household_needs": "completed", "household_needs": "completed",

8
spec/fixtures/forms/2022_2023.json vendored

@ -1,11 +1,11 @@
{ {
"form_type": "lettings", "form_type": "lettings",
"sections": { "sections": {
"about_this_log": { "setup": {
"label": "About this log", "label": "Before you start",
"subsections": { "subsections": {
"about_this_log": { "setup": {
"label": "About this log", "label": "Set up your lettings log",
"pages": { "pages": {
"gdpr_acceptance": { "gdpr_acceptance": {
"header": "", "header": "",

4
spec/models/form/subsection_spec.rb

@ -77,8 +77,8 @@ RSpec.describe Form::Subsection, type: :model do
end end
context "the privacy notice has not been shown" do context "the privacy notice has not been shown" do
let(:section_id) { "about_this_log" } let(:section_id) { "setup" }
let(:subsection_id) { "about_this_log" } let(:subsection_id) { "setup" }
let(:case_log) { FactoryBot.build(:case_log, :about_completed, gdpr_acceptance: "No") } let(:case_log) { FactoryBot.build(:case_log, :about_completed, gdpr_acceptance: "No") }
it "does not mark the section as completed" do it "does not mark the section as completed" do

Loading…
Cancel
Save