Sha256: 8153e2a161ab359016d9411d2a0fabb5688a27e3a4220f42b26575ac9940149d

Contents?: true

Size: 681 Bytes

Versions: 18

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

18 entries across 18 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.alpha.2 spec/features/slideshow_spec.rb
blacklight-spotlight-3.0.0.alpha.1 spec/features/slideshow_spec.rb
blacklight-spotlight-2.13.0 spec/features/slideshow_spec.rb
blacklight-spotlight-2.12.1 spec/features/slideshow_spec.rb
blacklight-spotlight-2.12.0 spec/features/slideshow_spec.rb
blacklight-spotlight-2.11.0 spec/features/slideshow_spec.rb
blacklight-spotlight-2.10.0 spec/features/slideshow_spec.rb
blacklight-spotlight-2.9.0 spec/features/slideshow_spec.rb
blacklight-spotlight-2.8.0 spec/features/slideshow_spec.rb
blacklight-spotlight-2.7.2 spec/features/slideshow_spec.rb
blacklight-spotlight-2.7.1 spec/features/slideshow_spec.rb
blacklight-spotlight-2.7.0 spec/features/slideshow_spec.rb
blacklight-spotlight-2.6.1.1 spec/features/slideshow_spec.rb
blacklight-spotlight-2.6.1 spec/features/slideshow_spec.rb
blacklight-spotlight-2.6.0 spec/features/slideshow_spec.rb
blacklight-spotlight-2.5.2 spec/features/slideshow_spec.rb
blacklight-spotlight-2.5.1 spec/features/slideshow_spec.rb
blacklight-spotlight-2.5.0 spec/features/slideshow_spec.rb