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

pulibrary / pdc_discovery / d4e0f429-48ab-46c0-b837-27bacddd2a41

24 Apr 2024 06:43PM UTC coverage: 92.63% (-4.4%) from 97.039%
d4e0f429-48ab-46c0-b837-27bacddd2a41

Pull #614

circleci

leefaisonr
Remove firefox from ci

Co-authored-by: Bess Sadler <bess@users.noreply.github.com>
Pull Request #614: Remove firefox from ci

2878 of 3107 relevant lines covered (92.63%)

495.74 hits per line

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

84.62
/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 }
13✔
6
  let(:indexer) do
1✔
7
    DspaceIndexer.new(community_fetch_with_expanded_metadata)
12✔
8
  end
9

10
  before do
1✔
11
    Blacklight.default_index.connection.delete_by_query("*:*")
12✔
12
    Blacklight.default_index.connection.commit
12✔
13
    indexer.index
12✔
14
    stub_request(:get, "https://github.com/mozilla/geckodriver/releases/latest").with(
12✔
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 "/"
3✔
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"
3✔
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='
3✔
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'
3✔
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