Sha256: fb937d860bee765ecd47a0b244d1fd48c46fe317d850840fdb00343ad4b9aeef

Contents?: true

Size: 561 Bytes

Versions: 3

Compression:

Stored size: 561 Bytes

Contents

require "spec_helper"

feature "Editing the Home Page", js: true do
  let(:exhibit) { FactoryGirl.create(:exhibit) }
  let(:admin) { FactoryGirl.create(:exhibit_admin, exhibit: exhibit) }
  
  before { login_as admin }

  it "should not have a search results widget" do
    skip("Passing locally but Travis is throwing intermittent errors") if ENV["CI"]
    visit spotlight.edit_exhibit_home_page_path(exhibit)
    add_widget
    within("[data-icon='add']") do
      expect(page).not_to have_css("[data-type='search_results']", visible: true)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blacklight-spotlight-0.3.1 spec/features/javascript/home_page_edit_spec.rb
blacklight-spotlight-0.3.0 spec/features/javascript/home_page_edit_spec.rb
blacklight-spotlight-0.2.0 spec/features/javascript/home_page_edit_spec.rb