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.4.0 spec/features/search_sort_spec.rb
blacklight-7.3.0 spec/features/search_sort_spec.rb
blacklight-7.2.0 spec/features/search_sort_spec.rb
blacklight-7.1.0 spec/features/search_sort_spec.rb
blacklight-7.1.0.alpha spec/features/search_sort_spec.rb
blacklight-7.0.1 spec/features/search_sort_spec.rb
blacklight-7.0.0 spec/features/search_sort_spec.rb
blacklight-7.0.0.rc2 spec/features/search_sort_spec.rb
blacklight-7.0.0.rc1 spec/features/search_sort_spec.rb