Skip to content

Commit

Permalink
Change announcements navigation assertions
Browse files Browse the repository at this point in the history
"Announcements" has been replaced in the government navigation header with
"News and communications" since 16.0.0 of govuk_publishing_components.
  • Loading branch information
kevindew committed Feb 27, 2019
1 parent 19dbeb1 commit 1b6931b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/integration/fatality_notice_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class FatalityNoticeTest < ActionDispatch::IntegrationTest
test "typical fatality notice" do
setup_and_visit_content_item('fatality_notice')

assert_has_component_government_navigation_active("Announcements")
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
2 changes: 1 addition & 1 deletion test/integration/news_article_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
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("Announcements")
assert_has_component_government_navigation_active("News and announcements")
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

0 comments on commit 1b6931b

Please sign in to comment.