# EC1-394 - Adjustment API for edit visibility SKU ## Test Scenarios #### Test Scenario 1 ```gherkin Scenario Outline: As an Admin, I want to change catalogue's status Given the user has logged in as Admin And catalogue <A> has <currentStatus> When the user input <expectedStatus> in status object field And the user hit patch catalogue endpoint Then successfully changed catalogue <A> status to <expectedStatus> Examples: |currentStatus|expectedStatus| |active|inactive| |inactive|active| ``` #### Test Scenario 2 ```gherkin Scenario Outline: As an Admin, I want to change catalogue's type Given the user has logged in as Admin And catalogue <A> has <currentType> When the user input <expectedType> in type object field And the user hit patch catalogue endpoint Then successfully changed catalogue <A> type to <expectedType> Examples: |currentType|expectedType| |bonus|regular| |regular|bonus| ``` #### Test Scenario 3 ```gherkin Scenario: As an Admin, I shouldn't be able to change status with wrong status value Given the user has logged in as Admin When the user input wrong input for status object field And the user hit patch catalogue endpoint Then show error message ``` #### Test Scenario 4 ```gherkin Scenario: As an Admin, I shouldn't be able to change status with blank status value Given the user has logged in as Admin When the user input blank input for status object field And the user hit patch catalogue endpoint Then show error message ``` #### Test Scenario 5 ```gherkin Scenario: As an Admin, I shouldn't be able to change type with wrong type value Given the user has logged in as Admin When the user input wrong input for type object field And the user hit patch catalogue endpoint Then show error message ``` #### Test Scenario 6 ```gherkin Scenario: As an Admin, I shouldn't be able to change type with blank type value Given the user has logged in as Admin When the user input blank input for type object field And the user hit patch catalogue endpoint Then show error message ``` #### Test Scenario 7 ```gherkin Scenario Outline: As an Admin, I shouldn't be able to edit SKU Information with blank mandatory value Given the user has logged in as Admin When the user input blank input for <mandatoryField> And the user hit patch catalogue SKU Information request Then show error message Examples: | mandatoryField | | -------------- | | productId | | productName | ``` #### Test Scenario 8 ```gherkin Scenario Outline: As an Admin, I shouldn't be able to edit SKU Information with wrong value Given the user has logged in as Admin When the user input <wrongValue> for <inputField> And the user hit patch catalogue SKU Information request Then show error message Examples: | inputField | wrongValue | | ---------- | -------------- | | productId | alphabet | | brand | wrong brand | | category | wrong category | | UOM | wrong UOM | ``` #### Test Scenario 9 ```gherkin Scenario: As an Admin, I want to edit SKU Information Given the user has logged in as Admin When the user input changed data to object fields And the user hit patch catalogue SKU Information request Then successfully changed SKU Information data ``` #### Test Scenario 10 ```gherkin Scenario: As an Admin, I shouldn't be able to edit Media Setting with blank mandatory value Given the user has logged in as Admin When the user input blank value on productPhotos And the user hit patch catalogue Media Setting request Then show error message ``` #### Test Scenario 11 ```gherkin Scenario: As an Admin, I shouldn't be able to edit Media Setting with wrong value Given the user has logged in as Admin When the user input alphabet value on productPhotos And the user hit patch catalogue Media Setting Then show error message ``` #### Test Scenario 12 ```gherkin Scenario: As an Admin, I want to edit SKU Media Setting Given the user has logged in as Admin When the user uploaded image <A> on productPhotos And the user hit patch catalogue Media Setting Then successfully changed catalogue Media Setting with image <A> ``` #### Test Scenario 13 ```gherkin Scenario Outline: As an Admin, I shouldn't be able to edit Delivery Setting with blank mandatory value Given the user has logged in as Admin When the user input blank value for <mandatoryField> And the user hit patch catalogue Delivery Setting Then show error message Examples: | mandatoryField | | -------------- | | weightPcs | | dimensionPcs | ``` #### Test Scenario 14 ```gherkin Scenario Outline: As an Admin, I shouldn't be able to edit Delivery Setting with wrong value Given the user has logged in as Admin When the user input <wrongValue> for <inputField> And the user hit patch catalogue Delivery Setting Then show error message | inputField | wrongValue | | ------------ | ---------- | | weightPcs | alphabet | | weightBox | alphabet | | dimensionPcs | alphabet | | dimensionBox | alphabet | ``` #### Test Scenario 15 ```gherkin Scenario: As an Admin, I want to edit SKU Delivery Setting Given the user has logged in as Admin When the user input new value for input fields And the user hit patch catalogue Delivery Setting Then successfully changed catalouge Delivery Setting with new value ``` #### Test Scenario 16 ```gherkin Scenario: As an Admin, I shouldn't be able to edit Amount Setting with blank mandatory value Given the user has logged in as Admin When the user input blank value for qtyBox And the user hit patch catalogue amount setting Then show error message ``` #### Test Scenario 17 ```gherkin Scenario Outline: As an Admin, I shouldn't be able to edit Amount Setting with wrong value Given the user has logged in as Admin When the user input alphabet for qtyBox And the user hit patch catalogue amount setting Then show error message ``` #### Test Scenario 18 ```gherkin Scenario: As an Admin, I want to edit SKU Amount Setting Given the user has logged in as Admin When the user input new value for input fields And the user hit patch catalogue amount setting Then successfully changed catalogue amount setting with new value ``` ###### tags: `Sprint 24` `Ecommerce 1` `SSC`