Browse Source

Merge pull request #349 from communitiesuk/design-audit-6

Content and big fixes for household characteristics
pull/350/head
Paul Robert Lloyd 3 years ago committed by GitHub
parent
commit
e3b1905593
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 652
      config/forms/2021_2022.json
  2. 2
      spec/features/form/check_answers_page_spec.rb
  3. 10
      spec/fixtures/forms/2021_2022.json

652
config/forms/2021_2022.json

File diff suppressed because it is too large Load Diff

2
spec/features/form/check_answers_page_spec.rb

@ -53,7 +53,7 @@ RSpec.describe "Form Check Answers Page" do
it "has question headings based on the subsection" do
visit("/logs/#{id}/#{subsection}/check-answers")
question_labels = ["Tenant code", "Tenant’s age", "Tenant’s gender", "Number of Other Household Members"]
question_labels = ["Tenant code", "Lead tenant’s age", "Lead tenant’s gender identity", "Number of Other Household Members"]
question_labels.each do |label|
expect(page).to have_content(label)
end

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

@ -31,7 +31,7 @@
"person_1_age": {
"questions": {
"age1": {
"check_answer_label": "Tenant’s age",
"check_answer_label": "Lead tenant’s age",
"header": "What is the tenant’s age?",
"type": "numeric",
"min": 0,
@ -44,7 +44,7 @@
"person_1_gender": {
"questions": {
"sex1": {
"check_answer_label": "Tenant’s gender",
"check_answer_label": "Lead tenant’s gender identity",
"header": "Which of these best describes the tenant’s gender identity?",
"type": "radio",
"answer_options": {
@ -84,7 +84,7 @@
},
"relat2": {
"check_answer_label": "Person 2’s relationship to lead tenant",
"header": "Whats person 2’s relationship to lead tenant",
"header": "What is person 2’s relationship to lead tenant",
"type": "radio",
"answer_options": {
"0": {
@ -97,7 +97,7 @@
},
"age2": {
"check_answer_label": "Person 2’s age",
"header": "What’s person 2’s age",
"header": "Do you know person 2’s age?",
"type": "numeric",
"min": 0,
"max": 150,
@ -105,7 +105,7 @@
"width": 2
},
"sex2": {
"check_answer_label": "Person 2’s gender",
"check_answer_label": "Person 2’s gender identity",
"header": "Which of these best describes person 2’s gender identity?",
"type": "radio",
"answer_options": {

Loading…
Cancel
Save