Skip to content

Commit

Permalink
Update copy for download link for travel advice map
Browse files Browse the repository at this point in the history
FCDO would like the copy of this link updated to be more specific.
Zendesk ticket: https://govuk.zendesk.com/agent/tickets/5495177
  • Loading branch information
davidgisbey committed Jan 3, 2024
1 parent e26438e commit 5e2aae9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/shared/_travel_advice_first_part.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<img src="<%= content_item.map["url"] %>" alt="<%= content_item.map["alt_text"] %>" class="map-image">
<% if content_item.map_download_url %>
<figcaption>
<%= 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)" %>
</figcaption>
<% end %>
</figure>
Expand Down
2 changes: 1 addition & 1 deletion test/integration/travel_advice_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e2aae9

Please sign in to comment.