pressbooks / pressbooks-book-directory-fe

A Vue.js frontend for the Pressbooks Directory
0 stars 1 forks source link

Create remaining facet filters #222

Closed SteelWagstaff closed 3 years ago

SteelWagstaff commented 3 years ago

Allow facet searching is separate task: https://github.com/pressbooks/pressbooks-book-directory-fe/issues/226

Not needed at this time: Based on, Storage size

richard015ar commented 3 years ago

Note about behavior: When we applied an specific filter, then all the filter must be updated with the new available filters according to the current one applied.

Scenario Outline: Applying filters and updating quantities Given I am a regular user AND There are only 10 books available where <Qty> books is in <Language> and has <License> license, AND the filters list with its quantities indicates CC BY (6) / CC BY-NC (4) / EN (8) / ES (2):

License    | Language      | Qty
-----------+---------------+------
CC BY      | EN            | 5 
CC BY      | ES            | 1
CC BY-NC   | EN            | 3
CC BY-NC   | ES            | 1       

When I apply <LicenseFilter> License filter Then I will see the Languages filter updated as: <LanguageFilters>

LicenseFilter | LanguageFilters
--------------+----------------
CC BY         | EN (5) / ES (1)    
CC BY-NC      | EN (3) / ES (1)    
richard015ar commented 3 years ago

@SteelWagstaff for this task only the "Last Updated" filter is needed for testing.