---
# System prepended metadata

title: EC1-418 - Edit for visibility SKU
tags: [SSC, Ecommerce 1, Sprint 24]

---

# EC1-418 - Edit for visibility SKU

## Test Scenarios
#### Test Scenario 1
```gherkin
Scenario: As an Admin, I want to access edit page SKU Visibility
    Given the user has logged in as Admin
        And the user is on visiblity section menu page
    When the user clicks edit button
    Then the user redirects to Edit Visibility Page
```

#### Test Scenario 2
```gherkin
Scenario Outline: As an Admin, I want to change catalogue status
    Given the user has logged in as Admin
        And the user is on Edit Visibility Page
        And catalogue <A> has <currentStatus>
    When the user click <changedStatus>
        And the user click Save
    Then catalogue <A> status should change to <changedStatus>
    Examples:
    | currentStatus | changedStatus |
    | ------------- | ------------- |
    | active        | inactive      |
    | inactive      | active        |
```

#### Test Scenario 3
```gherkin
Scenario Outline: As an Admin, I want to change catalogue type
    Given the user has logged in as Admin
        And the user is on Edit Visibility Page
        And catalogue <A> has <currentType>
    When the user click <changedType>
        And the user click Save
    Then catalogue <A> type should change to <changedType>
    Examples:
    | currentType | changedType |
    | ----------- | ----------- |
    | reguler     | bonus       |
    | bonus       | reguler     |
```

#### Test Scenario 4
```gherkin
Scenario: As an Admin, I want access edit SKU Information page
    Given the user has logged in as Admin
        And the user is on Details SKU Page
    When the user clicks SKU Information Section
        And the user clicks Edit button
    Then the user redirects to Edit SKU Information Page
```

#### Test Scenario 5
```gherkin
Scenario Outline: As an Admin, I shouldn't be able to edit SKU information with wrong fields
    Given the user has logged in as Admin
        And the user is on Edit SKU Information Page
    When the user input <wrongValue> to <inputField>
    Then show error message
    Examples:
    | inputField  | wrongValue |
    | ----------- | ---------- |
    | productId   | blank      |
    | productName | blank      |
    
```

#### Test Scenario 6
```gherkin
Scenario: As an Admin, I want to edit SKU Information
    Given the user has logged in as Admin
        And the user is on Edit SKU Information Page
    When the user inputs changed data to the fields
        And the user clicks Save button
    Then successfully edit SKU Information
        And show changed data as SKU Information
```

#### Test Scenario 7
```gherkin
Scenario: As an Admin, I want access edit Catalogue Media Setting Page
    Given the user has logged in as Admin
        And the user is on Details SKU Page
    When the user clicks Media Setting Section
        And the user clicks Edit button
    Then the user redirects to Edit Catalogue Media Setting Page
```

#### Test Scenario 8
```gherkin
Scenario: As an Admin, I want to edit Media Setting
    Given the user has logged in as Admin
        And the user is on Edit Media Setting Page
    When the user upload a new picture
        And the user clicks Save button
    Then successfully changed media for the catalogue
        And show new media as Media Catalogue
```

#### Test Scenario 9
```gherkin
Scenario: As an Admin, I want access edit Delivery Page
    Given the user has logged in as Admin
        And the user is on Details SKU Page
    When the user clicks Delivery Section
        And the user clicks Edit button
    Then the user redirects to Edit Delivery Page
```

#### Test Scenario 10
```gherkin
Scenario Outline: As an Admin, I shouldn't be able to edit Delivery Catalogue due to incorrect input
    Given the user has logged in as Admin
        And the user is on Edit Delivery Page
    When the user input <incorrectValue> to <inputField>
        And the user clicks Save button
    Then show <warningType>
    Examples:
    | inputField   | incorrectValue | warningType             |
    | ------------ | -------------- | ----------------------- |
    | weightPcs    | alphabet       | doesnt show input value |
    | weightPcs    | blank          | disabled save button    |
    | weightBox    | alphabet       | doesnt show input value |
    | dimensionPcs | alphabet       | doesnt show input value |
    | dimensionPcs | blank          | disabled save button    |
    | dimensionBox | alphabet       | doesnt show input value |
```

#### Test Scenario 11
```gherkin
Scenario: As an Admin, I want to edit Delivery Setting
    Given the user has logged in as Admin
        And the user is on Edit Delivery Page
    When the user input correct value to input fields
        And the user clicks Save button
    Then successfully changed delivery setting for the catalogue
        And show changed data as Delivery Setting
```

#### Test Scenario 12
```gherkin
Scenario: As an Admin, I want access edit Amount Setting Page
    Given the user has logged in as Admin
        And the user is on Details SKU Page
    When the user clicks Amount Setting Section
        And the user clicks Edit button
    Then the user redirects to Edit Amount Setting Page
```

#### Test Scenario 13
```gherkin
Scenario Outline: As an Admin, I shouldn't be able to edit Amount Setting due to incorrect input
    Given the user has logged in as Admin
        And the user is on Edit Amount Setting Page
    When the user input <incorrectValue> to <inputField>
        And the user clicks Save button
    Then show <warningType>
    Examples:
    | inputField | incorrectValue | warningType             |
    | ---------- | -------------- | ----------------------- |
    | qtyBox     | alphabet       | doesnt show input value |
    | qtyBox     | blank          | disabled save button    |
```

#### Test Scenario 14
```gherkin
Scenario: As an Admin, I want to edit Amount Setting
    Given the user has logged in as Admin
        And the user is on Edit Amount Page
    When the user input correct value to input fields
        And the user clicks Save button
    Then successfully changed amount setting for the catalogue
        And show changed data as Amount Setting
```


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