Logo: Relish

  1. Sign in

Project: Integration

Redirects after login

Background
Given
there is an initial admin
Scenarios
Leihs admin only
Given
there is a user
And
the user is leihs admin
When
I log in as the user
Then
I am redirected to "/admin/"
Leihs admin and manager
Given
there is a user
And
the user is leihs admin
And
the user is inventory manager of some pool
When
I log in as the user
Then
I am redirected to "/admin/"
Leihs admin and procurer
Given
there is a user
And
the user is leihs admin
And
the user is procurement admin
When
I log in as the user
Then
I am redirected to "/admin/"
Leihs admin and customer
Given
there is a user
And
the user is leihs admin
And
the user is customer of some pool
When
I log in as the user
Then
I am redirected to "/admin/"
Manager of different pools
Given
there is a user
And
the user is group manager of pool A
And
the user is inventory manager of pool B
When
I log in as the user
Then
I am redirected to the inventory path of pool B
Customer only
Given
there is a user
And
the user is customer of some pool
When
I log in as the user
Then
I am redirected to "/borrow"
Procurer only
Given
there is a user
And
the user does not have any pool access rights
And
the user is procurement requester
When
I log in as the user
Then
I am redirected to "/procure/requests"
Customer and procurer
Given
there is a user
And
the user is procurement requester
And
the user is customer of some pool
When
I log in as the user
Then
I am redirected to "/borrow"
Procurer and manager
Given
there is a user
And
the user is procurement requester
And
the user is inventory manager of some pool
When
I log in as the user
Then
I am redirected to the inventory path of the pool
User with no access whatsoever
Given
there is a user
And
the user has no access whatsoever
When
I log in as the user
Then
I am redirected to "/my/user/me"

Last published 7 months ago by mkmit.