Skip to content

Commit

Permalink
Remove UA from metadata template
Browse files Browse the repository at this point in the history
  • Loading branch information
AshGDS committed Jul 1, 2024
1 parent c881811 commit c7f6bf4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion app/views/components/_important_metadata.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<% if title %>
<h2 class="app-c-important-metadata__title"><%= sanitize title %></h2>
<% end %>
<dl class="app-c-important-metadata__list" data-module="gem-track-click">
<dl class="app-c-important-metadata__list">
<% items.each do |title, definition| %>
<dt class="app-c-important-metadata__term"><%= sanitize title.to_s %>: </dt>
<dd class="app-c-important-metadata__definition"><%= sanitize definition %></dd>
Expand Down
5 changes: 0 additions & 5 deletions test/components/important_metadata_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,4 @@ def component_name
assert_select ".app-c-important-metadata dd a[href='https://www.gov.uk/cma-cases?outcome_type%5B%5D=mergers-phase-2-clearance-with-remedies']",
text: "Mergers - phase 2 clearance with remedies"
end

test "link tracking is enabled" do
render_component(items: { "Case type": ["<a href='https://www.gov.uk/cma-cases?case_type%5B%5D=mergers'>Mergers</a>"] })
assert_select ".app-c-important-metadata dl[data-module='gem-track-click']"
end
end

0 comments on commit c7f6bf4

Please sign in to comment.