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

[Habit’s page] ‘Mark as done’ button isn't replaced its state when clicks on it. #5710

Open RudnevaOlena opened 1 year ago

RudnevaOlena commented 1 year ago

Environment: MacOS 13.2.1, browser Version 112.0.5615.137, it's version 20/04/2023. Reproducible: sometimes/at specific time. Build found: last commit from https://github.com/ita-social-projects/GreenCityClient/tree/dev E.g. "commit 147fa44"

Preconditions

  1. User has at least 1 habit in progress.

Steps to reproduce

  1. Go to https://www.testgreencity.ga/#/greenCity.
  2. Log in as registered user.
  3. Click on the pencil icon on the selected habit's card.
  4. Click on the 'Mark as done' button above the calendar.

Actual result The 'Mark as done' button still at the same state. The error message ** 'Can't enroll habit because data input is not in a range from today to it's 7 passed day ' is displayed. After repeated clicking nothing happened.

Expected result The 'Mark as done' button is replaced by the '[number of days] in a row. You're good!' after one click on it and is replaced back after repeating clicking. This flaw is reproduce not always, often after 12:01 a.m.

User story and test case links E.g.: "User story #990 https://github.com/ita-social-projects/GreenCity/issues/990 Test case"

Labels to be added "Bug", Priority ("pri: high"), Severity ("severity: major"), Type (

https://user-images.githubusercontent.com/128076020/233867496-c819eb27-7a2c-4737-bcff-5e75ae0d17da.mp4

https://user-images.githubusercontent.com/128076020/233867498-6e80f888-5039-4ae0-b513-056177a346a2.mp4

"Functional"), "API" (for back-end bugs).

KizerovDmitriy commented 5 months ago

already fixed

HelenSotnik commented 5 months ago
Screenshot 2024-05-13 at 15 58 19

Please retest this bug. It does not reproduce now.