Sha256: 788753a9e042a6ada550d72f0e50c898b80b608ee4fb4f6488cb20c1d5a998d9

Contents?: true

Size: 753 Bytes

Versions: 7

Compression:

Stored size: 753 Bytes

Contents

require 'spec_helper'

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

  before do
    login_as exhibit_curator
    visit spotlight.admin_exhibit_catalog_index_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

7 entries across 7 versions & 1 rubygems

Version Path
blacklight-spotlight-0.17.1 spec/features/javascript/reindex_monitor_spec.rb
blacklight-spotlight-0.17.0 spec/features/javascript/reindex_monitor_spec.rb
blacklight-spotlight-0.16.0 spec/features/javascript/reindex_monitor_spec.rb
blacklight-spotlight-0.15.0 spec/features/javascript/reindex_monitor_spec.rb
blacklight-spotlight-0.14.2 spec/features/javascript/reindex_monitor_spec.rb
blacklight-spotlight-0.14.1 spec/features/javascript/reindex_monitor_spec.rb
blacklight-spotlight-0.14.0 spec/features/javascript/reindex_monitor_spec.rb