Sha256: 25cc1c00459d272a2c659e7b5181eab491f68d0d4d30fed7b9d3d3d9c5be22f2

Contents?: true

Size: 695 Bytes

Versions: 4

Compression:

Stored size: 695 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: ['list', 'gallery', 'slideshow'])
  end
  it "should have 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

4 entries across 4 versions & 1 rubygems

Version Path
blacklight-spotlight-0.4.1 spec/features/slideshow_spec.rb
blacklight-spotlight-0.3.1 spec/features/slideshow_spec.rb
blacklight-spotlight-0.3.0 spec/features/slideshow_spec.rb
blacklight-spotlight-0.2.0 spec/features/slideshow_spec.rb