Sha256: d288729a35d41e6dc28a4a3c3630e124656496dd8b58b7f5cfd7b3c6f5ce87d5

Contents?: true

Size: 528 Bytes

Versions: 11

Compression:

Stored size: 528 Bytes

Contents

require 'spec_helper'

describe "Search Sort" do
  it "should sort on facet results with no search terms" do
    visit root_path
    click_link 'English'
    expect(page).to have_content 'Sort by relevance'
    click_link 'title'
    expect(page).to have_content 'Sort by title'
  end

  it "should sort 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

11 entries across 11 versions & 1 rubygems

Version Path
blacklight-4.7.0 spec/features/search_sort_spec.rb
blacklight-4.7.0.pre1 spec/features/search_sort_spec.rb
blacklight-4.6.3 spec/features/search_sort_spec.rb
blacklight-4.6.2 spec/features/search_sort_spec.rb
blacklight-4.6.1 spec/features/search_sort_spec.rb
blacklight-4.6.0 spec/features/search_sort_spec.rb
blacklight-4.5.0 spec/features/search_sort_spec.rb
blacklight-4.5.0.rc1 spec/features/search_sort_spec.rb
blacklight-4.4.2 spec/features/search_sort_spec.rb
blacklight-4.4.1 spec/features/search_sort_spec.rb
blacklight-4.4.0 spec/features/search_sort_spec.rb