Sha256: 1a1e4f7eb111f0f6c8731e85eadd5268d2fbc92979236fd27b44512168d83d92

Contents?: true

Size: 567 Bytes

Versions: 7

Compression:

Stored size: 567 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_on 'English'
    end
    expect(page).to have_content 'Sort by relevance'
    click_on 'title'
    expect(page).to have_content 'Sort by title'
  end

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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
blacklight-8.6.1 spec/features/search_sort_spec.rb
blacklight-8.6.0 spec/features/search_sort_spec.rb
blacklight-8.5.1 spec/features/search_sort_spec.rb
blacklight-8.5.0 spec/features/search_sort_spec.rb
blacklight-8.4.0 spec/features/search_sort_spec.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/spec/features/search_sort_spec.rb
blacklight-8.3.0 spec/features/search_sort_spec.rb