The goal of this story is to provide a way for the end user to see the applied filters for a given search.
Given a Page Creator has previously created a collection pages and a user is using them on a Page
Applied Filter Configuration (Edit mode)
When the Page Creator selects Applied Filter fragment placed on a Page
Then the Page Creator can :
- have a visual feedback of how this will look like with a message "No filters applied" (default text in Edit/View mode)
- a message in the configuration shows "The applied filters will only be shown in a preview or published page"
When the Page creator has placed an Applied filter fragment on a page
Then the Page Creator can choose the Target Collection (for which the applied filters apply)
Applying Filters (Preview and Published mode)
When the end users applies multiple filters
Then the Applied Filter fragment shows:
- The filters applied for any filter types: categories filter, Text filter, etc.
When the number of applied filters reaches the its container width
Then the applied filters show in a second line
When there are too many applied filters (more than 2 lines)
Then the applied filter should "show more link"
When clicking on clear filter
Then all the filters for the target collection(s) should reset
NOTE: Ideally the applied filter template should ideally be extendable
|Test Scenarios||Test Strategy||Kind of test||Is it covered by FrontEnd ? (JS-Unit)||Is it covered by BackEnd ? (unit or integration)||Could it be covered by POSHI?|
|The page creator could see the alert info in the General panel of Applied Filters fragment||High||Manual||No||No||Yes|
|The Applied Filters fragment could show applied category and keywords filters in Preview and View mode||Critial||Manual||No||No||Yes|
|The Applied Filters will show the second line and Show More button when there are lots of applied filters||High||Manual||No||No||Yes|
|The page creator could use Clear Filters to reset the filters||Critial||Manual||No||No||Yes|