Logo: Relish

  1. Sign in

Project: Blacklight

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

Scenarios
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 select "title" from "sort"
And
I press "sort results"
Then
I should see "Sort by"
And
I should see select list "select#sort" with "title" selected
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 select "title" from "sort"
And
I press "sort results"
Then
I should see "Sort by"
And
I should see select list "select#search_field" with "Title" selected
And
I should see select list "select#sort" with "title" selected

Last published about 5 years ago by jronallo.