-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
create-user.feature
26 lines (22 loc) · 1.18 KB
/
create-user.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# This is a Gherkin feature file https://cucumber.io/docs/gherkin/reference/
Feature: Create a user
Scenario: I can create a user
Given user profile data
| email | country | street | postalCode |
| [email protected] | England | Road Avenue | 29145 |
When I send a request to create a user
Then I receive my user ID
And I can see my user in a list of all users
Scenario Outline: I try to create a user with invalid data
Given user profile data
| email | country | street | postalCode |
| <Email> | <Country> | <Street> | <PostalCode> |
When I send a request to create a user
Then I receive an error "Bad Request" with status code 400
Examples:
| Email | Country | Street | PostalCode |
| johngmail.com | England | Road Avenue | 29145 |
| [email protected] | 123 | Road Avenue | 29145 |
| [email protected] | England | 123 | 29145 |
| [email protected] | England | Road Avenue | @ |
| #@!$ | $#@1 | %542 | !321 |