Sha256: 24985332c2591d749627ec3b41e03a891b20fd27c70b32672502cdcebba4d3c0

Contents?: true

Size: 986 Bytes

Versions: 24

Compression:

Stored size: 986 Bytes

Contents

describe 'Dashboard', type: :feature do
  let(:exhibit) { FactoryBot.create(:exhibit) }
  let(:admin) { FactoryBot.create(:exhibit_admin, exhibit: exhibit) }
  before do
    login_as(admin)
  end

  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

  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

24 entries across 24 versions & 1 rubygems

Version Path
blacklight-spotlight-2.4.1 spec/features/dashboard_spec.rb
blacklight-spotlight-2.4.0 spec/features/dashboard_spec.rb
blacklight-spotlight-2.3.3 spec/features/dashboard_spec.rb
blacklight-spotlight-2.3.2 spec/features/dashboard_spec.rb
blacklight-spotlight-2.3.1 spec/features/dashboard_spec.rb
blacklight-spotlight-2.3.0 spec/features/dashboard_spec.rb
blacklight-spotlight-2.2.1 spec/features/dashboard_spec.rb
blacklight-spotlight-2.2.0 spec/features/dashboard_spec.rb
blacklight-spotlight-2.1.0 spec/features/dashboard_spec.rb
blacklight-spotlight-2.0.2 spec/features/dashboard_spec.rb
blacklight-spotlight-2.0.1 spec/features/dashboard_spec.rb
blacklight-spotlight-2.0.0 spec/features/dashboard_spec.rb
blacklight-spotlight-2.0.0.rc6 spec/features/dashboard_spec.rb
blacklight-spotlight-2.0.0.rc5 spec/features/dashboard_spec.rb
blacklight-spotlight-2.0.0.rc4 spec/features/dashboard_spec.rb
blacklight-spotlight-2.0.0.rc3 spec/features/dashboard_spec.rb
blacklight-spotlight-2.0.0.rc2 spec/features/dashboard_spec.rb
blacklight-spotlight-2.0.0.rc1 spec/features/dashboard_spec.rb
blacklight-spotlight-1.5.1 spec/features/dashboard_spec.rb
blacklight-spotlight-1.4.1 spec/features/dashboard_spec.rb