Refactoring Auth Tests

This commit is contained in:
2020-03-16 13:35:12 +01:00
parent 0221d7023a
commit 68238494e5
2 changed files with 27 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
@auth
Feature: Auth routes
Scenario: The route for create citizen must response a 200 and return object
@@ -34,10 +35,11 @@ Feature: Auth routes
Then the response status code should be 400
Scenario: The route for create citizen must response a 200 and return object
Given I have citizen Niels Bohr
When I send a POST request to "/login" with body:
"""
{
"name": "username-1",
"name": "niels-bohr",
"password": "azerty"
}
"""