diff --git a/app/views/content_items/case_study.html.erb b/app/views/content_items/case_study.html.erb index 930e89cc9..13e1b8574 100644 --- a/app/views/content_items/case_study.html.erb +++ b/app/views/content_items/case_study.html.erb @@ -10,7 +10,7 @@ <%= render 'shared/translations' %>
- <%= render 'govuk_component/lead_paragraph', text: @content_item.description %> + <%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
diff --git a/app/views/content_items/corporate_information_page.html.erb b/app/views/content_items/corporate_information_page.html.erb index 9cfff0380..ee761c8d3 100644 --- a/app/views/content_items/corporate_information_page.html.erb +++ b/app/views/content_items/corporate_information_page.html.erb @@ -38,7 +38,7 @@ <%= render 'shared/translations' %>
- <%= render 'govuk_component/lead_paragraph', text: @content_item.description %> + <%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %> <%= render 'components/notice', @content_item.withdrawal_notice_component %>
diff --git a/app/views/content_items/detailed_guide.html.erb b/app/views/content_items/detailed_guide.html.erb index 8cd169748..2c6662703 100644 --- a/app/views/content_items/detailed_guide.html.erb +++ b/app/views/content_items/detailed_guide.html.erb @@ -10,7 +10,7 @@ <%= render 'shared/translations' %>
- <%= render 'govuk_component/lead_paragraph', text: @content_item.description %> + <%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
diff --git a/app/views/content_items/document_collection.html.erb b/app/views/content_items/document_collection.html.erb index 1e342e3eb..e2b43039a 100644 --- a/app/views/content_items/document_collection.html.erb +++ b/app/views/content_items/document_collection.html.erb @@ -13,7 +13,7 @@ <%= render 'shared/translations', content_item: @content_item %>
- <%= render 'govuk_component/lead_paragraph', text: @content_item.description %> + <%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %> <%= render 'components/notice', @content_item.withdrawal_notice_component %> <%= render 'shared/history_notice', content_item: @content_item %>
diff --git a/app/views/content_items/fatality_notice.html.erb b/app/views/content_items/fatality_notice.html.erb index 1d40e93f4..cf148090c 100644 --- a/app/views/content_items/fatality_notice.html.erb +++ b/app/views/content_items/fatality_notice.html.erb @@ -10,7 +10,7 @@ <%= render 'shared/translations' %>
- <%= render 'govuk_component/lead_paragraph', text: @content_item.description %> + <%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
diff --git a/app/views/content_items/news_article.html.erb b/app/views/content_items/news_article.html.erb index 11d8ccc3b..3a7336744 100644 --- a/app/views/content_items/news_article.html.erb +++ b/app/views/content_items/news_article.html.erb @@ -10,7 +10,7 @@ <%= render 'shared/translations' %>
- <%= render 'govuk_component/lead_paragraph', text: @content_item.description %> + <%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
diff --git a/app/views/content_items/publication.html.erb b/app/views/content_items/publication.html.erb index 78342c861..26192474e 100644 --- a/app/views/content_items/publication.html.erb +++ b/app/views/content_items/publication.html.erb @@ -14,7 +14,7 @@ <%= render 'shared/translations' %>
- <%= render 'govuk_component/lead_paragraph', text: @content_item.description %> + <%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
diff --git a/app/views/content_items/specialist_document.html.erb b/app/views/content_items/specialist_document.html.erb index baa0552c4..45375aff2 100644 --- a/app/views/content_items/specialist_document.html.erb +++ b/app/views/content_items/specialist_document.html.erb @@ -12,7 +12,7 @@ <%= render 'shared/translations' %>
- <%= render 'govuk_component/lead_paragraph', text: @content_item.description %> + <%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
diff --git a/app/views/content_items/speech.html.erb b/app/views/content_items/speech.html.erb index e614c2305..ceb0800c6 100644 --- a/app/views/content_items/speech.html.erb +++ b/app/views/content_items/speech.html.erb @@ -10,7 +10,7 @@ <%= render 'shared/translations' %>
- <%= render 'govuk_component/lead_paragraph', text: @content_item.description %> + <%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
diff --git a/app/views/content_items/statistical_data_set.html.erb b/app/views/content_items/statistical_data_set.html.erb index 1e5e52162..7f6ad50be 100644 --- a/app/views/content_items/statistical_data_set.html.erb +++ b/app/views/content_items/statistical_data_set.html.erb @@ -13,7 +13,7 @@ <%= render 'shared/translations', content_item: @content_item %>
- <%= render 'govuk_component/lead_paragraph', text: @content_item.description %> + <%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %> <%= render 'components/notice', @content_item.withdrawal_notice_component %> <%= render 'shared/history_notice', content_item: @content_item %>
diff --git a/app/views/content_items/statistics_announcement.html.erb b/app/views/content_items/statistics_announcement.html.erb index f758beecd..b2adc64e3 100644 --- a/app/views/content_items/statistics_announcement.html.erb +++ b/app/views/content_items/statistics_announcement.html.erb @@ -7,7 +7,7 @@
<%= render 'govuk_component/title', @content_item.title_and_context %> - <%= render 'govuk_component/lead_paragraph', text: @content_item.description %> + <%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
diff --git a/app/views/content_items/take_part.html.erb b/app/views/content_items/take_part.html.erb index 184d8163f..d7413f5c2 100644 --- a/app/views/content_items/take_part.html.erb +++ b/app/views/content_items/take_part.html.erb @@ -7,7 +7,7 @@
<%= render 'govuk_component/title', @content_item.title_and_context %> - <%= render 'govuk_component/lead_paragraph', text: @content_item.description %> + <%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
<%= render 'shared/translations' %> diff --git a/app/views/content_items/topical_event_about_page.html.erb b/app/views/content_items/topical_event_about_page.html.erb index 25b3b5fff..c0e0db997 100644 --- a/app/views/content_items/topical_event_about_page.html.erb +++ b/app/views/content_items/topical_event_about_page.html.erb @@ -8,7 +8,7 @@
- <%= render 'govuk_component/lead_paragraph', text: @content_item.description %> + <%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
diff --git a/app/views/content_items/working_group.html.erb b/app/views/content_items/working_group.html.erb index 1f0b1a20c..3c53a558a 100644 --- a/app/views/content_items/working_group.html.erb +++ b/app/views/content_items/working_group.html.erb @@ -26,7 +26,7 @@
<%= render 'shared/translations' %>
- <%= render 'govuk_component/lead_paragraph', text: @content_item.description %> + <%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %> <%= render 'components/contents-list-with-body', contents: @content_item.contents do %> <%= render 'govuk_component/govspeak', content: "#{@content_item.body} #{@additional_body}", diff --git a/app/views/content_items/world_location_news_article.html.erb b/app/views/content_items/world_location_news_article.html.erb index 4b8e471a6..5e86963f9 100644 --- a/app/views/content_items/world_location_news_article.html.erb +++ b/app/views/content_items/world_location_news_article.html.erb @@ -10,7 +10,7 @@
<%= render 'shared/translations' %>
- <%= render 'govuk_component/lead_paragraph', text: @content_item.description %> + <%= render 'govuk_publishing_components/components/lead_paragraph', text: @content_item.description %>
diff --git a/test/integration/fatality_notice_test.rb b/test/integration/fatality_notice_test.rb index 3f6e706ae..6999c7993 100644 --- a/test/integration/fatality_notice_test.rb +++ b/test/integration/fatality_notice_test.rb @@ -33,11 +33,7 @@ class FatalityNoticeTest < ActionDispatch::IntegrationTest "Field of operation": { "Zululand": "/government/fields-of-operation/zululand" } ) - assert_component_parameter( - "lead_paragraph", - "text", - "It is with great sadness that the Ministry of Defence must confirm that Sir George Pomeroy Colley, died in battle in Zululand on 27 February 1881." - ) + assert page.has_content?("It is with great sadness that the Ministry of Defence must confirm that Sir George Pomeroy Colley, died in battle") assert( page.has_css?("img[src*=ministry-of-defence-crest][alt='Ministry of Defence crest']"),