Can get votes for one citizen
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Feature: vote Article
|
||||
|
||||
Scenario: Vote article
|
||||
Scenario: Can Vote article
|
||||
Given I am authenticated as John Doe with id "64b7b379-2298-43ec-b428-ba134930cabd"
|
||||
When I send a PUT request to "/articles/9226c1a3-8091-c3fa-7d0d-c2e98c9bee7b/vote" with body:
|
||||
"""
|
||||
@@ -10,7 +10,7 @@ Feature: vote Article
|
||||
"""
|
||||
Then the response status code should be 201
|
||||
|
||||
Scenario: Vote constitution
|
||||
Scenario: Can Vote constitution
|
||||
Given I am authenticated as John Doe with id "64b7b379-2298-43ec-b428-ba134930cabd"
|
||||
When I send a PUT request to "/constitutions/64b1f265-bfb3-332b-eef9-d00f63a3beaa/vote" with body:
|
||||
"""
|
||||
@@ -19,3 +19,13 @@ Feature: vote Article
|
||||
}
|
||||
"""
|
||||
Then the response status code should be 201
|
||||
|
||||
Scenario: Can get votes of current citizen
|
||||
Given I am authenticated as John Doe with id "64b7b379-2298-43ec-b428-ba134930cabd"
|
||||
When I send a GET request to "/citizens/64b7b379-2298-43ec-b428-ba134930cabd/votes/articles"
|
||||
Then the response status code should be 200
|
||||
And the response should contain object:
|
||||
| current_page | 1 |
|
||||
| limit | 50 |
|
||||
| total | 2 |
|
||||
| result[0].note | -1 |
|
||||
|
||||
Reference in New Issue
Block a user