Skip to content

Commit

Permalink
Rename pagination CSS class
Browse files Browse the repository at this point in the history
CSS class `gem-c-pagination` changed to 'govuk-pagination'
in alphagov/govuk_publishing_components#2836
  • Loading branch information
AgaDufrat committed Jul 20, 2022
1 parent 4f6449d commit 6035e8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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 6035e8b

Please sign in to comment.