diff --git a/app/features/demo/administrator/postAdministrator.feature b/app/features/demo/administrator/postAdministrator.feature index b9c8161..2041dec 100644 --- a/app/features/demo/administrator/postAdministrator.feature +++ b/app/features/demo/administrator/postAdministrator.feature @@ -21,7 +21,7 @@ Feature: Create administrators Then the response status code should be 201 And the response should be in JSON And the header "Content-Type" should be equal to "application/json; charset=utf-8" - And the JSON should be equal to: + And the JSON should be like: """ { "username": "admin3", @@ -29,7 +29,7 @@ Feature: Create administrators "email": "admin3@irontec.com", "name": "Name", "lastname": "Last name", - "id": 3 + "id": "match:type(integer)" } """ @@ -40,7 +40,7 @@ Feature: Create administrators Then the response status code should be 200 And the response should be in JSON And the header "Content-Type" should be equal to "application/json; charset=utf-8" - And the JSON should be equal to: + And the JSON should be like: """ { "username": "admin3", @@ -48,6 +48,6 @@ Feature: Create administrators "email": "admin3@irontec.com", "name": "Name", "lastname": "Last name", - "id": 3 + "id": "match:regexp(/[0-9]+/)" } """ diff --git a/app/features/demo/administrator/putAdministrator.feature b/app/features/demo/administrator/putAdministrator.feature index c0dc9f0..ebfa84f 100644 --- a/app/features/demo/administrator/putAdministrator.feature +++ b/app/features/demo/administrator/putAdministrator.feature @@ -37,7 +37,7 @@ Then the response status code should be 200 And the response should be in JSON And the header "Content-Type" should be equal to "application/json; charset=utf-8" - And the JSON should be equal to: + And the JSON should be like: """ { "username": "admin_updated", @@ -45,6 +45,6 @@ "email": "admin2_updated@irontec.com", "name": "Name_updated", "lastname": "Last name updated", - "id": 2 + "id": "match:type(number)" } """