ita-social-projects / Home

Home - is an all-in-one social service that will cover all aspects of your communication with your home and neighbors.
http://www.home-project-engineering.tech/api/0/apidocs/index.html
MIT License
26 stars 30 forks source link

[Bug report] Wrong poll's status #503

Open AndrChristina opened 2 years ago

AndrChristina commented 2 years ago

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

Preconditions Polls for cooperation were created at different time. Postman is open.

Steps to reproduce

  1. Insert to the Authorization proper Bearer Token.
  2. Choose GET method.
  3. Enter request URL [https://home-project-academy.herokuapp.com/api/0/cooperations/1/polls]
  4. Pay attention to the status for: poll where voting in progress; poll where voiting is finished.

Actual result Screenshot_96.pngScreenshot_95.png

Screenshot_98.pngScreenshot_99.png Poll where voting is in progress have draft status; poll where voiting is finished have active status.

Expected result Poll where voting is in progress should have 'Active' status; poll where voiting is finished should have 'Completed' status.

User story and test case links User story HP-33

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