Sha256: 85ee82279a0e1a4f245bdc923cf03f74faf941ed29a4ae1cbba895a447656a1b
Contents?: true
Size: 840 Bytes
Versions: 2
Compression:
Stored size: 840 Bytes
Contents
# frozen_string_literal: true feature 'Reindex Monitor', js: true, default_max_wait_time: 10 do let(:resources) do [FactoryBot.create(:resource)] end let(:exhibit) { FactoryBot.create(:exhibit, resources: resources) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit: exhibit) } before do FactoryBot.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('.card.index-status', visible: true) within('.card.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blacklight-spotlight-3.0.0.alpha.2 | spec/features/javascript/reindex_monitor_spec.rb |
blacklight-spotlight-3.0.0.alpha.1 | spec/features/javascript/reindex_monitor_spec.rb |