Sha256: 7d94a0f656dd73f56e54e6f29c94d6aa1662020b4d5bc2e5526b42d9ac91cdd0

Contents?: true

Size: 990 Bytes

Versions: 33

Compression:

Stored size: 990 Bytes

Contents

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

33 entries across 33 versions & 1 rubygems

Version Path
blacklight-spotlight-1.0.0 spec/features/dashboard_spec.rb
blacklight-spotlight-1.0.0.alpha2 spec/features/dashboard_spec.rb
blacklight-spotlight-1.0.0.alpha1 spec/features/dashboard_spec.rb
blacklight-spotlight-0.34.1 spec/features/dashboard_spec.rb
blacklight-spotlight-0.34.0 spec/features/dashboard_spec.rb
blacklight-spotlight-0.33.3 spec/features/dashboard_spec.rb
blacklight-spotlight-0.33.2 spec/features/dashboard_spec.rb
blacklight-spotlight-0.33.1 spec/features/dashboard_spec.rb
blacklight-spotlight-0.33.0 spec/features/dashboard_spec.rb
blacklight-spotlight-0.32.0 spec/features/dashboard_spec.rb
blacklight-spotlight-0.31.0 spec/features/dashboard_spec.rb
blacklight-spotlight-0.30.0 spec/features/dashboard_spec.rb
blacklight-spotlight-0.29.1 spec/features/dashboard_spec.rb
blacklight-spotlight-0.29.0 spec/features/dashboard_spec.rb
blacklight-spotlight-0.28.3 spec/features/dashboard_spec.rb
blacklight-spotlight-0.28.2 spec/features/dashboard_spec.rb
blacklight-spotlight-0.28.1 spec/features/dashboard_spec.rb
blacklight-spotlight-0.28.0 spec/features/dashboard_spec.rb
blacklight-spotlight-0.27.0 spec/features/dashboard_spec.rb
blacklight-spotlight-0.26.1 spec/features/dashboard_spec.rb