Skip to content

Instantly share code, notes, and snippets.

@maaretp
Last active Jul 28, 2022
Embed
What would you like to do?
Feature: User management
As an administrator,
I can define users selecting roles with every role able to view observations,
So that users have access to intended information.
Scenario: Admin can create admins
Given Default admin logs in to user management
Then Admin can create admin users
Then New admin user exists on the users list
And New admin user can login
Then Default admin can delete admin user
Scenario: Admin can create users without admin rights
Given Default admin logs in to user management
Then Admin can create users without admin rights
Then New non-admin user exists on the users list
And New non-admin user can login
Then Default admin can delete non admin user
Scenario: Admin can change own password and any other user's password
Given Default admin logs in to user management
When Admin creates a user
Then Admin can change user's password
Then User can login after password change
Then Default admin can delete non admin user
Scenario: User without admin rights can change own password
Given Default admin creates a user without admin rights
When User logs in to user management
Then User can change own password
Then User can login after password change
Then Default admin can delete non admin user
Scenario: User without admin rights cannot create users
Given Default admin creates a user without admin rights
When User logs in to user management
Then User cannot create other users
Then Default admin can delete non admin user
Scenario: Admin can delete other users
Given Default admin logs in to user management
When Admin creates a user
Then Admin can delete user
Then Deleted user cannot login to user management
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment