Logo: Relish

  1. Sign in

Project: Procurement

Section Users

Scenarios
  • @users_and_organisations
Add a requester
Given
I am Hans Ueli
And
there does not exist any requester yet
But
there exists a user to become a requester
When
I navigate to the users page
Then
there is an empty requester line for creating a new one
When
I fill in the requester name
And
I fill in the department
And
I fill in the organization
And
I click on save
Then
I see a success message
And
the new requester was created in the database
  • @users_and_organisations
Requester required fields
Given
I am Hans Ueli
And
there does not exist any requester yet
But
there exists a user to become a requester
When
I navigate to the users page
Then
there is an empty requester line for creating a new one
When
I fill in the 1st field
And
I fill in the 2nd field
And
I click on save
And
the field "3rd field" is marked red
And
the new requester has not been created
Examples:
1st field 2nd field 3rd field
requester name department organization
requester name organization department
department organization requester name
  • @users_and_organisations
Delete a requester
Given
I am Hans Ueli
And
there exists a requester
And
there exist requests for this requester
When
I navigate to the users page
And
I click on the minus button on the requester line
And
the requester line is marked for deletion
When
I click on save
Then
the requester disappears from the list
And
the requester was successfully deleted from the database
And
the existing requests keep the reference to the original requester
And
that requester can not submit new requests anymore
  • @users_and_organisations
Modify a requester
Given
I am Hans Ueli
And
there exists a requester
And
there exist requests for this requester
And
there exists an extra user
And
I navigate to the users page
When
I modify the requester name to be that of the extra user
And
I modify the department
And
I modify the organization
And
I click on save
Then
I see a success message
And
I see the successful changes on the page
And
the requester information was changed successfully in the database
And
the existing requests keep the reference to the original requester
And
the existing requests keep the reference to the original organisation
And
that requester can not submit new requests anymore
  • @users_and_organisations
Sorting of requester
Given
I am Hans Ueli
And
there exist 10 requesters
When
I navigate to the users page
Then
the requesters are sorted 0-10 and a-z
  • @users_and_organisations
Add the first Admin
Given
I am Gino
When
I navigate to the users page
Then
I can add the first admin
When
I click on save
Then
I see a success message
And
the new admin was saved to the database
  • @users_and_organisations
Add an Admin
Given
I am Hans Ueli
And
I am already an admin
When
I navigate to the users page
Then
I can add an admin
When
I click on save
Then
I see a success message
And
the new admin was saved to the database
  • @users_and_organisations
Sorting of Admins
Given
I am Hans Ueli
And
several admin users exist
When
I navigate to the users page
Then
the admins are sorted alphabetically from a-z
  • @users_and_organisations
Delete an Admin
Given
I am Hans Ueli
And
several admin users exist
When
I navigate to the users page
Then
I can delete an admin
When
I click on save
Then
I see a success message
And
the admin is deleted from the database
  • @users_and_organisations
View the Organisation Tree
Given
I am Hans Ueli
And
organisations exist
When
I navigate to the organisation tree page
Then
I see the organisation tree according to the organisations assigned to requester
And
the organisation tree shows the departments with its organisation units
And
the departments are sorted from 0-10 and a-z
And
inside the departments the organisations are sorted from 0-10 and a-z

Last published over 1 year ago by mkmit.