---
# System prepended metadata

title: 'E1AM-165 - Store Creation: Reject Reason'
tags: [SSC, Ecommerce 1, Sprint 20, Admin Panel]

---

# E1AM-165 - Store Creation: Reject Reason

> PRD: 
https://docs.google.com/document/d/1GXaB5uit0cbi5-Pgvfga3Bpyv3rHp-93LCMBHajGm7k/edit?pli=1

## Test Scenarios
#### Test Scenario 1
```gherkin
Scenario: As an Admin, I should be able to see 'Store Rejected' Section in SSC
    Given the user has logged in to SSC
        And the user is on Store List Page
    When the user clicks detail store
    Then show 'Store Rejected' section at bottom section
```

#### Test Scenario 2
```gherkin
Scenario: As an Admin, I want to reject store in SSC
    Given the user has logged in to SSC
        And the user is on Store List Page
        And store <A> has 'Guest' approval status
    When the user clicks 'Action' section button
        And the user clicks 'Reject'
        And show pop-up rejection input field
        And the user input rejection reason
    Then store <A> rejected with rejection reason
```

#### Test Scenario 3
```gherkin
Scenario: As an Admin, I should be able to see list of fields that were rejected in SSC
    Given the user has logged in to SSC
        And the user is on Store List Page
        And store <A> rejected with Store Name & No. KTP rejected fields
    When the user clicks store <A> detail page
    Then show list of fields that were rejected in Store Rejection Section
```

#### Test Scenario 4
```gherkin
Scenario: As an Admin, I should be able to see 'Reason' for store rejection in SSC
    Given the user has logged in to SSC
        And the user is on Store List Page
        And store <A> rejected with reason 'Field ini salah'
    When the user clicks store <A> detail page
    Then show rejection reason with 'Field ini salah'
```

#### Test Scenario 5
```gherkin
Scenario: As an Admin, I should be able to see list of fields that were rejected in Admin Panel
    Given the user has logged in to Admin Panel
        And the user is on Store List Page
        And store <A> rejected with Store Name & No. KTP rejected fields
    When the user clicks store <A> detail page
    Then show list of fields that were rejected in Store Rejection Section
```

#### Test Scenario 6
```gherkin
Scenario: As an Admin, I should be able to see 'Reason' for store rejection in Admin Panel
    Given the user has logged in to Admin Panel
        And the user is on Store List Page
        And store <A> rejected with reason 'Field ini salah'
    When the user clicks store <A> detail page
    Then show rejection reason with 'Field ini salah'
```

#### Test Scenario 7
```gherkin
Scenario: As an Admin, I should be able to see reject reason in table DB
    Given the user has logged in to SSC
        And store <A> rejected with reason 'Field ini salah'
    When the user check table DB
    Then show reject_reason field filled with 'Field ini salah'
```

#### Test Scenario 8
```gherkin
Scenario: As an Admin, I want to reject store with reason via API
    Given the user has logged in to SSC
    When the user reject store with reason via API - endpoint: 
    Then show status 200 OK
```

#### Test Scenario 9
```gherkin
Scenario: As an Admin, I want to get store reject reason via API
    Given the user has logged in to SSC
        And store <A> rejected with reason 'Field ini salah'
    When the user hit endpoint API get store reject reason
    Then show response with field 'Field ini salah'
```

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