# EC1-286 - Store Search Enhancement
>PRD: https://docs.google.com/document/d/1wBa-QHesIRWivaJHW4bo21bFapABLqBy2JPQ62U1lzU/edit
>JIRA Ticket: https://sinbadkp.atlassian.net/browse/EC1-286?atlOrigin=eyJpIjoiYmFlZmVkMzRhNDZiNGMxNjhkYTY2NmRiZDlkNGM4NzEiLCJwIjoiaiJ9
# API Testing
## Test Scenarios
#### Test Scenario 1
```gherkin
Scenario: As an Admin, I want to hit Store Search endpoint using phone number param
Given the user has logged in as admin in SSC
When the user input phone number as param in 'Get Stores' endpoint
And the user hit the endpoint
Then show body response showing the results based on phone number
```
#### Test Scenario 2
```gherkin
Scenario: As an Admin, I shouldn't be able to hit Store Search endpoint with blank phone number
Given the user has logged in as admin in SSC
When the user input blank phone number as param in 'Get Stores' endpoint
And the user hit the endpoint
Then show body response showing 'No Record Found'
```
#### Test Scenario 3
```gherkin
Scenario: As an Admin, I shouldn't be able to hit Store Search endpoint with non-existent phone number
Given the user has logged in as admin in SSC
When the user input non-existent phone number as param in 'Get Stores' endpoint
And the user hit the endpoint
Then show body response showing 'No Record Found'
```
#### Test Scenario 4
```gherkin
Scenario: As an Admin, I shouldn't be able to hit Store Search endpoint with wrong format phone number
Given the user has logged in as admin in SSC
When the user input wrong phone number as param in 'Get Stores' endpoint
And the user hit the endpoint
Then show body response showing 'No Record Found'
```
# Functional Testing
## Test Scenarios
#### Test Scenario 1
```gherkin
Scenario: As an Admin, I want to search a store based on phone number
Given the user has logged in to SSC
And the user is on Store List Page
And store <A> has a phone number
When the user clicks 'Search' field
And the user input store <A>'s phone number
Then show store <A> as search result
```
#### Test Scenario 2
```gherkin
Scenario: As an Admin, I shouldn't be able to search for wrong phone number
Given the user has logged in to SSC
And the user is on Store List Page
When the user clicks 'Search' field
And the user input wrong phone number
Then show blank page with wording 'No Record Found' as search result
```
###### tags: `Sprint 22` `Ecommerce 1` `SSC`