Sha256: 8c319dcbc695bc0adacd2ee531923d200ae4dc0886ed9e83e5c4044aba4e085f

Contents?: true

Size: 577 Bytes

Versions: 89

Compression:

Stored size: 577 Bytes

Contents

# frozen_string_literal: true

RSpec.describe "Search Sort" do
  it "sorts on facet results with no search terms" do
    visit root_path
    within "#facet-language_ssim" do
      click_link 'English'
    end
    expect(page).to have_content 'Sort by relevance'
    click_link 'title'
    expect(page).to have_content 'Sort by title'
  end

  it "sorts on search" do
    visit root_path
    fill_in "q", with: 'bod'
    click_button 'search'
    expect(page).to have_content 'Sort by relevance'
    click_link 'title'
    expect(page).to have_content 'Sort by title'
  end
end

Version data entries

89 entries across 89 versions & 2 rubygems

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