Logo: Relish

  1. Sign in

Project: Medlink

Add User

As an admin to the website
I want to be able to add users
So that they can use the system

Background
Given
I am logged in as an admin
And
that "Senegal" is a country
And
that "Chad" is a country
And
that the following pcmos exist:
name country
patrick Senegal
ricky Chad
When
I go to the add user page
Scenarios
successfully adding a user
Then
I should see the add user form
When
I choose a "Peace Corps Medical Officer" role
Then
I should not see the PCMO select box
When
I choose the user country "Chad"
And
I choose a "Peace Corps Volunteer" role
Then
I should see the PCMO select box
When
I fill out the add user form
And
I click "Add"
validating errors
When
I fill out the add user form
And
I change field to value
And
I click "Add"
Then
I should see a message error message
Examples:
field value message
user_first_name required
user_last_name required
user_location required
user_phone required
user_email nope required
user_email nope invalid
user_pcv_id required
user_pcv_id 11111 unique
user_country_id Country required
user_role Assign_Role required

Last published about 7 years ago by jasnow.