spec/features/home_page_spec.rb in blacklight-spotlight-2.0.2 vs spec/features/home_page_spec.rb in blacklight-spotlight-2.1.0

- old
+ new

@@ -1,9 +1,10 @@ describe 'Home page', type: :feature, versioning: true do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit: exhibit) } before { login_as exhibit_curator } + it 'exists by default on exhibits' do visit spotlight.exhibit_dashboard_path(exhibit) click_link 'Feature pages' expect(page).to have_selector 'h3', text: 'Homepage' expect(page).to have_selector 'h3.panel-title', text: 'Exhibit Home' @@ -77,9 +78,10 @@ describe 'when configured to not display sidebar' do before do exhibit.home_page.display_sidebar = false exhibit.home_page.save end + it 'does not display the facet sidebar' do visit spotlight.exhibit_home_page_path(exhibit) expect(page).not_to have_css('#sidebar') end end