Skip to content

Commit fa93417

Browse files
author
Vanita Barrett
committed
Bump govuk_publishing_components to 9.9.1
This version removes headings from the document list component. This caused a couple of tests to fail which have also been fixed in this commit.
1 parent e6d6d13 commit fa93417

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ gem 'gds-api-adapters', '~> 52.7'
1717
gem 'govuk_ab_testing', '~> 2.4'
1818
gem 'govuk_app_config', '~> 1.8'
1919
gem 'govuk_frontend_toolkit', '~> 7.6'
20-
gem 'govuk_publishing_components', '~> 9.9.0'
20+
gem 'govuk_publishing_components', '~> 9.9.1'
2121
gem 'plek', '~> 2.1'
2222
gem 'slimmer', '~> 13.0'
2323

Gemfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ GEM
126126
govuk_frontend_toolkit (7.6.0)
127127
railties (>= 3.1.0)
128128
sass (>= 3.2.0)
129-
govuk_publishing_components (9.9.0)
129+
govuk_publishing_components (9.9.1)
130130
govspeak (>= 5.0.3)
131131
govuk_app_config
132132
govuk_frontend_toolkit
@@ -365,7 +365,7 @@ DEPENDENCIES
365365
govuk_ab_testing (~> 2.4)
366366
govuk_app_config (~> 1.8)
367367
govuk_frontend_toolkit (~> 7.6)
368-
govuk_publishing_components (~> 9.9.0)
368+
govuk_publishing_components (~> 9.9.1)
369369
govuk_schemas (~> 3.2)
370370
htmlentities (~> 4.3)
371371
jasmine-rails

test/integration/document_collection_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class DocumentCollectionTest < ActionDispatch::IntegrationTest
7979
documents = @content_item["links"]["documents"]
8080

8181
documents.each do |doc|
82-
assert page.has_css?('.gem-c-document-list__item-title a', text: doc["title"])
82+
assert page.has_css?('.gem-c-document-list__item-title', text: doc["title"])
8383
end
8484

8585
assert page.has_css?('.gem-c-document-list .gem-c-document-list__item', count: documents.count)
@@ -101,7 +101,7 @@ class DocumentCollectionTest < ActionDispatch::IntegrationTest
101101
groups = page.all('.gem-c-document-list')
102102
assert page.has_css?('[data-module="track-click"]'), count: groups.length
103103

104-
first_section_links = groups.first.all('.gem-c-document-list__item-title a')
104+
first_section_links = groups.first.all('.gem-c-document-list__item-title')
105105
first_link = first_section_links.first
106106

107107
assert_equal(

0 commit comments

Comments
 (0)