Skip to content

Commit

Permalink
Merge pull request #2491 from alphagov/dependabot/bundler/govuk_publi…
Browse files Browse the repository at this point in the history
…shing_components-29.15.1

Bump govuk_publishing_components from 29.13.0 to 29.15.1
  • Loading branch information
AgaDufrat authored Jul 20, 2022
2 parents 3247ea6 + 6035e8b commit 360229d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions test/integration/guide_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/integration/hmrc_manual_section_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion test/integration/travel_advice_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 360229d

Please sign in to comment.