---
# System prepended metadata

title: EC1-384 - Adjustment Design & Add Component Segmentation in SSC
tags: [SSC, Ecommerce 1, Sprint 24]

---

# EC1-384 - Adjustment Design & Add Component Segmentation in SSC


## Test Scenarios
#### Test Scenario 1
```gherkin
Scenario Outline: As an Admin, I shouldn't be able to create SKU with blank mandatory fields
    Given the user has logged in as Admin
        And the user is on Add SKU Page
    When the user input <inputField> with blank
    Then show Save button as disabled button
    Examples:
    | inputField            |
    | --------------------- |
    | productId             |
    | productName           |
    | UOM                   |
    | productTag            |
    | retailBuyingPrice     |
    | catalogueImage        |
    | weightPcs             |
    | dimensionPcs          |
    | qtyPerBox             |
    | warehouseSegmentation |
```

#### Test Scenario 2
```gherkin
Scenario: As an Admin, I should be able to see Brand option dropdown
    Given the user has logged in as Admin
        And the user is on Add SKU Page
    When the user clicks Brand field
    Then show Brand option dropdown
```

#### Test Scenario 3
```gherkin
Scenario: As an Admin, I want to choose a Brand
    Given the user has logged in as Admin
        And the user is on Add SKU Page
        And the user has opened Brand option dropdown
    When the user choose Brand <A>
    Then brand <A> chosen in Brand input field
```

#### Test Scenario 4
```gherkin
Scenario: As an Admin, I want to edit Category Section
    Given the user has logged in as Admin
        And the user is on Add SKU Page
        And the user has chosen category <A>
    When the user clicks Edit icon in category section
        And the user choose category <B>
        And the user clicks OK button
    Then show category <B> as chosen category
```

#### Test Scenario 5
```gherkin
Scenario: As an Admin, I should be able to see UOM option dropdown
    Given the user has logged in as Admin
        And the user is on Add SKU Page
    When the user clicks UOM field
    Then show UOM option dropdown
```

#### Test Scenario 6
```gherkin
Scenario: As an Admin, I want to choose UOM
    Given the user has logged in as Admin
        And the user is on Add SKU Page
        And the user has opened UOM option dropdown
    When the user choose UOM type <A>
    Then show UOM <A> as chosen UOM
```

#### Test Scenario 7
```gherkin
Scenario: As an Admin, I want to upload an image
    Given the user has logged in as Admin
        And the user is on Add SKU Page
    When the user clicks Add Image Button
        And the user choose image <A>
        And the user clicks Open button
    Then image <A> automatically uploaded
        And show image <A> as SKUs image
```

#### Test Scenario 8
```gherkin
Scenario Outline: As an Admin, I shouldn't be able to input wrong format value in fields
    Given the user has logged in as Admin
        And the user is on Add SKU Page
    When the user input <inputField> with <wrongValue>
    Then show error message
    Examples:
    | inputField        | wrongValue |
    | ----------------- | ---------- |
    | retailBuyingPrice | alphabet   |
    | weightPcs         | alphabet   |
    | dimensionPcs      | alphabet   |
    | qtyBox            | alphabet   |
```

#### Test Scenario 9
```gherkin
Scenario Outline: As an Admin, I should be able to see segmentation store dropdown options
    Given the user has logged in as Admin
        And the user is on Add SKU Page
    When the user clicks <segmentationField>
    Then show pop-up menu for the chosen segmentation
    Examples:
    | segmentationField |
    | ----------------- |
    | warehouse         |
    | storeType         |
    | storeGroup        |
    | storeChannel      |
    | storeCluster      |
```

#### Test Scenario 10
```gherkin
Scenario Outline: As an Admin, I want to choose store's segmentation
    Given the user has logged in as Admin
        And the user is on Add SKU Page
        And the user has opened segmentation store options menu
    When the user choose a segmentation for <segmentationField>
    Then show chosen segmentation in <segmentationField|
    Examples:
    | segmentationField |
    | ----------------- |
    | warehouse         |
    | storeType         |
    | storeGroup        |
    | storeChannel      |
    | storeCluster      |
```

#### Test Scenario 11
```gherkin
Scenario: As an Admin, I shouldn't be able to create SKU with duplicate product ID
    Given the user has logged in as Admin
        And the user is on Add SKU Page
        And productID <A> already exist
    When the user input productID <A> to productID input field
    Then show error message
```

#### Test Scenario 12
```gherkin
Scenario: As an Admin, I want to add SKU with bonus SKU type
    Given the user has logged in as Admin
        And the user is on Add SKU Page
    When the user choose Bonus in visibility Type
        And the user input all other fields
        And the user clicks Save
    Then SKU successfully created as Bonus SKU
```

#### Test Scenario 13
```gherkin
Scenario: As an Admin, I want to add SKU with reguler type
    Given the user has logged in as Admin
        And the user is on Add SKU Page
    When the user choose Reguler in visibility Type
        And the user input all other fields
        And the user clicks Save
    Then SKU successfully created as Reguler SKU
```

#### Test Scenario 14
```gherkin
Scenario: As an Admin, I want to add SKU with new store's segmentation type
    Given the user has logged in as Admin
        And the user is on Add SKU Page
        And segmentation <A> currently doesnt exist in DB
    When the user choose segmentation <A>
        And the user input all other fields
        And the user clicks Save
    Then SKU successfully created
        And automatically create segmentation <A> as new segmentation Type
        And automatically assign created SKU to segmentation <A>
```

#### Test Scenario 15
```gherkin
Scenario: As an Admin, I want to add SKU with existing store's segmentation type
    Given the user has logged in as Admin
        And the user is on Add SKU Page
        And segmentation <A> already exist in DB
    When the user choose segmentation <A>
        And the user input all other fields
        And the user clicks Save
    Then SKU successfully created
        And automatically assign created SKU to segmentation <A>
```

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