Sha256: 3c9f9f45613d96abbd4036e2ab531b36b870d441e7a051fcc209cf549e33f4ac

Contents?: true

Size: 1.23 KB

Versions: 88

Compression:

Stored size: 1.23 KB

Contents

# frozen_string_literal: true

RSpec.describe "Record View" do
  it "displays a normal record" do
    visit solr_document_path('2007020969')
    expect(page).to have_content "Title:"
    expect(page).to have_content "Strong Medicine speaks"
    expect(page).to have_content "Subtitle:"
    expect(page).to have_content "a Native American elder has her say : an oral history"
    expect(page).to have_content "Author:"
    expect(page).to have_content "Hearth, Amy Hill, 1958-"
    expect(page).to have_content "Format:"
    expect(page).to have_content "Book"
    expect(page).to have_content "Call number:"
    expect(page).to have_content "E99.D2 H437 2008"
    tmp_value = Capybara.ignore_hidden_elements
    Capybara.ignore_hidden_elements = false
    expect(page).to have_selector("link[rel=alternate]")
    Capybara.ignore_hidden_elements = tmp_value
  end

  it "does not display blank titles" do
    visit solr_document_path('2008305903')
    expect(page).not_to have_content "More Information:"
  end

  it "does not display vernacular records" do
    visit solr_document_path('2009373513')
    expect(page).to have_content "次按驟變"
    expect(page).to have_content "林行止"
    expect(page).to have_content "臺北縣板橋市"
  end
end

Version data entries

88 entries across 88 versions & 2 rubygems

Version Path
blacklight-7.40.0 spec/features/record_view_spec.rb
blacklight-7.39.0 spec/features/record_view_spec.rb
blacklight-7.38.0 spec/features/record_view_spec.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/spec/features/record_view_spec.rb
blacklight-8.2.2 spec/features/record_view_spec.rb
blacklight-8.2.1 spec/features/record_view_spec.rb
blacklight-8.2.0 spec/features/record_view_spec.rb
blacklight-7.37.0 spec/features/record_view_spec.rb
blacklight-7.36.2 spec/features/record_view_spec.rb
blacklight-7.36.1 spec/features/record_view_spec.rb
blacklight-7.36.0 spec/features/record_view_spec.rb
blacklight-7.35.0 spec/features/record_view_spec.rb
blacklight-8.1.0 spec/features/record_view_spec.rb
blacklight-7.34.0 spec/features/record_view_spec.rb
blacklight-8.0.1 spec/features/record_view_spec.rb
blacklight-8.0.0 spec/features/record_view_spec.rb
blacklight-8.0.0.beta8 spec/features/record_view_spec.rb
blacklight-8.0.0.beta7 spec/features/record_view_spec.rb
blacklight-8.0.0.beta6 spec/features/record_view_spec.rb
blacklight-8.0.0.beta5 spec/features/record_view_spec.rb