Skip to content

Commit

Permalink
Remove government_navigation component
Browse files Browse the repository at this point in the history
The component is no longer needed as the navigation header is being rolled out.
  • Loading branch information
injms committed Sep 28, 2021
1 parent de4d5eb commit bda7499
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 11 deletions.
4 changes: 0 additions & 4 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
<%= yield :extra_head_content %>
</head>
<body>
<% unless content_for(:simple_header) || explore_menu_variant_b? %>
<%= render 'govuk_publishing_components/components/government_navigation', active: active_proposition %>
<% end %>

<div id="wrapper" class="<%= wrapper_class %>">
<% if @content_item.show_phase_banner? %>
<%= render 'govuk_publishing_components/components/phase_banner', phase: @content_item.phase %>
Expand Down
2 changes: 0 additions & 2 deletions test/integration/fatality_notice_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ class FatalityNoticeTest < ActionDispatch::IntegrationTest
test "typical fatality notice" do
setup_and_visit_content_item("fatality_notice")

assert_has_component_government_navigation_active("News and communications")

assert page.has_title?(
"Sir George Pomeroy Colley killed in Boer War - Fatality notice - GOV.UK",
)
Expand Down
1 change: 0 additions & 1 deletion test/integration/news_article_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
class NewsArticleTest < ActionDispatch::IntegrationTest
test "news article renders title, description and body" do
setup_and_visit_content_item("news_article")
assert_has_component_government_navigation_active("News and communications")
assert_has_component_title(@content_item["title"])
assert page.has_text?(@content_item["description"])
assert page.has_text?("This year, the United Kingdom has had much to celebrate. Her Majesty The Queen celebrated her 90th birthday")
Expand Down
4 changes: 0 additions & 4 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ def assert_has_component_organisation_logo
assert page.has_css?(".gem-c-organisation-logo")
end

def assert_has_component_government_navigation_active(active)
assert page.has_css?("a", class: "active", text: active)
end

def assert_has_contents_list(contents)
assert page.has_css?(".gem-c-contents-list"), "Failed to find an element with a class of contents-list"
within ".gem-c-contents-list" do
Expand Down

0 comments on commit bda7499

Please sign in to comment.