From 5e2aae93c7a6b5c68f8d6b7efdd74e02c9c55153 Mon Sep 17 00:00:00 2001 From: davidgisbey Date: Wed, 3 Jan 2024 12:24:36 +0000 Subject: [PATCH] Update copy for download link for travel advice map FCDO would like the copy of this link updated to be more specific. Zendesk ticket: https://govuk.zendesk.com/agent/tickets/5495177 --- app/views/shared/_travel_advice_first_part.html.erb | 2 +- test/integration/travel_advice_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/shared/_travel_advice_first_part.html.erb b/app/views/shared/_travel_advice_first_part.html.erb index 3eae095e7..749aab3b7 100644 --- a/app/views/shared/_travel_advice_first_part.html.erb +++ b/app/views/shared/_travel_advice_first_part.html.erb @@ -4,7 +4,7 @@ " alt="<%= content_item.map["alt_text"] %>" class="map-image"> <% if content_item.map_download_url %>
- <%= render 'components/download_link', href: content_item.map_download_url, link_text: "Download map (PDF)" %> + <%= render 'components/download_link', href: content_item.map_download_url, link_text: "Download a more detailed map (PDF)" %>
<% end %> diff --git a/test/integration/travel_advice_test.rb b/test/integration/travel_advice_test.rb index 1352b72c7..34fe84be1 100644 --- a/test/integration/travel_advice_test.rb +++ b/test/integration/travel_advice_test.rb @@ -41,7 +41,7 @@ class TravelAdviceTest < ActionDispatch::IntegrationTest end assert page.has_css?(".map img[src=\"#{@content_item['details']['image']['url']}\"]") - assert page.has_css?(".map figcaption a[href=\"#{@content_item['details']['document']['url']}\"]", text: "Download map (PDF)") + assert page.has_css?(".map figcaption a[href=\"#{@content_item['details']['document']['url']}\"]", text: "Download a more detailed map (PDF)") end test "travel advice part renders just that part" do