spec/features/masonry_spec.rb in blacklight-gallery-2.1.0 vs spec/features/masonry_spec.rb in blacklight-gallery-3.0.0
- old
+ new
@@ -2,10 +2,9 @@
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)
+ expect(page).to have_selector("#documents.documents-masonry")
+ expect(page).to have_selector('.document .caption', text: "Strong Medicine speaks", visible: false)
end
end