Sha256: 882a7d7b2ce2b5a558c5a285ff8fba87697fa32fd8e439ad3dbe4d38f2bffc82

Contents?: true

Size: 681 Bytes

Versions: 22

Compression:

Stored size: 681 Bytes

Contents

# frozen_string_literal: true

describe 'Slideshow', type: :feature, js: true do
  let(:exhibit) { FactoryBot.create(:exhibit) }
  let(:user) { FactoryBot.create(:exhibit_admin, exhibit: exhibit) }

  before do
    login_as user
    exhibit.blacklight_configuration.update(document_index_view_types: %w[list gallery slideshow])
  end

  it 'has slideshow' do
    visit spotlight.search_exhibit_catalog_path(exhibit, f: { genre_ssim: ['map'] })
    expect(page).to have_content 'You searched for:'
    within '.view-type' do
      click_link 'Slideshow'
    end
    find('.grid [data-slide-to="1"] img').click
    expect(page).to have_selector '#slideshow', visible: true
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
blacklight-spotlight-3.4.0 spec/features/slideshow_spec.rb
blacklight-spotlight-3.3.0 spec/features/slideshow_spec.rb
blacklight-spotlight-3.2.0 spec/features/slideshow_spec.rb
blacklight-spotlight-3.1.0 spec/features/slideshow_spec.rb
blacklight-spotlight-3.0.3 spec/features/slideshow_spec.rb
blacklight-spotlight-3.0.2 spec/features/slideshow_spec.rb
blacklight-spotlight-3.0.1 spec/features/slideshow_spec.rb
blacklight-spotlight-3.0.0 spec/features/slideshow_spec.rb
blacklight-spotlight-3.0.0.rc6 spec/features/slideshow_spec.rb
blacklight-spotlight-3.0.0.rc5 spec/features/slideshow_spec.rb
blacklight-spotlight-3.0.0.rc4 spec/features/slideshow_spec.rb
blacklight-spotlight-3.0.0.rc3 spec/features/slideshow_spec.rb
blacklight-spotlight-3.0.0.rc2 spec/features/slideshow_spec.rb
blacklight-spotlight-3.0.0.rc1 spec/features/slideshow_spec.rb
blacklight-spotlight-3.0.0.alpha.10 spec/features/slideshow_spec.rb
blacklight-spotlight-3.0.0.alpha.9 spec/features/slideshow_spec.rb
blacklight-spotlight-3.0.0.alpha.8 spec/features/slideshow_spec.rb
blacklight-spotlight-3.0.0.alpha.7 spec/features/slideshow_spec.rb
blacklight-spotlight-3.0.0.alpha.6 spec/features/slideshow_spec.rb
blacklight-spotlight-3.0.0.alpha.5 spec/features/slideshow_spec.rb