# SCM-483 - Filter in Catalogue ## Test Scenarios #### Test Scenario 1 ```gherkin Scenario: As an Admin, I want to access Filter Menu Page Given the user has logged in to SSC And the user is on Catalogue List Page When the user clicks Filter button Then show Filter Menu Page ``` #### Test Scenario 2 ```gherkin Scenario Outline: As an Admin, I want to filter based on status types Given the user has logged in to SSC And the user is on Filter Menu Page When the user checks <statusType> And the user clicks Apply button Then show filter result based on <statusType> Examples: | statusType | | ---------- | | active | | inactive | | all | ``` #### Test Scenario 3 ```gherkin Scenario Outline: As an Admin, I want to filter based on catalogue type Given the user has logged in to SSC And the user is on Filter Menu Page When the user checks <catalogueType> And the user clicks Apply button Then show filter result based on <catalogueType> Examples: | catalogueType | | ------------- | | reguler | | bonus | ``` #### Test Scenario 4 ```gherkin Scenario: As an Admin, I should be able to search for a Brand in Brand Field Given the user has logged in SSC And the user is on Filter Catalogue Page When the user clicks Brand input Field And the user input brand <A> Then show search result for brand <A> ``` #### Test Scenario 5 ```gherkin Scenario: As an Admin, I want to choose a Brand Given the user has logged in SSC And the user is on Filter Catalogue Page When the user clicks Brand Input Field And the user choose brand <A> Then show brand <A> as chosen Brand in Brand Input Field ``` #### Test Scenario 6 ```gherkin Scenario: As an Admin, I shouldn't be able to choose more than 1 Brand Given the user has logged in SSC And the user has chosen brand <A> When the user choose brand <B> Then doesn't add brand <B> as chosen Brand And show brand <A> as chosen Brand in Brand Input Field ``` #### Test Scenario 7 ```gherkin Scenario: As an Admin, I should be able to search for a Faktur Given the user has logged in SSC And the user is on Filter Catalogue Page When the user clicks Faktur Input Field And the user input faktur <A> Then show search result for faktur <A> ``` #### Test Scenario 8 ```gherkin Scenario: As an Admin, I want to choose a Faktur Given the user has logged in SSC And the user is on Filter Catalogue Page When the user clicks Faktur Input Field And the user choose faktur <A> Then show faktur <A> as chosen Faktur in Faktur Input Field ``` #### Test Scenario 9 ```gherkin Scenario: As an Admin, I shouldn't be able to choose more than 1 Faktur Given the user has logged in SSC And the user has chosen faktur <A> When the user choose faktur <B> Then doesn't add faktur <B> as chosen Faktur And show faktur <A> as chosen Faktur in Faktur Input Field ``` #### Test Scenario 10 ```gherkin Scenario Outline: As an Admin, I shouldn't be able to filter with wrong Minimum Price & Maximum Price Given the user has logged in SSC And the user is on Filter Catalogue Page When the user input <wrongType> for Minimum Price & Maximum Price And the user clicks Apply button Then show error message Examples: | wrongType | | ---------- | | alphabet | | symbolIcon | ``` #### Test Scenario 11 ```gherkin Scenario: As an Admin, I shouldn't be able to filter with minimum price > maximum price Given the user has logged in SSC And the user is on Filter Catalogue Page When the user input Minimum Price > Maximum Price And the user clicks Apply button Then show error message ``` #### Test Scenario 12 ```gherkin Scenario: As an Admin, I want to filter catalogue list Given the user has logged in SSC And the user is on Filter Catalogue Page When the user input all fields correctly And the user clicks Apply button Then show result filtered ``` ###### tags: `Sprint 25` `Ecommerce 1` `SSC`