ita-social-projects / GreenCity

The main aim of “GreenCity” project is to teach people in a playful and challenging way to have an eco-friendly lifestyle. A user can view on the map places that have some eco-initiatives or suggest discounts for being environmentally aware (for instance, coffee shops that give a discount if a customer comes with their own cup). А user can start doing an environment-friendly habit and track their progress with a habit tracker.
MIT License
63 stars 80 forks source link

[API/MySpace] The rating of ACHIEVEMENTS is assigned incorrectly for test achievement's conditions #6613

Open VlasenkoYuliia opened 9 months ago

VlasenkoYuliia commented 9 months ago

Environment: macOS Sonoma Version 14.0 Google Chrome Version 118.0.5993.70 (Official Build) (arm64).

Reproducible: always.

Build found: 22.10.23

Preconditions

Steps to reproduce

  1. Reach a number of test conditions
  2. Check the assigned rate in My Space
  3. Check the achievement in DB
  4. Remove one of the conditions
  5. Check the removal rate in My Space
  6. Check that the achievement is removed from DB

Actual result For all test conditions the assigned rate and removal rate are 0 points; An achievement isn't removed from DB when removing one of the conditions

Screenshot 2023-10-24 at 18 13 52

Expected result ACHIEVEMENTS add/removal rate FIRST_5_ACHIEVEMENTS 10 -10 FIRST_10_ACHIEVEMENTS 25 -25 FIRST_25_ACHIEVEMENTS 50 -50 FIRST_50_ACHIEVEMENTS 100 -100 FIRST_100_ACHIEVEMENTS 200 -200 An achievement shall be removed from DB when removing one of the conditions

Postconditions

User story and test case links E.g.: "User story #938"

Labels to be added "Bug", Priority ("high"), Severity ("trivial"), Type ("Functional"), "API" (for back-end bugs).

VlasenkoYuliia commented 9 months ago
Screenshot 2023-10-31 at 15 56 11

Status BLOCKED for deleting

VlasenkoYuliia commented 8 months ago
Screenshot 2023-11-14 at 18 56 21