Skip to content

Commit

Permalink
Merge pull request #2363 from sul-dlss/pin-blacklight
Browse files Browse the repository at this point in the history
Pin ViewCompnent to a working version and add a test for Date Range
  • Loading branch information
thatbudakguy authored Oct 10, 2023
2 parents 91e043b + e0ced13 commit c236d9e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ end
gem 'config'

gem 'bootstrap', '~> 4.6'
gem 'blacklight', '~> 7.15'
gem 'blacklight', '~> 7.34'
gem 'blacklight-gallery', '~> 4.4'
gem 'blacklight_heatmaps'
gem 'blacklight-spotlight', '~> 3.0'
Expand Down Expand Up @@ -130,6 +130,7 @@ gem 'acts-as-taggable-on'
gem 'mods_display', '~> 1.0'
gem 'slack-ruby-client'
gem 'blacklight-oembed', '~> 1.0'
gem 'view_component', '~> 2.82' # ViewComponent 3.x breaks blacklight_range_limit 8.3.0

# Used for shared reporting https://github.com/sul-dlss/exhibits/issues/2069
gem 'redis', '~> 5.0'
9 changes: 5 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ GEM
llhttp-ffi (0.4.0)
ffi-compiler (~> 1.0)
rake (~> 13.0)
loofah (2.21.3)
loofah (2.21.4)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mail (2.8.1)
Expand Down Expand Up @@ -470,7 +470,7 @@ GEM
multipart-post (2.3.0)
mysql2 (0.5.5)
namae (1.1.1)
net-imap (0.4.0)
net-imap (0.4.1)
date
net-protocol
net-pop (0.1.2)
Expand Down Expand Up @@ -778,7 +778,7 @@ GEM
unf_ext (0.0.8.2)
unicode-display_width (2.5.0)
version_gem (1.1.3)
view_component (3.6.0)
view_component (2.82.0)
activesupport (>= 5.2.0, < 8.0)
concurrent-ruby (~> 1.0)
method_source (~> 1.0)
Expand Down Expand Up @@ -814,7 +814,7 @@ PLATFORMS
DEPENDENCIES
acts-as-taggable-on
bibtex-ruby
blacklight (~> 7.15)
blacklight (~> 7.34)
blacklight-gallery (~> 4.4)
blacklight-oembed (~> 1.0)
blacklight-spotlight (~> 3.0)
Expand Down Expand Up @@ -889,6 +889,7 @@ DEPENDENCIES
twitter-typeahead-rails (= 0.11.1.pre.corejavascript)
tzinfo-data
uglifier (>= 2.7.2)
view_component (~> 2.82)
web-console (>= 4.1.0)
webmock

Expand Down
20 changes: 20 additions & 0 deletions spec/features/range_limit_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe 'Range limit widget', type: :feature, js: true do
let(:exhibit) do
create(:exhibit, published: true, slug: 'test-exhibit')
end
let(:admin) { create(:exhibit_admin, exhibit: exhibit) }

before do
login_as admin
visit spotlight.search_exhibit_catalog_path(exhibit)
page.driver.browser.manage.window.resize_to(1000, 400)
end

it 'has the date range facet' do
expect(page).to have_button('Date Range')
end
end

0 comments on commit c236d9e

Please sign in to comment.