Logo: Relish

  1. Sign in

Project: Blacklight

Search Filters

In order constrain searches
As a user
I want to filter search results via facets on the search page

Scenarios
Given
I am on the home page
When
I follow "Tibetan"
Then
I should see "Displaying all 6 items"
And
I should see the applied filter "Language" with the value "Tibetan (6)"
When
I follow "India"
Then
I should see "Displaying all 2 items"
And
I should see the applied filter "Language" with the value "Tibetan (2)"
And
I should see the applied filter "Region" with the value "India (2)"
Search with no filters applied
When
I am on the home page
And
I fill in "q" with "bod"
And
I press "search"
Then
I should be on "the catalog page"
And
I should see "Displaying all 3 items"
And
I should not see "No Keywords"
And
I should see "You searched for:"
And
I should see "All Fields"
And
I should see "bod"
Search with filters applied
When
I am on the home page
And
I fill in "q" with "history"
And
I press "search"
Then
I should be on "the catalog page"
And
I should see "Displaying all 9 items"
And
I should not see "No Keywords"
And
I should see "You searched for:"
And
I should see "All Fields"
And
I should see "history"
When
I follow "Tibetan"
Then
I should see "Displaying all 2 items"
And
I should see the applied filter "Language" with the value "Tibetan (2)"
And
I should see "All Fields"
And
I should see "history"
When
I follow "2004"
Then
I should see "Displaying 1 item"
And
I should see "You searched for:"
And
I should see the applied filter "Language" with the value "Tibetan (1)"
And
I should see the applied filter "Publication Year" with the value "2004 (1)"
Apply and remove filters
Given
I am on the home page
When
I follow "Tibetan"
And
I should see "Language"
And
I should see "Tibetan (6)"
And
I should see "[remove]"
When
I follow "remove"
Then
I should not see "You searched for:"
And
I should not see "Language: Tibetan [remove]"
And
I should see "Welcome!"
Changing search term should retain filters
When
I am on the home page
And
I fill in "q" with "history"
And
I press "search"
Then
I should be on "the catalog page"
And
I should see "You searched for:"
And
I should see "history"
When
I follow "Tibetan"
Then
I should see "You searched for:"
And
I should see "history"
And
I should see the applied filter "Language" with the value "Tibetan (2)"
When
I follow "2004"
And
I should see "You searched for:"
And
I should see "history"
And
I should see the applied filter "Language" with the value "Tibetan (1)"
And
I should see the applied filter "Publication Year" with the value "2004 (1)"
When
I fill in "q" with "china"
And
I press "search"
Then
I should be on "the catalog page"
And
I should see "All Fields"
And
I should see "china"
And
I should see the applied filter "Language" with the value "Tibetan (1)"
And
I should see the applied filter "Publication Year" with the value "2004 (1)"
Sorting results should retain filters
When
I am on the home page
And
I fill in "q" with "history"
And
I press "search"
Then
I should be on "the catalog page"
And
I should see "You searched for:"
And
I should see "history"
When
I follow "Tibetan"
And
I should see "You searched for:"
And
I should see "history"
And
I should see the applied filter "Language" with the value "Tibetan (2)"
When
I select "title" from "sort"
And
I press "sort results"
Then
I should be on "the catalog page"
And
I should see "You searched for:"
And
I should see "history"
And
I should see the applied filter "Language" with the value "Tibetan (2)"
Changing per page number should retain filters
When
I am on the home page
And
I fill in "q" with "history"
And
I press "search"
Then
I should be on "the catalog page"
And
I should see "You searched for:"
And
I should see "history"
When
I follow "Tibetan"
And
I should see "You searched for:"
And
I should see "All Fields"
And
I should see "history"
And
I should see the applied filter "Language" with the value "Tibetan (2)"
When
I select "20" from "per_page"
And
I press "update"
Then
I should be on "the catalog page"
And
I should see "You searched for:"
And
I should see "history"
And
I should see the applied filter "Language" with the value "Tibetan (2)"

Last published about 5 years ago by jronallo.