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

pulibrary / pdc_discovery / 5af13607-7741-41ac-b110-c94c8a3ee0f0

pending completion
5af13607-7741-41ac-b110-c94c8a3ee0f0

Pull #441

circleci

hectorcorrea
Better error handling
Pull Request #441: Indexing to a new collection

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

1816 of 2220 relevant lines covered (81.8%)

95.45 hits per line

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

65.38
/spec/system/accessibility_spec.rb
1
# frozen_string_literal: true
2
require "rails_helper"
1✔
3

4
describe "accessibility", type: :system, js: true do
1✔
5
  let(:community_fetch_with_expanded_metadata) { file_fixture("single_item.xml").read }
5✔
6
  let(:indexer) do
1✔
7
    DspaceIndexer.new(community_fetch_with_expanded_metadata)
4✔
8
  end
9

10
  before do
1✔
11
    Blacklight.default_index.connection.delete_by_query("*:*")
4✔
12
    Blacklight.default_index.connection.commit
4✔
13
    indexer.index
4✔
14
    stub_request(:get, "https://github.com/mozilla/geckodriver/releases/latest").with(
×
15
      headers: {
16
        'Accept' => '*/*',
17
        'Accept-Encoding' => 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',
18
        'Host' => 'github.com',
19
        'User-Agent' => 'Ruby'
20
      }
21
    )
22
  end
23
  context "homepage" do
1✔
24
    it "complies with WCAG 2.0 AA and Section 508" do
1✔
25
      visit "/"
×
26
      expect(page).to be_axe_clean
×
27
        .according_to(:wcag2a, :wcag2aa, :wcag21a, :wcag21aa, :section508)
28
        .skipping(:'color-contrast') # false positives
29
        .excluding(".tt-hint") # Issue is in typeahead.js library
30
    end
31
  end
32

33
  context "about page" do
1✔
34
    it "complies with WCAG 2.0 AA and Section 508" do
1✔
35
      visit "/about"
×
36
      expect(page).to be_axe_clean
×
37
        .according_to(:wcag2a, :wcag2aa, :wcag21a, :wcag21aa, :section508)
38
        .skipping(:'color-contrast') # false positives
39
        .excluding(".tt-hint") # Issue is in typeahead.js library
40
    end
41
  end
42

43
  context "search results page" do
1✔
44
    it "complies with WCAG 2.0 AA and Section 508" do
1✔
45
      visit '/?search_field=all_fields&q='
×
46
      expect(page).to be_axe_clean
×
47
        .according_to(:wcag2a, :wcag2aa, :wcag21a, :wcag21aa, :section508)
48
        .skipping(:'color-contrast') # false positives
49
        .excluding(".tt-hint") # Issue is in typeahead.js library
50
    end
51
  end
52

53
  context "single record page page" do
1✔
54
    it "complies with WCAG 2.0 AA and Section 508" do
1✔
55
      visit '/catalog/78348'
×
56
      expect(page).to be_axe_clean
×
57
        .according_to(:wcag2a, :wcag2aa, :wcag21a, :wcag21aa, :section508)
58
        .skipping(:'color-contrast') # false positives
59
        .excluding(".tt-hint") # Issue is in typeahead.js library
60
    end
61
  end
62
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