Logo: Relish

  1. Sign in

Project: Borrow-manage-1

Delegation

Scenarios
Choosing contact person when handing over
Given
I am Pius
And
there is a hand over for a delegation with assigned items
And
I open this hand over
When
I finish this hand over
Then
I have to specify a contact person
Switching an order from a delegation to a normal user while handing over
Given
I am Pius
And
I open a hand over for a delegation
When
I pick a user instead of a delegation
Then
the hand over shows the user
Switching an order from a normal user to a delegation when handing over
Given
I am Pius
And
I open a hand over
When
I pick a delegation instead of a user
Then
the order shows the delegation
Tooltip display
Given
I am Pius
When
I search for a delegation
And
I hover over the delegation name
Then
the tooltip shows name and responsible person for the delegation
Given
I am Pius
And
there exists a delegation with 'Julie' in its name
And
Julie is in a delegation
When
I search for 'Julie'
Then
I see all results in the users box for users matching Julie
And
I see all results in delegations box for delegations matching Julie or delegations having members matching Julie
Suspended users can't submit orders
Given
I am Julie
When
I switch from my user to a delegation
And
that delegation is enabled for an inventory pool
But
I am suspended in that inventory pool
Then
I cannot place any reservations in this inventory pool
Filter der Delegationen
Given
I am Pius
When
I can find the user administration features in the "Manage" area under "Users"
And
I am listing users
Then
I can restrict the user list to show only delegations
And
I can restrict the user list to show only users
Creating a delegation
Given
I am Pius
And
I can find the user administration features in the "Manage" area under "Users"
When
I create a new delegation
And
I give the delegation access to the current inventory pool
And
I give the delegation a name
And
I assign none, one or more people to the delegation
And
I assign none, one or more groups to the delegation
And
I cannot assign a delegation to the delegation
And
I enter exactly one responsible person
And
I save
Then
the new delegation is saved with the current information
Delegation gets access as a customer
Given
I am Pius
And
I can find the user administration features in the "Manage" area under "Users"
When
I create a new delegation
Then
I can at most give the delegation access on the customer level
Switching delegation to a user in an order
Given
I am Pius
And
there is an order for a delegation
And
I edit the order
When
I pick a user instead of a delegation
Then
the order shows the user
And
no contact person is shown
Trying to create a delegation without filling in required fields
Given
I am Pius
And
I can find the user administration features in the "Manage" area under "Users"
And
I create a new delegation
When
I give the delegation a name
And
I do not enter any responsible person for the delegation
And
I save
Then
I see an error message
When
I enter exactly one responsible person
When
I do not enter any name
And
I save
Then
I see an error message
Editing a delegation
Given
I am Pius
And
I can find the user administration features in the "Manage" area under "Users"
When
I edit a delegation
And
I change the responsible person
And
I delete an existing user from the delegation
And
I add a user to the delegation
And
I assign multiple groups
And
I save
Then
I see a confirmation of success on the list of users
And
the edited delegation is saved with its current information
Removing access from a delegation
Given
I am Pius
When
I edit a delegation that has access to the current inventory pool
And
I remove access to the current inventory pool from this delegation
And
I save
Then
no orders can be created for this delegation in the current inventory pool
Persönliche Bestellung in Delegationsbestellung ändern in Bestellung
Given
I am Pius
And
I open an order
When
I pick a delegation instead of a user
And
I pick a contact person from the delegation
And
I confirm the user change
Then
the order shows the name of the user
And
the order shows the name of the contact person
  • @rack
Listing orders for a delegation
Given
I am Pius
And
there is an order for a delegation
And
I edit the order
Then
I see the delegation's name
And
I see the contact person
Definition of the contact person when creating an order
Given
I am Julie
When
I create an order for a delegation
Then
I am saved as contact person
Given
today corresponds to the start date of the order
And
I am Pius
When
I hand over the items ordered for this delegation to "Mina"
Then
"Mina" is the new contact person for this contract
  • @rack
Showing me my own orders
Given
I am Pius
And
there is an order placed by me personally
And
I edit the order
Then
the order shows the name of the user
And
I don't see any contact person
Changing the delegation during hand over
Given
I am Pius
And
there is a hand over for a delegation with assigned items
And
I open this hand over
When
I change the delegation
And
I confirm the user change
Then
the hand over goes to the new delegation
Which delegations are shown when changing during hand over
Given
I am Pius
And
I open a hand over
When
I try to change the delegation
Then
I can choose only those delegations that have access to this inventory pool
Changing contact person during hand over
Given
I am Pius
And
there is a hand over for a delegation with assigned items
And
I open this hand over
When
I try to change the contact person
Then
I can choose only those people that belong to the delegation group
Changing contact person while editing an order
Given
I am Pius
And
I am editing a delegation's order
When
I try to change the order's contact person
Then
I can choose only those people as contact person for the order that belong to the delegation group
When
I choose another contact person for the order
And
I confirm the user change
Then
the contact person for the order has been changed accordingly
Borrow: Creating an order with a delegation
Given
I am Julie
When
I hover over my name
And
I click on "Delegations"
Then
I see the delegations I am assigned to
When
I pick a delegation to represent
Then
I am logged in as that delegation
Given
I am listing models
When
I add an existing model to the order
Then
the calendar opens
When
everything I input into the calendar is valid
Then
the model has been added to the order with the respective start and end date, quantity and inventory pool
When
I open my list of orders
And
I enter a purpose
And
I take note of the reservations
And
I submit the order
Then
the reservations' status changes to submitted
And
the delegation is saved as borrower
And
I am saved as contact person
Changing delegation in an order
Given
I am Pius
And
I open an order
When
I change the delegation
And
I change the contact person
And
I confirm the user change
Then
the hand over goes to the new delegation
And
the newly selected contact person is saved
Which delegations are shown when changing delegation in an order
Given
I am Pius
And
I open an order
When
I try to change the delegation
Then
I can choose only those delegations that have access to this inventory pool
Changing delegation - only one contact person field
Given
I am Pius
And
I am editing a delegation's order
When
I change the delegation
Then
I see exactly one contact person field
Changing delegation - contact person is required
Given
I am Pius
And
I open an order
When
I change the delegation
And
I do not enter any contact person
And
I confirm the user change
Then
an error message pops up saying "Delegated user is not member of the contract's delegation or is empty"

Last published over 3 years ago by mkmit.