diff --git a/app/presenters/content_item/shareable.rb b/app/presenters/content_item/shareable.rb index 627e41a25..30e98f427 100644 --- a/app/presenters/content_item/shareable.rb +++ b/app/presenters/content_item/shareable.rb @@ -6,12 +6,12 @@ def share_links [ { href: facebook_share_url, - text: 'Share on Facebook'.html_safe, + text: "Facebook", icon: "facebook", }, { href: twitter_share_url, - text: 'Share on Twitter'.html_safe, + text: "Twitter", icon: "twitter", }, ] diff --git a/test/integration/consultation_test.rb b/test/integration/consultation_test.rb index f60dbf4b7..dba73a893 100644 --- a/test/integration/consultation_test.rb +++ b/test/integration/consultation_test.rb @@ -154,7 +154,7 @@ class ConsultationTest < ActionDispatch::IntegrationTest test "share urls" do setup_and_visit_content_item("open_consultation") - assert page.has_css?("a", text: "Share on Facebook") - assert page.has_css?("a", text: "Share on Twitter") + assert page.has_css?("a", text: "Facebook") + assert page.has_css?("a", text: "Twitter") end end