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

[Tariffs] Fields and buttons are active for employees who doesn't have permission to create card #6093

Open DanaIuich opened 1 year ago

DanaIuich commented 1 year ago

Environment: all Reproducible: always Build found: 24/07/2023

Preconditions

  1. User should be on position which doesn't have permission to create card (e.x. navigator)
  2. User should be logged
  3. Go to https://www.greencity.social/#/ubs-admin/tariffs

Steps to reproduce

  1. On the right side of page click on gears and choose "Create card"
  2. In pop-up window " Create card" fill in all fields and press "Create" button
  3. Overload the page and verify the result

Actual result All fields are active. Button becomes active after filling in all fields. Also cursor is changed to: cursor:text (when to bring it closer to the input field), Cursor: pointer (when to bring it closer to the dropdown field)

Expected result Section "Create card" in dropdown list must be disabled

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

https://github.com/ita-social-projects/GreenCity/assets/128155213/617a49cf-124e-4ba2-884a-770567e14e32

RomanVintoniak commented 4 months ago

Can not reproduce