Sha256: 24b59f732eb88bc0b0e888ada2390474c900f75d858545b4fa69839400baa763

Contents?: true

Size: 440 Bytes

Versions: 6

Compression:

Stored size: 440 Bytes

Contents

require 'spec_helper'

RSpec.describe 'Slideshow', js: true do
  it 'opens when one of the grid panes is clicked' do
    visit search_catalog_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"], .grid [data-bs-slide-to="0"]').click
    expect(page).to have_css('.slideshow-inner .item')
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
blacklight-gallery-4.8.4 spec/features/slideshow_spec.rb
blacklight-gallery-4.8.3 spec/features/slideshow_spec.rb
blacklight-gallery-4.8.2 spec/features/slideshow_spec.rb
blacklight-gallery-4.8.1 spec/features/slideshow_spec.rb
blacklight-gallery-4.8.0 spec/features/slideshow_spec.rb
blacklight-gallery-4.7.0 spec/features/slideshow_spec.rb