Sha256: aa7db26bd4996822e59bc637579e5282ead9ae6de163c8b79b561562f0fd0b03

Contents?: true

Size: 465 Bytes

Versions: 23

Compression:

Stored size: 465 Bytes

Contents

require 'spec_helper'

describe "Masonry view", :type => :feature do
  before { visit search_catalog_path :q => 'medicine', :view => 'masonry' }

  it "should display results in a galley view" do
    expect(page).to have_selector("#documents[data-behavior='masonry-gallery']")
    expect(page).to have_selector(".masonry.document .thumbnail")
    expect(page).to have_selector('.masonry.document .caption', text: "Strong Medicine speaks", visible: false)
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
blacklight-gallery-2.1.0 spec/features/masonry_spec.rb
blacklight-gallery-2.0.2 spec/features/masonry_spec.rb
blacklight-gallery-2.0.1 spec/features/masonry_spec.rb
blacklight-gallery-2.0.0 spec/features/masonry_spec.rb
blacklight-gallery-1.7.0 spec/features/masonry_spec.rb
blacklight-gallery-1.6.0 spec/features/masonry_spec.rb
blacklight-gallery-1.5.0 spec/features/masonry_spec.rb
blacklight-gallery-1.4.0 spec/features/masonry_spec.rb
blacklight-gallery-1.3.0 spec/features/masonry_spec.rb
blacklight-gallery-1.2.1 spec/features/masonry_spec.rb
blacklight-gallery-1.2.0 spec/features/masonry_spec.rb
blacklight-gallery-1.1.1 spec/features/masonry_spec.rb
blacklight-gallery-1.1.0 spec/features/masonry_spec.rb
blacklight-gallery-0.12.0 spec/features/masonry_spec.rb
blacklight-gallery-1.0.0 spec/features/masonry_spec.rb
blacklight-gallery-0.11.0 spec/features/masonry_spec.rb
blacklight-gallery-0.10.0 spec/features/masonry_spec.rb
blacklight-gallery-0.9.0 spec/features/masonry_spec.rb
blacklight-gallery-0.8.0 spec/features/masonry_spec.rb
blacklight-gallery-0.7.0 spec/features/masonry_spec.rb