Sha256: 37ea34255ce61c39ec1fd42ab83fee19bb5a5046c84709babf45c23375ed5671

Contents?: true

Size: 1017 Bytes

Versions: 26

Compression:

Stored size: 1017 Bytes

Contents

# frozen_string_literal: true

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

26 entries across 26 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.alpha.10 spec/features/dashboard_spec.rb
blacklight-spotlight-3.0.0.alpha.9 spec/features/dashboard_spec.rb
blacklight-spotlight-3.0.0.alpha.8 spec/features/dashboard_spec.rb
blacklight-spotlight-3.0.0.alpha.7 spec/features/dashboard_spec.rb
blacklight-spotlight-3.0.0.alpha.6 spec/features/dashboard_spec.rb
blacklight-spotlight-3.0.0.alpha.5 spec/features/dashboard_spec.rb
blacklight-spotlight-3.0.0.alpha.4 spec/features/dashboard_spec.rb
blacklight-spotlight-3.0.0.alpha.3 spec/features/dashboard_spec.rb
blacklight-spotlight-3.0.0.alpha.2 spec/features/dashboard_spec.rb
blacklight-spotlight-3.0.0.alpha.1 spec/features/dashboard_spec.rb
blacklight-spotlight-2.13.0 spec/features/dashboard_spec.rb
blacklight-spotlight-2.12.1 spec/features/dashboard_spec.rb
blacklight-spotlight-2.12.0 spec/features/dashboard_spec.rb
blacklight-spotlight-2.11.0 spec/features/dashboard_spec.rb
blacklight-spotlight-2.10.0 spec/features/dashboard_spec.rb
blacklight-spotlight-2.9.0 spec/features/dashboard_spec.rb
blacklight-spotlight-2.8.0 spec/features/dashboard_spec.rb
blacklight-spotlight-2.7.2 spec/features/dashboard_spec.rb
blacklight-spotlight-2.7.1 spec/features/dashboard_spec.rb
blacklight-spotlight-2.7.0 spec/features/dashboard_spec.rb