Sha256: 5c3454e3abd8f5798b09aed6d6816f8b95239c8a1be5cb47939c5d04a4876add

Contents?: true

Size: 467 Bytes

Versions: 5

Compression:

Stored size: 467 Bytes

Contents

require 'spec_helper'

describe 'multi image viewer' do

  before(:each) do
    visit solr_document_path(:id => 'bpl-dev:h702q6403')
    click_link('carousel-nav_next')
  end

  it 'should display the next image when a prev-next link is clicked' do
    expect(find('.img_show')['src']).to match /bpl-dev:h702q642n/
  end

  it 'should update the thumbnail in the #thumbnail_list' do
    expect(all('#thumbnail_list li').last).to have_selector('.in_viewer')
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
commonwealth-vlr-engine-0.0.7 spec/features/catalog/_show_partials/_show_multi_img_spec.rb
commonwealth-vlr-engine-0.0.4 spec/features/catalog/_show_partials/_show_multi_img_spec.rb
commonwealth-vlr-engine-0.0.3 spec/features/catalog/_show_partials/_show_multi_img_spec.rb
commonwealth-vlr-engine-0.0.2 spec/features/catalog/_show_partials/_show_multi_img_spec.rb
commonwealth-vlr-engine-0.0.1 spec/features/catalog/_show_partials/_show_multi_img_spec.rb