Contents

Search Sort

@search_sort

In order to sort searches As a user I want select a sort field and have the search results reordered by that field

Scenario: Sort on facet results with no search terms

  • Given I am on the home page
  • When I follow "English"
  • Then I should see "Sort by"
  • When I sort by "title"
  • Then I should see "Sort by"
  • And I should see the sort list with "title" selected

Scenario: Sort on result set from fielded search

  • Given I am on the home page
  • And I fill in "q" with "bod"
  • And I select "Title" from "search_field"
  • And I press "search"
  • Then I should see "Sort by"
  • When I sort by "title"
  • Then I should see "Sort by"
  • And I should see select list "select#search_field" with "Title" selected
  • And I should see the sort list with "title" selected

Source: features/search_sort.feature at commit 64324a63, Blacklight (Apache-2.0 license).