• 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.16
/spec/system/globus_item_metadata_spec.rb
1
# frozen_string_literal: true
2

3
describe 'Item page with Globus download integration', type: :system, js: true do
1✔
4
  let(:globus_fixtures) { File.read(File.join(fixture_path, 'globus_items.xml')) }
4✔
5
  let(:indexer) do
1✔
6
    DspaceIndexer.new(globus_fixtures)
3✔
7
  end
8

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

15
  it "displays the Globus download button when the integration is present" do
1✔
16
    visit '/catalog/88163'
×
17
    expect(page).to have_content "Download from Globus"
×
18
  end
19

20
  it "does not display the Globus download button when the integration is not present" do
1✔
21
    visit '/catalog/6517'
×
22
    expect(page).not_to have_content "Download from Globus"
×
23
  end
24

25
  context "when there are no files in DataSpace" do
1✔
26
    it "displays the Globus button but not the file listing" do
1✔
27
      visit '/catalog/101010'
×
28
      expect(page).to have_content "Download from Globus"
×
29
      expect(page).not_to have_content "Showing 0 to 0 of 0 entries"
×
30
    end
31
  end
32
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