From 031670046543249b24e9d80759b2f2554aedb569 Mon Sep 17 00:00:00 2001 From: Andy Sellick Date: Tue, 4 Jun 2024 09:47:08 +0100 Subject: [PATCH] Change publishing outcome pages text - changes the heading on consulations and calls for evidence pages from 'Download the full outcome' to 'Read the full outcome' --- app/presenters/consultation_presenter.rb | 2 +- config/locales/en.yml | 4 ++-- test/integration/call_for_evidence_test.rb | 8 ++++---- test/integration/consultation_test.rb | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/presenters/consultation_presenter.rb b/app/presenters/consultation_presenter.rb index 5fcc75620..775edf9d4 100644 --- a/app/presenters/consultation_presenter.rb +++ b/app/presenters/consultation_presenter.rb @@ -52,7 +52,7 @@ def final_outcome_detail content_item["details"]["final_outcome_detail"] end - # Download the full outcome, top of page + # Read the full outcome, top of page def final_outcome_attachments_for_components documents.select { |doc| final_outcome_attachments.include? doc["id"] } end diff --git a/config/locales/en.yml b/config/locales/en.yml index a28396c30..ae5ae401a 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -11,7 +11,7 @@ en: description: Call for evidence description detail_of_outcome: Detail of outcome documents: Documents - download_outcome: Download the full outcome + download_outcome: Read the full outcome either: either email_to: 'Email to:' is_being: is being @@ -58,7 +58,7 @@ en: detail_of_feedback_received: Detail of feedback received detail_of_outcome: Detail of outcome documents: Documents - download_outcome: Download the full outcome + download_outcome: Read the full outcome either: either email_to: 'Email to:' feedback_received: Feedback received diff --git a/test/integration/call_for_evidence_test.rb b/test/integration/call_for_evidence_test.rb index 26d179596..fc43d0afe 100644 --- a/test/integration/call_for_evidence_test.rb +++ b/test/integration/call_for_evidence_test.rb @@ -120,8 +120,8 @@ def teardown setup_and_visit_content_item("call_for_evidence_outcome") assert page.has_text?("This call for evidence has closed") - assert page.has_text?("Download the full outcome") - within "#download-the-full-outcome" do + assert page.has_text?("Read the full outcome") + within "#read-the-full-outcome" do assert page.has_text?("Employee Share Schemes: NIC elections - consulation response") end end @@ -129,8 +129,8 @@ def teardown test "renders featured call for evidence outcome attachments" do setup_and_visit_content_item("call_for_evidence_outcome_with_featured_attachments") - assert page.has_text?("Download the full outcome") - within "#download-the-full-outcome" do + assert page.has_text?("Read the full outcome") + within "#read-the-full-outcome" do assert page.has_text?("Equalities impact assessment: setting the grade standards of new GCSEs in England – part 2") end end diff --git a/test/integration/consultation_test.rb b/test/integration/consultation_test.rb index 8a9c59f9f..24f5d51d5 100644 --- a/test/integration/consultation_test.rb +++ b/test/integration/consultation_test.rb @@ -174,15 +174,15 @@ class ConsultationTest < ActionDispatch::IntegrationTest test "renders consultation outcome attachments (as-is and directly)" do setup_and_visit_content_item("consultation_outcome", general_overrides) - assert page.has_text?("Download the full outcome") - within "#download-the-full-outcome" do + assert page.has_text?("Read the full outcome") + within "#read-the-full-outcome" do assert page.has_text?("Setting the grade standards of new GCSEs in England – part 2") end setup_and_visit_content_item("consultation_outcome_with_featured_attachments") - assert page.has_text?("Download the full outcome") - within "#download-the-full-outcome" do + assert page.has_text?("Read the full outcome") + within "#read-the-full-outcome" do assert page.has_text?("Equalities impact assessment: setting the grade standards of new GCSEs in England – part 2") end end