Details
-
Story
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
-
eHoldings Sprint 93, eHoldings Sprint 94, eHoldings Sprint 95
-
5
-
Spitfire
Description
A librarian wants to add the departmental fields that come from the University's systems to FOLIO so they display in the User record. A controlled vocabulary table is necessary to define the field names and codes.
Scenarios:
-
- Scenario*
Given Settings > Users
When displayed
I will see an option for "Departments"
*Screenshot *
- Scenario:*
Given Settings>Users>Departments
When selected
Then Departments menu should display
and I should be able to CRUD Department using the standard ControlledVocab component as in Contributor type configured with the following columns:
***Name
***Code
***Last Updated
***Number of users
***Actions
- Scenario*
- Name is the only required field
Screenshot:
- Scenario:*
Given I am on the Departments page under Settings>Users>Departments
When I click New
Then a new department row displays
With name and code fields enabled to enter text
AND Action column displays Save | Cancel buttons - Scenario:*
Given I have clicked New department
When I enter values for department and code
AND hit Save
Then a new row should display the newly created department - Scenario*
Given I did not enter a name
When name is the only required department field
Then display the standard message below the name field Please feel this in to continue
AND disable Save button - Scenario:*
Given I create a new department name [History]
AND I have already created this department name before
When I hit Save
Then display a message under name field [Name already exists.] - Scenario:*
Given I create a new department code [acc]
AND I have already created this department acc before
When I hit Save
Then display a message under name field [Code already exists.] - Scenario *
Given I click the edit icon on a department
Then Name and Code fields should be enabled for me to edit - Scenario*
Given I click the delete icon on a department
When no user has been assigned to the department
Then show Are you sure you want to delete this department message modal The text says, "The {} department will be deleted. This is acceptable.
AND if I continue with deletion
Then show a toast notification that <<Department Name>> has been deleted. - Scenario*
Given you have entered some data in the table but not clicked save
When you try to navigate away from the page
You will get the warning modal about unsaved changes. - Scenario*
Given an Department field has users
When you try to delete
You will see the popup modal that says "The Department <name> will be deleted. With choices cancel or delete
and when you press delete
you will see a second modal that tells you
The Department <name> cannot be deleted because it is in use Actually, no trash can appears if there are users assigned to the dept. This is acceptable.
OR just hide the delete trash can when a user is assigned to a department.
- Scenario:*
- Scenario
Given no Department has been created in Settings
When I create/edit/view a User record
Then do not display the Department field.
TestRail: Results
Attachments
Issue Links
- defines
-
UXPROD-1295 Users App: Add phone number type and email validation to user records
-
- Closed
-
-
UXPROD-2147 Users App: Department Field
-
- Closed
-
- is required by
-
UIU-1224 Create/Edit/View User Record | add Department field
-
- Closed
-
-
UXPROD-2117 Users app: add newly added fields to mod-users-import
-
- Closed
-
- requires
-
MODUSERS-158 Create/Edit a Department
-
- Closed
-