---
# System prepended metadata

title: EC1-393 - Adjustment API from Price Segmentation to Setting Segmentation
tags: [SSC, Ecommerce 1, Sprint 24]

---

# EC1-393 - Adjustment API from Price Segmentation to Setting Segmentation

## Test Scenarios
#### Test Scenario 1
```gherkin
Scenario: As an Admin, I want to delete a segmentation affiliation
    Given the user has logged in as Admin
    When the user input warehouse catalogue segmentation <A> in param
        And the user hit delete catalogue-segmentation endpoint
    Then catalogue segmentation <A> successfully deleted
```

#### Test Scenario 2
```gherkin
Scenario: As an Admin, I want to change catalogue price segmentation
    Given the user has logged in as Admin
    When the user input price amount <A> for catalogue segmentation <A>
        And the user hit patch edit price endpoint
    Then catalogue segmentation <A> price changed to <A>
```

#### Test Scenario 3
```gherkin
Scenario: As an Admin, I shouldn't be able to change catalogue price segmentation with blank price
    Given the user has logged in as Admin
    When the user input blank for price object field
        And the user hit patch edit price endpoint
    Then show error message
```

#### Test Scenario 4
```gherkin
Scenario: As an Admin, I shouldn't be able to change catalogue price segmentation with wrong price
    Given the user has logged in as Admin
    When the user input wrong format value for price object field
        And the user hit patch edit price endpoint
    Then show error message
```

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