Sha256: 7f541c48f1307374f9e79488da109c20866e6ecb0fad33fca670619116c6e5d8
Contents?: true
Size: 1017 Bytes
Versions: 13
Compression:
Stored size: 1017 Bytes
Contents
# frozen_string_literal: true describe 'Dashboard', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let!(:parent_feature_page) do FactoryBot.create(:feature_page, title: 'Parent Page', exhibit: exhibit) end let!(:child_feature_page) do FactoryBot.create( :feature_page, title: 'Child Page', parent_page: parent_feature_page, exhibit: exhibit ) end let(:admin) { FactoryBot.create(:exhibit_admin, exhibit: exhibit) } before do login_as(admin) end it 'includes a list of recently edited feature pages' do visit spotlight.exhibit_dashboard_path(exhibit) expect(page).to have_content 'Recent site building activity' expect(page).to have_content 'Parent Page' expect(page).to have_content 'Child Page' end it 'includes a list of recently indexed items' do visit spotlight.exhibit_dashboard_path(exhibit) expect(page).to have_content 'Recently updated items' expect(page).to have_selector('#documents') end end
Version data entries
13 entries across 13 versions & 1 rubygems