Sha256: 87ee33a8676e85991e2e27d99cdb130f7578449694ae88af226aeba6dba05a53

Contents?: true

Size: 1013 Bytes

Versions: 22

Compression:

Stored size: 1013 Bytes

Contents

require 'spec_helper'

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

  let!(:parent_feature_page) do
    FactoryGirl.create(:feature_page, title: 'Parent Page', exhibit: exhibit)
  end
  let!(:child_feature_page) do
    FactoryGirl.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

22 entries across 22 versions & 1 rubygems

Version Path
blacklight-spotlight-0.18.0 spec/features/dashboard_spec.rb
blacklight-spotlight-0.17.1 spec/features/dashboard_spec.rb
blacklight-spotlight-0.17.0 spec/features/dashboard_spec.rb
blacklight-spotlight-0.16.0 spec/features/dashboard_spec.rb
blacklight-spotlight-0.15.0 spec/features/dashboard_spec.rb
blacklight-spotlight-0.14.2 spec/features/dashboard_spec.rb
blacklight-spotlight-0.14.1 spec/features/dashboard_spec.rb
blacklight-spotlight-0.14.0 spec/features/dashboard_spec.rb
blacklight-spotlight-0.13.0 spec/features/dashboard_spec.rb
blacklight-spotlight-0.12.1 spec/features/dashboard_spec.rb
blacklight-spotlight-0.12.0 spec/features/dashboard_spec.rb
blacklight-spotlight-0.11.0 spec/features/dashboard_spec.rb
blacklight-spotlight-0.10.3 spec/features/dashboard_spec.rb
blacklight-spotlight-0.10.2 spec/features/dashboard_spec.rb
blacklight-spotlight-0.10.1 spec/features/dashboard_spec.rb
blacklight-spotlight-0.10.0 spec/features/dashboard_spec.rb
blacklight-spotlight-0.9.2 spec/features/dashboard_spec.rb
blacklight-spotlight-0.9.1 spec/features/dashboard_spec.rb
blacklight-spotlight-0.9.0 spec/features/dashboard_spec.rb
blacklight-spotlight-0.8.2 spec/features/dashboard_spec.rb