Sha256: 4227090267f09f382b613d734f270439c2c6d94a0f1094ba0c22b5fce28fbd1d

Contents?: true

Size: 788 Bytes

Versions: 10

Compression:

Stored size: 788 Bytes

Contents

feature 'Reindex Monitor', js: true do
  let(:resources) do
    [FactoryGirl.create(:resource)]
  end
  let(:exhibit) { FactoryGirl.create(:exhibit, resources: resources) }
  let(:exhibit_curator) { FactoryGirl.create(:exhibit_curator, exhibit: exhibit) }

  before do
    FactoryGirl.create(:in_progress_reindexing_log_entry, exhibit: exhibit, items_reindexed_estimate: 5)
    login_as exhibit_curator
    visit spotlight.admin_exhibit_catalog_path(exhibit)
  end

  it 'is rendered on the item admin page' do
    expect(page).to have_css('.panel.index-status', visible: true)
    within('.panel.index-status') do
      expect(page).to have_css('p', text: /Began reindexing a total of \d+ items/)
      expect(page).to have_css('p', text: /Reindexed \d+ of \d+ items/)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
blacklight-spotlight-1.0.0 spec/features/javascript/reindex_monitor_spec.rb
blacklight-spotlight-1.0.0.alpha2 spec/features/javascript/reindex_monitor_spec.rb
blacklight-spotlight-1.0.0.alpha1 spec/features/javascript/reindex_monitor_spec.rb
blacklight-spotlight-0.34.1 spec/features/javascript/reindex_monitor_spec.rb
blacklight-spotlight-0.34.0 spec/features/javascript/reindex_monitor_spec.rb
blacklight-spotlight-0.33.3 spec/features/javascript/reindex_monitor_spec.rb
blacklight-spotlight-0.33.2 spec/features/javascript/reindex_monitor_spec.rb
blacklight-spotlight-0.33.1 spec/features/javascript/reindex_monitor_spec.rb
blacklight-spotlight-0.33.0 spec/features/javascript/reindex_monitor_spec.rb
blacklight-spotlight-0.32.0 spec/features/javascript/reindex_monitor_spec.rb