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

pulibrary / pdc_discovery / 5d1afa5e-ff59-441c-b96e-da35778a7346

03 Nov 2023 06:50PM UTC coverage: 93.921% (-3.0%) from 96.965%
5d1afa5e-ff59-441c-b96e-da35778a7346

push

circleci

carolyncole
Add a failing test for the version footer behavoir

7 of 12 new or added lines in 1 file covered. (58.33%)

80 existing lines in 13 files now uncovered.

2611 of 2780 relevant lines covered (93.92%)

178.44 hits per line

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

88.89
/spec/system/banner_spec.rb
1
# frozen_string_literal: true
2

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

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

15
  it "has the banner on the homepage" do
1✔
16
    visit '/'
1✔
17
    expect(page).to have_css '#banner'
1✔
18
  end
19

20
  it "has the banner on a static page" do
1✔
21
    visit '/about'
1✔
22
    expect(page).to have_css '#banner'
1✔
23
  end
24

25
  it "has the banner on the search results page" do
1✔
26
    visit '/?search_field=all_fields&q=test'
1✔
27
    expect(page).to have_css '#banner'
1✔
28
  end
29

30
  it "has the banner on a single record page" do
1✔
31
    visit '/catalog/78348'
1✔
32
    expect(page).to have_css '#banner'
1✔
33
  end
34

35
  it "renders html tags in the banner" do
1✔
36
    visit '/catalog/78348'
1✔
37
    expect(page).not_to have_content "<i>test</i>"
1✔
38
    expect(page.find("div#banner h1 i").text).to eq "test"
1✔
UNCOV
39
    expect(page).not_to have_content "<b>test</b>"
×
UNCOV
40
    expect(page.find("div#banner p b").text).to eq "test"
×
UNCOV
41
    expect(page).to have_link "message", href: "mailto:fake@princeton.edu"
×
42
  end
43
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