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

pulibrary / pdc_discovery / 77aad3ef-33fa-40bd-8e08-da5fca8b87c0

17 Aug 2023 12:03PM UTC coverage: 87.863% (-8.7%) from 96.544%
77aad3ef-33fa-40bd-8e08-da5fca8b87c0

Pull #478

circleci

carolyncole
Switching to selenium to fix CI
Pull Request #478: Switching to selenium to fix CI

2085 of 2373 relevant lines covered (87.86%)

182.95 hits per line

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

78.95
/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'
1✔
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'
1✔
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'
1✔
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