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

[Friends] 'Add friend' button isn't replaced by 'Cancel request' after clicking on it on the 'Find friends' page #5658

Open BohdanaYuzkiv opened 1 year ago

BohdanaYuzkiv commented 1 year ago

Environment: Windows 10 Pro, Chrome 111.0.5563.65 Reproducible: always. Build found:11.03.2023

Preconditions

  1. The registered user is logged in
  2. The Find friends tab on My Friends page is opened
  3. User cards are displayed

Steps to reproduce

  1. Select any of the user cards available from the list
  2. Click on the "Add Friend" button on selested friend's card

Actual result User card dissapears. System doesn't provide any information what have been done.

Expected result The button “Add friend” is automatically replaced by a button “Cancel request” on the friend’s card.

User story and test case links User story #https://github.com/ita-social-projects/GreenCity/issues/1003 [Test case ]https://jira.softserve.academy/browse/GC-5804

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

DanaIuich commented 1 year ago

Actual result User card dissapears. System doesn't provide any information what have been done.

https://github.com/ita-social-projects/GreenCity/assets/128155213/b3e1dade-a0c0-42f9-9b3b-0458340a5adb

DanaIuich commented 1 year ago

https://github.com/ita-social-projects/GreenCity/assets/128155213/9d22bc1e-44b5-4f2a-8a2d-578737c6b8b3

Actual result After repeat request hte message "Friend request already axost between two users". In tab "Requests" there is no any information about the actions of user who sent request