Refactoring Comment Tests

This commit is contained in:
2020-03-16 15:02:43 +01:00
parent 561905f7ab
commit 74503c9d3a
4 changed files with 76 additions and 34 deletions

View File

@@ -1,7 +1,11 @@
@comment
Feature: comment
Scenario: Can comment childrens
Given I am authenticated as John Doe with id "64b7b379-2298-43ec-b428-ba134930cabd"
And I have article with id "9226c1a3-8091-c3fa-7d0d-c2e98c9bee7b"
When I send a GET request to "/comments/9226c1a3-8091-c3fa-7d0d-c2e98c9bee7b/children"
Given I have citizen John Dalton
And I am authenticated as John Dalton
And I have article
| id | 4c948e8f-eada-4e10-8d7d-7192affe1313 |
And I have comment created by John Dalton on article "4c948e8f-eada-4e10-8d7d-7192affe1313"
When I send a GET request to "/comments/4c948e8f-eada-4e10-8d7d-7192affe1313/children"
Then the response status code should be 200