Sha256: bd7c21502797013d7d38c03d068bac5f65c151a77c4054d5d4800e3e72e31519

Contents?: true

Size: 450 Bytes

Versions: 7

Compression:

Stored size: 450 Bytes

Contents

require 'spec_helper'

describe "Slideshow", :js, :type => :feature do

  it "should open when one of the grid panes are clicked" do
    visit catalog_index_path( :q => 'medicine', :view => 'slideshow' )
    expect(page).to have_content "You searched for:"
    within ".view-type" do
      click_link "Slideshow"
    end

    find('.grid [data-slide-to="0"]').trigger('click')
    expect(page).to have_selector '#slideshow', visible: true
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
blacklight-gallery-0.4.1 spec/features/slideshow_spec.rb
blacklight-gallery-0.4.0 spec/features/slideshow_spec.rb
blacklight-gallery-0.3.0 spec/features/slideshow_spec.rb
blacklight-gallery-0.2.1 spec/features/slideshow_spec.rb
blacklight-gallery-0.2.0 spec/features/slideshow_spec.rb
blacklight-gallery-0.1.2 spec/features/slideshow_spec.rb
blacklight-gallery-0.1.1 spec/features/slideshow_spec.rb