# EC1-409 - Edit / Unassignment SKU from Catalogue Segmentation
## Test Scenarios
#### Test Scenario 1
```gherkin
Scenario: As an Admin, I want to access Edit Catalogue Segmentation Page
Given the user has logged in as Admin
And the user is on Segmentation Details Page
When the user clicks edit button
Then the user redirects to Edit Catalogue Segmentation Page
```
#### Test Scenario 2
```gherkin
Scenario: As an Admin, I should be able to see section list assigned catalogues
Given the user has logged in as Admin
And the user is on Segmentation Details Page
When the user clicks edit button
Then show table section list for assigned catalogues
```
#### Test Scenario 3
```gherkin
Scenario: As an Admin, I should be able to see unassign option in action button
Given the user has logged in as Admin
And the user is on Edit Segmentation Details Page
When the user clicks Action menu button
Then show dropdown action menu for Unassign
```
#### Test Scenario 4
```gherkin
Scenario: As an Admin, I want to unassign a catalogue
Given the user has logged in as Admin
And the user is on Edit Segmentation Details Page
When the user clicks action button on catalogue <A>
And the user clicks Unassign
And the user clicks Unassign confirmation button
Then catalogue <A> successfully unassigned
```
#### Test Scenario 5
```gherkin
Scenario: As an Admin, I want to bulk unassign catalogues
Given the user has logged in as Admin
And the user is on Edit Segmentation Details Page
When the user clicks checkbox on checkbox field for catalogue <A>
And the user clicks checkbox on checkbox field for catalogue <B>
And the user clicks Action button on top table section
And the user clicks Unassign menu
And the user clicks Unassign confirmation button
Then catalogue <A>,<B> successfully unassigned
```
#### Test Scenario 6
```gherkin
Scenario: As an Admin, I should be able to see unassign warning message pop-up
Given the user has logged in as Admin
And the user is on Edit Catalogue Segmentation Page
When the user clicks Action button on catalogue <A>
And the user clicks Unassign
Then show pop-up warning message for unassign confirmation
```
#### Test Scenario 7
```gherkin
Scenario: As an Admin, I shouldn't be able to see unassigned catalogue in table list section
Given the user has logged in as Admin
And the user is on Edit Catalogue Segmentation Page
When the user clicks Action button on catalogue <A>
And the user clicks Unassign
And the user clicks Unassign confirmation button
Then doesn't show catalogue <A> in assigned catalogue list
```
#### Test Scenario 8
```gherkin
Scenario Outline: As an Admin, I want to search for listed SKU with various parameters
Given the user has logged in as Admin
And the user is on Edit Catalogue Segmentation Page
When the user input <inputValue> on search bar field
Then show catalogue search result based on <inputValue>
Examples:
| inputValue |
| ----------------- |
| catalogueName |
| catalogueId |
| catalogueSupplier |
| catalogueType |
```
###### tags: `Sprint 24` `Ecommerce 1` `SSC`