Skip to content

Commit

Permalink
Merge pull request #3031 from alphagov/update-copy-of-download-map-text
Browse files Browse the repository at this point in the history
Update copy for download link for travel advice map
  • Loading branch information
davidgisbey authored Jan 3, 2024
2 parents 6a31f32 + 5e2aae9 commit bdb9c67
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 bdb9c67

Please sign in to comment.