Refactoring Comment Tests
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user