Skip to content

Commit

Permalink
Change publishing outcome pages text
Browse files Browse the repository at this point in the history
- changes the heading on consulations and calls for evidence pages from 'Download the full outcome' to 'Read the full outcome'
  • Loading branch information
andysellick committed Jun 4, 2024
1 parent 0d66c34 commit 0316700
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/presenters/consultation_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions test/integration/call_for_evidence_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,17 @@ 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

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
Expand Down
8 changes: 4 additions & 4 deletions test/integration/consultation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0316700

Please sign in to comment.