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

Tech admin blocks/unblocks the user #1292

Open
OlyaKhabik opened this issue Nov 13, 2023 · 0 comments
Open

Tech admin blocks/unblocks the user #1292

OlyaKhabik opened this issue Nov 13, 2023 · 0 comments

Comments

@OlyaKhabik
Copy link

As (Tech Admin) I want to block the user (parent) so that not to get spam

Description

Role
(Tech admin)

Precondition
Tech admin is created, an annoying/toxic/agressive user trying to send a message and Tech admin blocks the user via tab ”Заяви” or from tab “Повідомлення”

Acceptance Criteria
SCENARIO #1 (Tech admin) blocks the user via tab ”Заяви”

GIVEN (Tech admin) wants to block an aggressive user AND (Tech admin) enters the cabinet
AND clicks tab “Заяви”
AND selects the application of the user that has to be blocked
AND clicks “...”
AND dropdown is displayed
image

AND confirmation pop-up displays
image
AND opens the chat with the user that has to be blocked
AND clicks “...”
image

AND dropdown is displayed
AND (Tech admin) inputs the reason of blocking of the user
AND clicks “Надіслати”
THEN user is blocked
AND chat status of the blocked user is colored with RED color ”Користувача заблоковано”
AND falls to the bottom of the list
image
AND clicks “...”
image
WHEN clicks “Розблокувати користувача”
THEN the blocked user is unblocked
AND status is changed from “Заблоковано” to the previous status before blocking
AND user is able to send messages and apply to all workshops of the service provider
SCENARIO #4 (Tech admin) unblocks user via tab “Повідомлення” GIVEN (Tech admin) wants to block an agressive user
AND (Tech admin) enters the cabinet
AND clicks tab “Повідомлення”
AND selects the application of the user that has to be blocked

image

THEN user is unblocked
image
After blocking the user is unable to send message to the workshop and the button “Надіслати” becomes inactive
image

If the user deletes his account service message is shown in the chat ”Користувача не знайдено в системі. Можливо користувач видалився з системи або був видалений тех адміном. Зверніть увагу, що ви не можете надсилати і отримувати повідомлення, якщо користувача не знайдено у системі.”
If the user is blocked by (Tech admin) then the user is unable to send messages to all workshops from the current service provider and apply to other workshops of the service provide
Сhat status of the blocked user is colored with RED color ”Користувача заблоковано. Зверніть увагу, що ви не можете надсилати і отримувати повідомлення, якщо користувач заблокований.” with the reason for ( Tech admin)
Сhat status of the blocked user is colored with RED color” Користувача заблоковано.Зверніть увагу, що ви не можете надсилати і отримувати повідомлення, якщо користувач заблокований.” for blocked user with the reason
After unblocking the user status is changed from “Заблоковано” to the previous status before blocking
and user is able to send messages and apply to all workshops of the service provider
image
image
AND (Tech admin) inputs the reason of blocking of the user
AND clicks “Надіслати”
THEN user is blocked
AND application of the blocked user is colored with RED color
AND falls to the bottom of the list

image
SCENARIO #2 (Tech admin) blocks user via tab “Повідомлення”
GIVEN (Tech admin) wants to block an agressive user AND (Tech admin) enters the cabinet
AND clicks tab “Повідомлення”
AND selects the application of the user that has to be blocked
image
WHEN clicks “заблокувати користувача”
AND confirmation pop-up displays

image
SCENARIO #3 (Tech admin) unblocks user via tab ”Заяви” filter “Заблоковані”
GIVEN (Tech admin) wants to unblock the user AND (Tech admin) enters the cabinet
AND clicks tab “Заяви”
AND selects the application of the user that has to be unblocked

image
AND opens the chat with the user that has to be blocked
AND clicks “...”
WHEN selects “Розблокувати користувача”
image
AND status is changed from “Заблоковано” to the previous status before blocking
Blocked user sends a message:
After pressing the "Надіслати" button User receives the message: "Вам обмежено доступ до гуртків цього закладу"
When User hovers the mouse cursor over the message, the additional explanation appears: "У разі виникнення запитань, зв’яжіться з нами за контактними телефонами закладу."

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

No branches or pull requests

1 participant