Sha256: 469a51f2ae1e4ec8817a8935ac290b18ab65f41b6a4f38b47c3f69e2e6c338f9

Contents?: true

Size: 468 Bytes

Versions: 5

Compression:

Stored size: 468 Bytes

Contents

require 'spec_helper'

RSpec.describe 'Slideshow', default_max_wait_time: 20, 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

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-gallery-4.6.4 spec/features/slideshow_spec.rb
blacklight-gallery-4.6.3 spec/features/slideshow_spec.rb
blacklight-gallery-4.6.2 spec/features/slideshow_spec.rb
blacklight-gallery-4.6.1 spec/features/slideshow_spec.rb
blacklight-gallery-4.6.0 spec/features/slideshow_spec.rb