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/Client Controller/Pick-up City/Orders] When we enter our order ID, the status 404 is displayed #7138

Closed Nastya1403 closed 5 months ago

Nastya1403 commented 6 months ago

Environment: Windows 11 Home, Google Chrome 124.0.6367.119 (Official Build) (64-bit) Reproducible: always Build found: 14.05.2024

Preconditions

  1. The user is logged in at https://www.pick-up.city/#/ubs
  2. The user has one created order
  3. Postman is opened and the token is gotten.

Steps to reproduce

  1. Create a request with method - GET to URL https://greencity-ubs.pick-up.city/ubs/client/get-data-for-order-surcharge/{id} where id is from precondition №2
  2. Send the request

Actual result The status code 404 with an error message "Employee with current id doesn't exist: " is displayed image

Expected result The status code 200 and information about order are displayed

User story and test case links Swagger

HelenSotnik commented 5 months ago
Screenshot 2024-05-20 at 21 09 23

Current endpoint is applicable not for user to see info about order, but for Employee. But there will be this error anyway due to parsing employee email, which is passed instead as uuid. I could be fixed.But it is not used, so will be deleted.