Sha256: de8d8d2aecd4520e6d2223aa84f5c0bf769b57287124bc01069a7975ca0ee20f

Contents?: true

Size: 1.45 KB

Versions: 36

Compression:

Stored size: 1.45 KB

Contents

# frozen_string_literal: true

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
  it "does not display 404" do
    visit solr_document_path('this_id_does_not_exist')
    expect(page.driver.status_code).to eq 404
    expect(page).to have_content "The page you were looking for doesn't exist." 
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
blacklight-6.25.0 spec/features/record_view_spec.rb
blacklight-6.24.0 spec/features/record_view_spec.rb
blacklight-6.23.0 spec/features/record_view_spec.rb
blacklight-6.22.0 spec/features/record_view_spec.rb
blacklight-6.21.0 spec/features/record_view_spec.rb
blacklight-6.20.0 spec/features/record_view_spec.rb
blacklight-6.19.2 spec/features/record_view_spec.rb
blacklight-6.19.1 spec/features/record_view_spec.rb
blacklight-6.19.0 spec/features/record_view_spec.rb
blacklight-6.18.0 spec/features/record_view_spec.rb
blacklight-6.17.0 spec/features/record_view_spec.rb
blacklight-6.16.0 spec/features/record_view_spec.rb
blacklight-6.15.0 spec/features/record_view_spec.rb
blacklight-6.14.1 spec/features/record_view_spec.rb
blacklight-6.14.0 spec/features/record_view_spec.rb
blacklight-6.13.0 spec/features/record_view_spec.rb
blacklight-6.12.0 spec/features/record_view_spec.rb
blacklight-6.11.2 spec/features/record_view_spec.rb
blacklight-6.11.1 spec/features/record_view_spec.rb
blacklight-6.11.0 spec/features/record_view_spec.rb