# E1AM-161 - Portfolio-Warehouse restriction > PRD : https://docs.google.com/document/d/1DqF3EdSZaKVndoAbD5uVkwmRFUEXL0oLn2OfiHmjVAQ/edit?pli=1# ## Test Scenarios #### Test Scenario 1 ```gherkin Scenario: As an Admin, I should be able to see 'Add Direct' & 'Add Group' button Given the user has logged in to SSC And the user is on Sales Management Page When the user clicks 'Portfolio of Store' Then show 'Add Direct' & 'Add Group' button ``` #### Test Scenario 2 ```gherkin Scenario: As an Admin, I should be able to see 'What is this?' wording section Given the user has logged in to SSC And the user is on Sales Management Page When the user clicks 'Portfolio of Store' Then show 'What is this?' wording section ``` #### Test Scenario 3 ```gherkin Scenario: As an Admin, I want to access instruction from 'What is this?' section Given the user has logged in to SSC And the user is on Portfolio of Store Page When the user clicks 'What is this?' wording section Then show 'What is this?' instruction information ``` #### Test Scenario 4 ```gherkin Scenario: As an Admin, I want to access 'Add Direct' portfolio form Given the user has logged in to SSC And the user is on Portfolio of Store Page When the user clicks 'Add Direct' button Then the user redirects to Direct Portfolio Input Page ``` #### Test Scenario 5 ```gherkin Scenario: As an Admin, I shouldn't be able to add Direct portfolio with blank name field Given the user has logged in to SSC And the user is on Direct Portfolio Input Page When the user fill name field with blank Then the user can't click 'Save' button ``` #### Test Scenario 6 ```gherkin Scenario: As an Admin, I shouldn't be able to add Direct portfolio with blank warehouse field Given the user has logged in to SSC And the user is on Direct Portfolio Input Page When the user fill warehouse field with blank Then the user can't click 'Save' button ``` #### Test Scenario 7 ```gherkin Scenario: As an Admin, I should be able to see existing warehouses in warehouse section dropdown Given the user has logged in to SSC And the user is on Direct Portfolio Input Page When the user clicks 'Warehouse' section Then show existing warehouse options in dropdown ``` #### Test Scenario 8 ```gherkin Scenario: As an Admin, I want to choose a warehouse for direct portfolio Given the user has logged in to SSC And the user is on Direct Portfolio Input Page When the user clicks 'Warehouse' section And the user clicks a warehouse Then the warehouse chosen as portfolio's warehouse ``` #### Test Scenario 9 ```gherkin Scenario: As an Admin, I should be able to see existing stores list Given the user has logged in to SSC And the user is on Direct Portfolio Input Page When the user clicks 'Warehouse' section And the user clicks a warehouse Then the warehouse chosen as portfolio's warehouse And show existing store list in 'Find Store' section ``` #### Test Scenario 10 ```gherkin Scenario: As an Admin, I want to choose store(s) for direct portfolio Given the user has logged in to SSC And the user is on Direct Portfolio Input Page And the user has chosen a warehouse When the user clicks a store in Find Store section Then the chosen store listed in 'Your Selection' section ``` #### Test Scenario 11 ```gherkin Scenario: As an Admin, I should be able to save/add new direct store without choosing any store Given the user has logged in to SSC And the user is on Direct Portfolio Input Page And the user has chosen a warehouse When the user doesn't choose a store And the user clicks 'Save' button Then direct store portfolio successfully created ``` #### Test Scenario 12 ```gherkin Scenario: As an Admin, I want to save/add a new direct store portfolio with chosen store(s) Given the user has logged in to SSC And the user is on Direct Portfolio Input Page And the user has chosen a warehouse When the user choose a store And the user clicks 'Save' button Then direct store portfolio successfully created ``` #### Test Scenario 13 ```gherkin Scenario: As an Admin, I want to access 'Add Group' portfolio form Given the user has logged in to SSC And the user is on Portfolio of Store Page When the user clicks 'Add Group' button Then the user redirects to Group Portfolio Input Page ``` #### Test Scenario 14 ```gherkin Scenario: As an Admin, I shouldn't be able to save/add new group portfolio with blank field(s) Given the user has logged in to SSC And the user is on Group Portfolio Input Page When the user fill field(s) with blank Then the user can't click 'Save' button ``` #### Test Scenario 15 ```gherkin Scenario: As an Admin, I should be able to see existing warehouse in warehouse section group form Given the user has logged in to SSC And the user is on Group Portfolio Input Page When the user clicks 'Warehouse' section Then show existing warehouse options in dropdown ``` #### Test Scenario 16 ```gherkin Scenario: As an Admin, I want to choose a warehouse for group portfolio Given the user has logged in to SSC And the user is on Group Portfolio Input Page When the user clicks 'Warehouse' section And the user clicks a warehouse Then the warehouse chosen as portfolio's warehouse ``` #### Test Scenario 17 ```gherkin Scenario: As an Admin, I should be able to see existing Faktur in Faktur section group form Given the user has logged in to SSC And the user is on Group Portfolio Input Page When the user clicks 'Faktur' section Then show existing faktur options in dropdown ``` #### Test Scenario 18 ```gherkin Scenario: As an Admin, I want to choose a Faktur for group portfolio Given the user has logged in to SSC And the user is on Group Portfolio Input Page When the user clicks 'Faktur' section And the user clicks a faktur Then the faktur chosen as portfolio's faktur ``` #### Test Scenario 19 ```gherkin Scenario: As an Admin, I should be able to see Direct Portfolio listed in 'In Portfolio' section Given the user has logged in to SSC And the user is on Group Portfolio Input Page When the user choose a warehouse And the user choose a faktur Then show existing direct portfolio ``` #### Test Scenario 20 ```gherkin Scenario: As an Admin, I want to choose portfolio(s) Given the user has logged in to SSC And the user is on Group Portfolio Input Page And the user has chosen a warehouse And the user has chosen a faktur When the user choose a store/portfolios Then show store/portfolios inn 'Your Selection' section ``` #### Test Scenario 21 ```gherkin Scenario: As an Admin, I should be able to see portfolio listed in 'Out Portfolio' section Given And When Then ``` #### Test Scenario 22 ```gherkin Scenario: As an Admin, I want to add/create new group portfolio Given And When Then ``` #### Test Scenario 23 ```gherkin Scenario: Given And When Then ``` #### Test Scenario 24 ```gherkin Scenario: As a Sales, I want to create new store with no existing direct portfolio Given And When Then ``` #### Test Scenario 25 ```gherkin Scenario: Given And When Then ``` #### Test Scenario 26 ```gherkin Scenario: SR Assignment Given And When Then ``` #### Test Scenario 27 ```gherkin Scenario: Popup Edit Clear All in Portfolio Form? Given And When Then ``` ###### tags: `Sprint 20` `Ecommerce 1` `SSC`