---
# System prepended metadata

title: E1AM-163 - Import new store
tags: [SSC, Ecommerce 1, Sprint 20]

---

# E1AM-163 - Import new store

> PRD : https://docs.google.com/document/d/1DqF3EdSZaKVndoAbD5uVkwmRFUEXL0oLn2OfiHmjVAQ/edit?pli=1#

## Test Scenarios
#### Test Scenario 1
```gherkin
Scenario: As an Admin, I should be able to see 'Create Store' in Import Mode section
    Given the user has logged in to SSC
        And the user is on Store List Page
    When the user clicks 'Import' button
    Then show Pop-up Section for Import
        And show 'Create Store' in Import Mode Section
```

#### Test Scenario 2
```gherkin
Scenario: As an Admin, I want to download 'Create Store' template file
    Given the user has logged in to SSC
        And the user is on Import Section
    When the user clicks 'Create Store' template
    Then automatically download 'Create Store' template file
```

#### Test Scenario 3
```gherkin
Scenario: As an Admin, I should be prompted to choose local file to upload
    Given the user has logged in to SSC
        And the user is on Import Section
        And the user has chosen Create Store Import Mode
    When the user clicks 'Upload File'
    Then the user should be prompted to choose local file to upload
```

#### Test Scenario 4
```gherkin
Scenario: As an Admin, I shouldn't be able to create store using wrong template file
    Given the user has logged in to SSC
        And the user is on Import Section
        And the user has chosen Create Store Import Mode
    When the user choose a wrong template File to upload
        And the user uploaded the wrong file
    Then show create store failed in Import History Section
```

#### Test Scenario 5
```gherkin
Scenario Outline: As an Admin, I shouldn't be able to create store with blank mandatory field
    Given the user has logged in to SSC
        And the user is on Import Section
        And the user fill <mandatoryField> in .csv file with blank
    When the user choose the file to upload
        And the user uploaded the File
        And the user clicks 'Import History' section
    Then show create store failed in Import History Section
        And show error message mandatory field unfilled in error report
    
    Examples:
    | mandatoryField |
    | Owner Name     |
    | Store Name     |
    | Phone Number   |
    | KTP Owner ID   |
    | Address        |
    | NPWP Owner ID  |
```

#### Test Scenario 6
```gherkin
Scenario Outline: As an Admin, I shouldn't be able to create store with wrong format mandatory fields
    Given the user has logged in to SSC
        And the user is on Import Section
    When the user fill <mandatoryField> in .csv file with wrong format
        And the user choose the file to upload
        And the user uploaded the File
        And the user clicks 'Import History' section
    Then show create store failed in Import History Section
        And show error message mandatory field wrong format in error report
        
    Examples:
    | mandatoryField |
    | Owner Name     |
    | Store Name     |
    | Phone Number   |
    | KTP Owner ID   |
    | Address        |
    | NPWP Owner ID  |
```

#### Test Scenario 7
```gherkin
Scenario: As an Admin, I shouldn't be able to create store with wrong format 'Status' field
    Given the user has logged in to SSC
        And the user is on Import Section
    When the user fill 'Status' field in .csv file with wrong format
        And the user choose the file to upload
        And the user uploaded the File
        And the user clicks 'Import History' section
    Then show create store failed in Import History Section
        And show error message 'Status' field wrong format in error report
```

#### Test Scenario 8
```gherkin
Scenario: As an Admin, I shouldn't be able to create store with wrong format 'Approval Status' field
    Given the user has logged in to SSC
        And the user is on Import Section
    When the user fill 'Approval Status' field in .csv file with wrong format
        And the user choose the file to upload
        And the user uploaded the File
        And the user clicks 'Import History' section
    Then show create store failed in Import History Section
        And show error message 'Approval Status' field wrong format in error report
```

#### Test Scenario 9
```gherkin
Scenario: As an Admin, I shouldn't be able to create store with wrong format 'Vehicle Accesibility' field
    Given the user has logged in to SSC
        And the user is on Import Section
    When the user fill 'Vehicle Accesibility' field in .csv file with wrong format
        And the user choose the file to upload
        And the user uploaded the File
        And the user clicks 'Import History' section
    Then show create store failed in Import History Section
        And show error message 'Vehicle Accesibility' field wrong format in error report
```

#### Test Scenario 10
```gherkin
Scenario: As an Admin, I shouldn't be able to create store with wrong format 'Number of employee' field
    Given the user has logged in to SSC
        And the user is on Import Section
    When the user fill 'Number of employee' field in .csv file with wrong format
        And the user choose the file to upload
        And the user uploaded the File
        And the user clicks 'Import History' section
    Then show create store failed in Import History Section
        And show error message 'Number of employee' field wrong format in error report
```

#### Test Scenario 11
```gherkin
Scenario: As an Admin, I shouldn't be able to create store with wrong/not found urban_id
    Given the user has logged in to SSC
        And the user is on Import Section
    When the user fill 'urban_id' field in .csv file with wrong format
        And the user choose the file to upload
        And the user uploaded the File
        And the user clicks 'Import History' section
    Then show create store failed in Import History Section
        And show error message 'urban_id' field wrong format in error report
```

#### Test Scenario 12
```gherkin
Scenario: As an Admin, I should be able to create store when non-mandatory fields are blank
    Given the user has logged in to SSC
        And the user is on Import Section
    When the user fill 'Vehicle Accessibility' field in .csv file with blank
        And the user fill all the other fields correctly
        And the user choose the file to upload
        And the user uploaded the File
        And the user clicks 'Import History' section
    Then show create store success in Import History Section
```

#### Test Scenario 13
```gherkin
Scenario: As an Admin, I want to create store using correct format
    Given the user has logged in to SSC
        And the user is on Import Section
    When the user fill all the fields correctly
        And the user choose the file to upload
        And the user uploaded the File
        And the user clicks 'Import History' section
    Then show create store success in Import History Section
```

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