Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tariffs] Active buttons for deactivating and activating location card for employee who doesn't have permission to deactivate and activate location card #6103

Closed
DanaIuich opened this issue Jul 25, 2023 · 1 comment

Comments

@DanaIuich
Copy link

DanaIuich commented Jul 25, 2023

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

Preconditions

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

Steps to reproduce

  1. Select region in dropdown list in the top of page (e.x. Kharkiv region)
  2. Select location card and on location card press 3 dots and in dropdown list click on "Deactivation"
  3. In pop-up window "Confirm deactivation" press on "Deactivate" button
  4. Select region in dropdown list in the top of page (e.x. Kharkiv region) and choose state "Inactive"
  5. In inactive card press on spinner and in pop-up window "Restore confirmation" press on "Restore"button

Actual result

  1. In dropdown list "Deactivation" is active. In pop-up window "Confirm deactivation" "Deactivate" button is active. After clicking "Deactivate" button message 403 appears.
  2. Spinner for activation card is active. Pop-up window ""Restore confirmation" appears. After clicking "Restore" button message 403 appears.

Expected result

  1. In dropdown list "Deactivation" is disabled
  2. The spinner for activation is disabled
active_buttons_for_activating_card_for_employee_without_permission.mp4

User story and test case links
E.g.: #5538

active_buttons_for_deactivation_card_for_employee_without_permission.mp4
@DanaIuich DanaIuich changed the title [Tariffs] Active buttons for deactivating location card for employee who doesn't have permission to deactivate location card [Tariffs] Active buttons for deactivating and activating location card for employee who doesn't have permission to deactivate and activate location card Jul 25, 2023
@NadiiaStoiko NadiiaStoiko self-assigned this Aug 16, 2023
@DanaIuich
Copy link
Author

Bug is fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants