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
65 stars 80 forks source link

[API/MySpace] The rating of ACQUIRED_HABIT is assigned incorrectly for all ACQUIRED_HABIT test conditions #6673

Open VlasenkoYuliia opened 11 months ago

VlasenkoYuliia commented 11 months ago

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

Reproducible: always.

Build found: 06.11.23

Preconditions User is registered User is logged in

Steps to reproduce

  1. Create a Habit;
  2. Check the assigned rate according to conditions;
  3. Check the adding achievement in DB
  4. Delete the event;
  5. Check the removal rate.
  6. Check that the achievement is removed from DB

Actual result The rating of ACQUIRED_HABIT is assigned incorrectly for test ACQUIRED_HABIT conditions

Expected result ACQUIRED_HABIT_14_DAYS 20 ACQUIRED_HABIT_21_DAYS 30 ACQUIRED_HABIT_30_DAYS 50

Postconditions

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

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

lagysha commented 3 months ago

Everything seems to be working as expected