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 activate and diactivate card #6094

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 activate and deactivate 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 "Deactivation"
  2. In pop-up window "Deactivate" fill in all fields and press "Deactivate" button
  3. On the right side of page click on gears and choose "Activation"
  4. In pop-up window "Activate" fill in all fields and press "Activate" button

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 Sections "Deactivation" and "Activation" 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/c72eeafc-c79e-416e-bdea-400ab33826fd

https://github.com/ita-social-projects/GreenCity/assets/128155213/f717d976-7ac8-41fe-a0bd-038f13e7e25b

RomanVintoniak commented 4 months ago

Can not reproduce