---
# System prepended metadata

title: EC1-420 - New Module Catalogue Segmentation Add
tags: [SSC, Ecommerce 1, Sprint 24]

---

# EC1-420 - New Module Catalogue Segmentation Add

## Test Scenarios
#### Test Scenario 1
```gherkin
Scenario: As an Admin, I want to access Add Catalogue Segmentation Page
    Given the user has logged in as Admin
        And the user is on Manage Catalogue Page
    When the user clicks Add button
    Then the user redirects to Add Catalogue Segmentation Page
```

#### Test Scenario 2
```gherkin
Scenario Outline: As an Admin, I shouldn't be able to add catalogue with blank mandatory field
    Given the user has logged in as Admin
        And the user is on Add Catalogue Page
    When the user input <inputField> with blank value
    Then show Save button as disabled button
    Examples:
    | inputField       |
    | ---------------- |
    | segmentationName |
    | warehouse        |
```

#### Test Scenario 3
```gherkin
Scenario: As an Admin, I want to click warehouse option dropdown
    Given the user has logged in as Admin
        And the user is on Add Catalogue Page
    When the user clicks Warehouse field
    Then show warehouse option dropdown
```

#### Test Scenario 4
```gherkin
Scenario: As an Admin, I want to choose a warehouse
    Given the user has logged in as Admin
        And the user is on Add Catalogue Page
    When the user clicks Warehouse field
        And the user choose a warehouse
    Then show chosen warehouse as value in Warehouse field
```

#### Test Scenario 5
```gherkin
Scenario: As an Admin, I should be able to see catalogue loaded based on chosen warehouse
    Given the user has logged in as Admin
        And the user is on Add Catalogue Page
    When the user choose warehouse <A>
    Then show catalogue loaded based on warehouse <A>
```

#### Test Scenario 6
```gherkin
Scenario: As an Admin, I shouldn't be able to assign SKU in existing segmentation type
    Given the user has logged in as Admin
        And the user is on Add Catalogue Page
        And catalogue <A> has segmentation type <A>
    When the user input segmentation type <A>
        And the user assign SKUs
        And the user clicks Save button
    Then the user failed to create catalogue segmentation
        And show error messages for duplicated segmentation field
```

#### Test Scenario 7
```gherkin
Scenario: As an Admin, I want to assign SKU & create new segmentation type
    Given the user has logged in as Admin
        And the user is on Add Catalogue Page
    When the user input new segmentation type
        And the user assign SKUs
        And the user clicks Save button
    Then successfully created new segmentation
```

#### Test Scenario 8
```gherkin
Scenario: As an Admin, I want to mass assign SKU to a segmentation type
    Given the user has logged in as Admin
        And the user is on Add Catalogue Page
    When the user input new segmentation type
        And the user mass assign SKUs
        And the user clicks Save button
    Then successfully created new segmentation
        And all SKUs assigned to the segmentation
```

###### tags: `Sprint 24` `Ecommerce 1` `SSC`