• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / pdc_discovery / 529bb1cf-d0bf-4901-97c6-12679aea8117

17 Aug 2023 01:30PM UTC coverage: 90.265% (-6.3%) from 96.544%
529bb1cf-d0bf-4901-97c6-12679aea8117

Pull #478

circleci

carolyncole
Updates to css to fix tests after bundle update
Also ran rubocop -A && Prettier
Pull Request #478: Switching to selenium to fix CI

2 of 2 new or added lines in 2 files covered. (100.0%)

2142 of 2373 relevant lines covered (90.27%)

93.35 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

63.64
/spec/system/sitemap_spec.rb
1
# frozen_string_literal: true
2

3
RSpec.describe 'Dynamic Sitemap', type: :system, js: false do
1✔
4
  let(:globus_fixtures) { File.read(File.join(fixture_path, 'globus_items.xml')) }
5✔
5
  let(:indexer) do
1✔
6
    DspaceIndexer.new(globus_fixtures)
4✔
7
  end
8

9
  before do
1✔
10
    Blacklight.default_index.connection.delete_by_query("*:*")
4✔
11
    Blacklight.default_index.connection.commit
4✔
12
    indexer.index
4✔
13
  end
14

15
  context 'index' do
1✔
16
    it 'renders XML with a root element' do
1✔
17
      visit '/sitemap#index'
×
18
      expect(page).to have_xpath('//sitemapindex')
×
19
    end
20
    it 'renders at least 16 <sitemap> elements' do
1✔
21
      visit blacklight_dynamic_sitemap.sitemap_index_path
×
22
      expect(page).to have_xpath('//sitemap', count: 16)
×
23
    end
24
  end
25

26
  context 'show' do
1✔
27
    it 'renders XML with a root element' do
1✔
28
      visit blacklight_dynamic_sitemap.sitemap_path('1')
×
29
      expect(page).to have_xpath('//urlset')
×
30
    end
31
    it 'renders <url> elements' do
1✔
32
      visit blacklight_dynamic_sitemap.sitemap_path('1')
×
33
      expect(page).to have_xpath('//url', count: 1)
×
34
    end
35
  end
36
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc