From 4f6449d682d9de035c62624eb8aa0b72a6d3f75a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 20 Jul 2022 11:03:24 +0000 Subject: [PATCH 1/2] Bump govuk_publishing_components from 29.13.0 to 29.15.1 Bumps [govuk_publishing_components](https://github.com/alphagov/govuk_publishing_components) from 29.13.0 to 29.15.1. - [Release notes](https://github.com/alphagov/govuk_publishing_components/releases) - [Changelog](https://github.com/alphagov/govuk_publishing_components/blob/main/CHANGELOG.md) - [Commits](https://github.com/alphagov/govuk_publishing_components/compare/v29.13.0...v29.15.1) --- updated-dependencies: - dependency-name: govuk_publishing_components dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 426e01c09..06e8cfc5d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -134,7 +134,7 @@ GEM govuk_personalisation (0.12.0) plek (>= 1.9.0) rails (>= 6, < 8) - govuk_publishing_components (29.13.0) + govuk_publishing_components (29.15.1) govuk_app_config govuk_personalisation (>= 0.7.0) kramdown @@ -366,7 +366,7 @@ GEM tilt (2.0.10) timecop (0.9.5) timeout (0.3.0) - tzinfo (2.0.4) + tzinfo (2.0.5) concurrent-ruby (~> 1.0) uglifier (4.2.0) execjs (>= 0.3.0, < 3) From 6035e8b021fcf6e3185d17b8815e77fe70000e9c Mon Sep 17 00:00:00 2001 From: Aga Dufrat Date: Wed, 20 Jul 2022 14:37:48 +0100 Subject: [PATCH 2/2] Rename pagination CSS class CSS class `gem-c-pagination` changed to 'govuk-pagination' in alphagov/govuk_publishing_components#2836 --- test/integration/guide_test.rb | 6 +++--- test/integration/hmrc_manual_section_test.rb | 2 +- test/integration/travel_advice_test.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/integration/guide_test.rb b/test/integration/guide_test.rb index 8bee5aa18..f7ed79747 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?(".gem-c-pagination") + assert page.has_css?(".govuk-pagination") assert page.has_css?(".govuk-link.govuk-link--no-visited-state[href$='/print']", text: "View a printable version of the whole guide") end @@ -59,14 +59,14 @@ class GuideTest < ActionDispatch::IntegrationTest test "does not show guide navigation and print link if in a step by step and hide_chapter_navigation is true" do setup_and_visit_content_item("guide-with-step-navs-and-hide-navigation") - assert_not page.has_css?(".gem-c-pagination") + assert_not page.has_css?(".govuk-pagination") assert_not page.has_css?(".govuk-link.govuk-link--no-visited-state[href$='/print']") end test "shows guide navigation and print link if not in a step by step and hide_chapter_navigation is true" do setup_and_visit_content_item("guide-with-hide-navigation") - assert page.has_css?(".gem-c-pagination") + assert page.has_css?(".govuk-pagination") assert page.has_css?(".govuk-link.govuk-link--no-visited-state[href$='/print']", text: "View a printable version of the whole guide") end diff --git a/test/integration/hmrc_manual_section_test.rb b/test/integration/hmrc_manual_section_test.rb index 532e6d7c3..3eba34e81 100644 --- a/test/integration/hmrc_manual_section_test.rb +++ b/test/integration/hmrc_manual_section_test.rb @@ -65,7 +65,7 @@ class HmrcManualSectionTest < ActionDispatch::IntegrationTest test "renders previous and next navigation" do setup_and_visit_manual_section - within ".gem-c-pagination" do + within ".govuk-pagination" do assert page.has_link?( I18n.t("manuals.previous_page"), href: "/hmrc-internal-manuals/vat-government-and-public-bodies/vatgpb1000", diff --git a/test/integration/travel_advice_test.rb b/test/integration/travel_advice_test.rb index 60ccc3b7d..b0bebe566 100644 --- a/test/integration/travel_advice_test.rb +++ b/test/integration/travel_advice_test.rb @@ -22,7 +22,7 @@ class TravelAdviceTest < ActionDispatch::IntegrationTest assert page.has_css?(".part-navigation-container nav li a[href*=\"#{part['slug']}\"]", text: part["title"]) end - assert page.has_css?(".gem-c-pagination") + assert page.has_css?(".govuk-pagination") assert page.has_css?('.govuk-link.govuk-link--no-visited-state[href$="/print"]', text: "View a printable version of the whole guide") end