Logo: Relish

  1. Sign in

Project: Borrow-manage-1

Manage users

Scenarios
Suspend feature for users and delegations
Given
I am inventory manager or lending manager
And
I edit a user_type
When
I use the suspend feature
Then
I have to specify a reason for suspension
And
if the user_type is suspended, I can remove the suspension
Examples:
user_type
user
delegation
Add new user as inventory manager to an inventory pool
Given
I am Pius
When
I am looking at the user list
And
I add a user
And
I enter the following information
First name
Last name
E-Mail
And
I enter the login data
And
I enter a badge ID
And
I can only choose the following roles
No access
Customer
Group manager
Lending manager
When
I choose the following roles
tab role
Customer customer
Group manager group_manager
Lending manager lending_manager
And
I assign multiple groups
And
I save
Then
the user and all their information is saved
  • @rack
Remove access as an inventory manager
Given
I am Pius
And
I am editing a user who has access to and no items from the current inventory pool
When
I remove their access
And
I save
Then
the user has no access to the inventory pool
Elements of user administration
Given
I am inventory manager or lending manager
Then
I can find the user administration features in the "Manage" area under "Users"
Then
I see a list of all users
And
I can filter to see only suspended users
And
I can filter by the following roles:
tab role
Customer customers
Lending manager lending_managers
Inventory manager inventory_managers
And
I can open the edit view for each user
Displaying a user and their roles in lists
Given
I am inventory manager or lending manager
And
a user with assigned role appears in the user list
Then
I see the following information about the user, in order:
attr
First name/last name
Phone number
Role
Not displaying a user's role in lists if that user doesn't have a role
Given
I am inventory manager or lending manager
And
a user without assigned role appears in the user list
Then
I see the following information about the user, in order:
attr
First name/last name
Phone number
Role
Displaying a user in a list with their assigned roles and suspension status
Given
I am inventory manager or lending manager
And
a suspended user with assigned role appears in the user list
Then
I see the following information, in order:
attr
First name/last name
Phone number
Role
Suspended until dd.mm.yyyy
  • @rack
Role 'lending manager'
Given
I am a lending manager
When
I open the inventory
Then
I can create new items
And
these items cannot be inventory relevant
And
I can create options
And
I can create and suspend users
And
I can retire items if my inventory pool is their owner and they are not inventory relevant
  • @rack
Role 'inventory manager'
Given
I am an inventory manager
Then
I can create new models
And
I can create new items
And
these items can be inventory relevant
And
I can make another inventory pool the owner of the items
And
I can retire these items if my inventory pool is their owner
And
I can unretire items if my inventory pool is their owner
And
I can specify workdays and holidays for my inventory pool
And
I can assign and remove roles to and from users as specified in the following table, but only in the inventory pool for which I am manager
role
No access
Customer
Group manager
Lending manager
Inventory manager
And
I can do everything a lending manager can do
When
I don't choose a responsible department when creating or editing items
Then
the responsible department is the same as the owner
  • @rack
Remove access as inventory manager
Given
I am Mike
And
I am editing a user who has access to and no items from the current inventory pool
When
I remove their access
And
I save
Then
the user has no access to the inventory pool
  • @rack
Remove access for a user with open contracts
Given
I am persona
And
there exists a contract with status "contract_status" for a user without any other contracts
When
I edit the user of this contract
Then
this user has access to the current inventory pool
When
I remove their access
And
I save
Then
I see the error message "error_message"
Examples:
persona contract_status error_message
Mike submitted Currently has open orders
Pius submitted Currently has open orders
Mike approved Currently has open orders
Pius approved Currently has open orders
Mike signed Currently has items to return
Pius signed Currently has items to return
As an inventory manager, add a new user to the inventory pool
Given
I am Mike
When
I am looking at the user list
And
I add a user
And
I enter the following information
Last name
First name
Address
Zip
City
Country
Phone
E-Mail
And
I enter the login data
And
I enter a badge ID
And
I can only choose the following roles
No access
Customer
Group manager
Lending manager
Inventory manager
And
I choose the following roles
tab role
Customer customer
Group manager group_manager
Lending manager lending_manager
Inventory manager inventory_manager
And
I assign multiple groups
And
I save
Then
the user and all their information is saved
  • @rack
Access rights available when editing a user as a lending manager
Given
I am Pius
And
I edit a user who has access as customer
Then
I can only choose the following roles
No access
Customer
Group manager
Lending manager
When
I change the access level to "lending manager"
And
I save
Then
the user has the role "lending manager"
  • @rack
Switching a user to "customer"
Given
I am Pius
And
I edit a user who has access as lending manager
When
I change the access level to "customer"
And
I save
Then
the user has the role "customer"
  • @rack
Access rights available when editing a user as an inventory manager
Given
I am Mike
And
I edit a user who has access as customer
Then
I can only choose the following roles
No access
Customer
Group manager
Lending manager
Inventory manager
When
I change the access level to "inventory manager"
And
I save
Then
the user has the role "inventory manager"
  • @rack
Grant access to an inventory pool as an inventory manager
Given
I am Mike
And
I edit a user who doesn't have access to the current inventory pool
When
I change the access level to "customer"
And
I save
Then
I see a confirmation of success on the list of users
And
the user has the role "customer"
  • @rack
Editing a user who has no access rights without granting them any
Given
I am Pius
And
I edit a user who doesn't have access to the current inventory pool
When
I change the email address
And
I save
Then
I see a confirmation of success on the list of users
And
the user's new email address is saved
And
the user still has access to the current inventory pool
  • @rack
Adding a new user without supplying require information
Given
I am Pius
When
I am looking at the user list
And
I add a user
And
all required fields are filled in
When
I did not enter required_information
And
I save
Then
I see an error message
Examples:
required_information
last name
first name
email address
  • @rack
Reactivate a user's access to an inventory pool
Given
I am Mike
And
I edit a user who used to have access to the current inventory pool
When
I change the access level to "customer"
And
I save
Then
I see a confirmation of success on the list of users
And
the user has the role "customer"

Last published over 3 years ago by mkmit.