Browse Source

Merge pull request #405 from communitiesuk/privacy-notice-link

Link to privacy policy page, not old PDF
pull/386/head
Paul Robert Lloyd 3 years ago committed by GitHub
parent
commit
cb82ff7552
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      config/forms/2021_2022.json
  2. BIN
      public/files/privacy-notice.pdf
  3. 4
      spec/views/form/page_view_spec.rb

2
config/forms/2021_2022.json

@ -1135,7 +1135,7 @@
}, },
"household": { "household": {
"label": "About the household", "label": "About the household",
"description": "Make sure the tenant has seen <a class=\"govuk-link\" href=\"/files/privacy-notice.pdf\">the Department for Levelling Up, Housing & Communities (DLUHC) privacy notice</a> before completing this section.", "description": "Make sure the tenant has seen <a class=\"govuk-link\" href=\"/privacy-notice\">the Department for Levelling Up, Housing & Communities (DLUHC) privacy notice</a> before completing this section.",
"subsections": { "subsections": {
"household_characteristics": { "household_characteristics": {
"label": "Household characteristics", "label": "Household characteristics",

BIN
public/files/privacy-notice.pdf

Binary file not shown.

4
spec/views/form/page_view_spec.rb

@ -34,9 +34,9 @@ RSpec.describe "form/page" do
end end
context "with a page containing a description" do context "with a page containing a description" do
let(:description) { "Test description <a class=\"govuk-link\" href=\"/files/privacy-notice.pdf\">with link</a>." } let(:description) { "Test description <a class=\"govuk-link\" href=\"/test-link\">with link</a>." }
let(:page_attributes) { { description: description } } let(:page_attributes) { { description: description } }
let(:expected_html) { '<p class="govuk-body govuk-body-m">Test description <a class="govuk-link" href="/files/privacy-notice.pdf">with link</a>.</p>' } let(:expected_html) { '<p class="govuk-body govuk-body-m">Test description <a class="govuk-link" href="/test-link">with link</a>.</p>' }
it "renders the description" do it "renders the description" do
expect(rendered).to match(expected_html) expect(rendered).to match(expected_html)

Loading…
Cancel
Save