Sha256: 1487893ac5535b7f4750efd1ce5ef61c2402a4e0aa600e704cda172076a04f8a

Contents?: true

Size: 680 Bytes

Versions: 21

Compression:

Stored size: 680 Bytes

Contents

require 'spec_helper'

describe 'Slideshow', type: :feature, js: true do
  let(:exhibit) { FactoryGirl.create(:exhibit) }
  let(:user) { FactoryGirl.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.exhibit_catalog_index_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"]').trigger('click')
    expect(page).to have_selector '#slideshow', visible: true
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
blacklight-spotlight-0.17.1 spec/features/slideshow_spec.rb
blacklight-spotlight-0.17.0 spec/features/slideshow_spec.rb
blacklight-spotlight-0.16.0 spec/features/slideshow_spec.rb
blacklight-spotlight-0.15.0 spec/features/slideshow_spec.rb
blacklight-spotlight-0.14.2 spec/features/slideshow_spec.rb
blacklight-spotlight-0.14.1 spec/features/slideshow_spec.rb
blacklight-spotlight-0.14.0 spec/features/slideshow_spec.rb
blacklight-spotlight-0.13.0 spec/features/slideshow_spec.rb
blacklight-spotlight-0.12.1 spec/features/slideshow_spec.rb
blacklight-spotlight-0.12.0 spec/features/slideshow_spec.rb
blacklight-spotlight-0.11.0 spec/features/slideshow_spec.rb
blacklight-spotlight-0.10.3 spec/features/slideshow_spec.rb
blacklight-spotlight-0.10.2 spec/features/slideshow_spec.rb
blacklight-spotlight-0.10.1 spec/features/slideshow_spec.rb
blacklight-spotlight-0.10.0 spec/features/slideshow_spec.rb
blacklight-spotlight-0.9.2 spec/features/slideshow_spec.rb
blacklight-spotlight-0.9.1 spec/features/slideshow_spec.rb
blacklight-spotlight-0.9.0 spec/features/slideshow_spec.rb
blacklight-spotlight-0.8.2 spec/features/slideshow_spec.rb
blacklight-spotlight-0.8.1 spec/features/slideshow_spec.rb