Skip to content

Instantly share code, notes, and snippets.

@sergueyarellano
Created May 28, 2021 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergueyarellano/40a6690a54bab7ae46730fc0d635040d to your computer and use it in GitHub Desktop.
Save sergueyarellano/40a6690a54bab7ae46730fc0d635040d to your computer and use it in GitHub Desktop.
Feature: Stores
As a consumer of the API,
I want to be able to perform CRUD operations on stores endpoints
Scenario: Successfully get a list of stores near me
Given request headers
| content-type | application/json |
When I make a "GET" request to "stores"
Then I receive a 200 status code response
And every element on "body" property has "interface"
| metadata | object |
| data | array |
And "body.data" property has more than 1 element
And every element on "body.data" property has "interface"
| type | string |
| description | string |
| location | string |
| distance | number |
And every element on "body.data" property has "restrictions"
| property | operator | value |
| distance | less than | 200 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment