Sha256: 07269c24c8f03058939dde70bfd56fc1f2b712c6646b5aae969ba1ac3575fdf6

Contents?: true

Size: 431 Bytes

Versions: 2

Compression:

Stored size: 431 Bytes

Contents

require 'spec_helper'

describe "Slideshow", :js 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

2 entries across 2 versions & 1 rubygems

Version Path
blacklight-gallery-0.1.0 spec/features/slideshow_spec.rb
blacklight-gallery-0.0.2 spec/features/slideshow_spec.rb