diff --git a/app/views/content_items/guide.html.erb b/app/views/content_items/guide.html.erb index 2a0c40177..519ccda93 100644 --- a/app/views/content_items/guide.html.erb +++ b/app/views/content_items/guide.html.erb @@ -28,7 +28,7 @@ direction: page_text_direction, disable_youtube_expansions: true, rich_govspeak: true %> - <%= render 'govuk_component/previous_and_next_navigation', @content_item.previous_and_next_navigation %> + <%= render 'govuk_publishing_components/components/previous_and_next_navigation', @content_item.previous_and_next_navigation %> <% if @content_item.multi_page_guide? %> <%= render 'components/print-link', href: @content_item.print_link, link_text: t("multi_page.print_entire_guide") %> diff --git a/app/views/content_items/travel_advice.html.erb b/app/views/content_items/travel_advice.html.erb index 008d5d808..ea04fd8e5 100644 --- a/app/views/content_items/travel_advice.html.erb +++ b/app/views/content_items/travel_advice.html.erb @@ -54,7 +54,7 @@ content: @content_item.current_part_body, direction: page_text_direction %> - <%= render 'govuk_component/previous_and_next_navigation', @content_item.previous_and_next_navigation %> + <%= render 'govuk_publishing_components/components/previous_and_next_navigation', @content_item.previous_and_next_navigation %> <%= render 'components/print-link', href: @content_item.print_link, link_text: t("multi_page.print_entire_guide") %> diff --git a/test/integration/guide_test.rb b/test/integration/guide_test.rb index c73d0e415..b9aa82c1e 100644 --- a/test/integration/guide_test.rb +++ b/test/integration/guide_test.rb @@ -12,7 +12,7 @@ class GuideTest < ActionDispatch::IntegrationTest assert_has_component_title(@content_item['title']) assert page.has_css?('h1', text: @content_item['details']['parts'].first['title']) - assert page.has_css?(shared_component_selector("previous_and_next_navigation")) + assert page.has_css?('.gem-c-pagination') assert page.has_css?('.app-c-print-link a[href$="/print"]') end diff --git a/test/integration/travel_advice_test.rb b/test/integration/travel_advice_test.rb index 9ddb28110..fa5dfb669 100644 --- a/test/integration/travel_advice_test.rb +++ b/test/integration/travel_advice_test.rb @@ -23,7 +23,7 @@ class TravelAdviceTest < ActionDispatch::IntegrationTest assert page.has_css?(".part-navigation li a[href*=\"#{part['slug']}\"]", text: part['title']) end - assert page.has_css?(shared_component_selector("previous_and_next_navigation")) + assert page.has_css?('.gem-c-pagination') assert page.has_css?('.app-c-print-link a[href$="/print"]') end