Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug report] The voting start date can't be current date #502

Open
AndrChristina opened this issue Sep 27, 2022 · 0 comments
Open

[Bug report] The voting start date can't be current date #502

AndrChristina opened this issue Sep 27, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@AndrChristina
Copy link

Environment: Windows 7, Google Chrome v.103.0.5060.134, Postman for Web v. 9.28.1-220808-1444.
Reproducible: always.

Preconditions
Postman is opened.

Steps to reproduce

  1. Insert to the Authorization proper Bearer Token.
  2. Choose POST method.
  3. Enter request URL https://home-project-academy.herokuapp.com/api/0/cooperations/1/polls
  4. Write json to the Body:
{
  "header": "New door for house",
  "description": "Door",
  "creation_date": "2022-09-27T03:00:00Z",
  "completion_date": "2022-10-15T06:00:00Z",
  "houses": [
    {
      "id": 3503
    }
  ],
  "status": "draft",
  "type": "simple"
}
  1. Click on the button Send

Actual result
Getting 201 Created status code.
Screenshot_92.png

Expected result
Should be 400 Validation Exception error (The voting start date can't be current date).

User story and test case links
"User story #HP-33 https://home-project-engineering.atlassian.net/browse/HP-33

Labels to be added
"Bug", Priority ("pri: normal"), Severity ("severity: major"), Type ("Functional"), "API" (for back-end bugs).

@artmarchenko artmarchenko added the bug Something isn't working label Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants