Sha256: 20e86cc12b7750e2adf0d27ff85a34f45a046c25ce51ac8a971ffcdbea483239

Contents?: true

Size: 688 Bytes

Versions: 5

Compression:

Stored size: 688 Bytes

Contents

require 'spec_helper'

describe 'Slideshow', type: :feature, js: true do
  let(:exhibit) { FactoryGirl.create(:default_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

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-spotlight-0.7.2 spec/features/slideshow_spec.rb
blacklight-spotlight-0.7.1 spec/features/slideshow_spec.rb
blacklight-spotlight-0.7.0 spec/features/slideshow_spec.rb
blacklight-spotlight-0.6.0 spec/features/slideshow_spec.rb
blacklight-spotlight-0.5.0 spec/features/slideshow_spec.rb