Permission Enforcement - Records - QA Test Plan
Setting up users and roles
Before you move on, you have to set up a few test records, create a new role, and assign that role to a user you can login as. You may have to create a new user.
- New records
- Create two new records each of Object Exit, Acquisition, Cataloging, and L/M/I
- In the Acquisition records, fill out the ID number and add four terms to the Acquisition Source field - 2 people and 2 organizations
- In the Cataloging records, fill out the ID number and add two terms each to Object Production Person, Object Production Organization. Add one Person and one Organization to Object History > Owner field.
- In the L/M/I records, fill out one with a current location that is an Organization, and one with a Storage Location. Fill out normal locations (Storage Location authority) for both.
- Relate each of these records to one another, e.g. each Object Exit should be related to both Acquisitions, both Cataloging Objects, both L/M/Is, and the other Object Exit
- Create one new Exhibition record, filling out the three instances of the Venue > Name field; using Organization, Place, and Storage Location once each
- Create one new Intake record, filling out the Current Location field
- Clone the TENANT ADMIN role and make the following changes:
- None to Object Exit
- Read to Acquisition and Intake
- Write to Cataloging Objects and Exhibition
- None to Person Authority and Place Authority
- Read to Storage Location Authority
- Write to Organization Authority
- Assign the role to a user you can log in as, that has no other roles assigned
- Login as that user
Testing Procedural and Cataloging records:
Test 1: Create New Page
Actions:
- Go to Create New in the top navigation
Expected:
- Object Exits and Acquisitions are not displayed
- Object is displayed
Actions:
- click on Objects
Expected:
- New record should be created
Actions:
- Fill out at least the required fields
- Save
Expected:
- Record should be successfully saved
- Delete button should not appear
Test 3: Search
Actions:
- Go to Search in the top navigation
Expected:
- Check the drop down in the Find area. Object Exits should not be listed, Acquisitions, Objects, and L/M/Is should be
- Check the drop down in the top center. Object Exits should not be listed, Acquisitions, Objects, and L/M/Is should be
Test 5: Records in Edit Mode
Actions:
- Continue from Test 3
- From the top center search box, select Objects from the dropdown
- Click search
- You will be redirected to the Find and Edit page.
- Select one of the records you created from the results list
Expected:
- The record should be loaded in edit mode
Test 7: Right Sidebar Records Listing in Write Record
Actions:
- Continue from Test 5
Expected:
- In the right sidebar, Object Exits should not be listed under Related Procedures
- In the right sidebar, Acquisitions and L/M/Is should be listed under Related Procedures
Test 9: Adding Records From Write Record
Actions:
- Continue from Test 7
- Click on the Add button to the right of the Related Procedures menu
Expected:
- Acquisitions and L/M/Is should be listed in the Find drop down in the dialog
- Object Exits should not be listed in the Find drop down in the dialog
Actions:
- Search for and add an L/M/I record
Expected:
- The record should successfully be related
Test 11: Secondary Tab of Write Record
Actions:
- Continue from Test 9
- Click on the +Related tab
Expected:
- The secondary tab for Object Exit should not be listed in the dropdown
- The secondary tab for Acquisition and L/M/I should be listed in the dropdown
Actions:
- Click on Acquisitions in the +Related dropdown
- Select one of the related records from the listing
Expected:
- The record should be loaded in read only mode
- No Relate Existing button should be present
Actions:
- Click on L/M/I in the +Related dropdown
- Select one of the records from the listing
Expected:
- The record should be loaded in edit mode
- The Relate Existing should be present
- The Create New should be present
Test 13: Record Read Only Mode
Actions:
- Continue from Test 11 and pivot to a related Acquisition record via the right sidebar
Expected:
- The record should be loaded, but in read only mode
- No revert, clone, save, or delete button should be displayed
Test 45: Right Sidebar From Read Record
Actions:
- Continue from Test 13
Expected:
- In the right sidebar, Object Exits should not be listed in the Related Procedures menu
- In the right sidebar, Objects and L/M/I records should be listed in the Related Objects and Related Procedures menus
- No Add buttons should be displayed in the right sidebar
Test 17: Secondary Tab of Read record:
Actions:
- Continue from Test 45
- Click on the +Related tab
Expected:
- The secondary tab for Object Exit should not be listed in the dropdown
- The secondary tab for Acquisition and L/M/I should be listed in the dropdown
Actions:
- Click on Acquisitions in the +Related dropdown
Expected:
- The Relate Existing button should NOT be displayed
Actions:
- Select one of the records from the listing
Expected:
- The record should be loaded in read only mode
- The Relate Existing button should NOT be present
Actions:
- Click on L/M/I in the +Related dropdown
- Select one of the records from the listing
Expected:
- The record should be loaded in edit mode
- The Relate Existing button should NOT be present
- The Unrelate button should NOT be present
Test 19: My Collectionspace Page
Actions:
- Load the My Collectionspace page
Expected:
- Object Exit records should not be included in the list
- Acquisitions, Objects, and L/M/Is should be included in the list
Testing NONE Permission Vocabularies
Test 21: Create New Page
Actions:
- Go to the Create New page in the top navigation
Expected:
- Person and Storage Location authorities should NOT be listed
Test 23: Search
Actions:
- Go to the Search page in the top navigation
Expected:
- Check the drop down in the Find area. Person should not be listed
- Check the drop down in the top center. Person should not be listed
Test 25: Predictive Text for NONE vocabularies in READ record
Actions:
- Open one of the Acquisition records you created for the this test
Expected:
- The Person and Organizations terms used in the record should be listed under the Terms Used menu in the right sidebar
- The Person terms should not be clickable
- The Acquisition record should be read-only, with none of the vocabulary fields editable
Test 27: Predictive Text in WRITE record
Actions:
- Open one of the Cataloging records you created for this test
Expected:
- The Person and Organization terms used in the record should be listed under the Terms Used menu in the right sidebar
- The Person terms should not be clickable
Actions:
- Go to the Production Person field group
- Delete one instance of the field group
- Click Save
Expected:
- Record should be saved and this should be confirmed by a Successfully Saved message
- The Person term from the field group should disappear from the Terms Used menu in the right sidebar
Actions:
- Go back to the Production Person field group
- Add a new instance of the field group
- Attempt to add a new entry, by typing something in the Person field
Expected:
- An error message should inform you that you do not have permission to enter new content in that field (mostly working, see CSPACE-5323)
Testing READ Permission Authorities
Test 31: Create New Page
Actions:
- Go to the Create New page in the top navigation
Expected:
- Link for Storage Location vocabulary is not displayed.
Test 33: Search and Edit Functionality
Actions:
- Continue from Test 31
- From the search box at the top center of the page, select Storage Locations from the dropdown
- Click search
- Navigate to one of the vocabulary terms found
Expected:
- The Vocabulary term should be loaded in read only mode. The Save, Revert, Clone, and Delete buttons should not be displayed
Test 35: Predictive Text in READ Record
Actions:
- Open the Intake record you created for this test
Expected:
- The record should be in read only mode
- The values from vocabulary fields used in the record should be listed under the Terms Used menu in the right sidebar
Actions:
- Click the Storage Location term in the Terms Used menu to pivot to it
Expected:
- The Storage Location term record should be successfully loaded
- The Storage Location term record should be in read only mode
Test 37: Predictive Text in WRITE/DELETE Record
Actions:
- Open one of the L/M/I records you created for this test
- Got to the Normal Location field
Expected:
- The Storage Location term from the Normal Location field should be listed under the Terms Used menu in the right sidebar
Actions:
- Delete the value in the Normal Location field
- Click Save / Save Only
Expected:
- Record should be saved and this should be confirmed by a Successfully Saved message
- The Storage Location term from the field group should disappear from the Terms Used menu in the right sidebar
Actions:
- Go back to the Normal Location field
- Write a substring of some existing Storage Location term in the field (e.g. MST)
Expected:
- A list of vocabulary terms should be presented
- You should be NOT presented with the option add a new Storage Location term to the authority
Actions:
- Select one of the presented vocabulary terms
- Click Save
Expected:
- Save should be successful
- The new Storage Location term should appear under the Terms Used menu on the right sidebar
Testing WRITE Permission Authorities
Test 41: Create New Page
Actions:
- Go to the Create New page in the top navigation
Expected:
- Organizations should be displayed
Actions:
- Create a new Organizations Authority term record
- Fill in Display name
- Save the record
Expected:
- Record should be saved
- Delete button should not appear
Test 43: Search and Edit Functionality
Actions:
- From the top center search area, select Organizations Authority from the dropdown
- Click search
- From the list of results, click one of them to load it
Expected:
- The Organization term should be loaded in edit mode.
Actions:
- Edit a field and click save
Expected:
- The record should successfully save
Test 45: Predictive Text in READ Record
Actions:
- Open one of the Acquisition records you created for this test
- Go to the Acquisition Source field
Expected:
- The Person and Organization terms in the field should be listed under the Terms Used menu in the right sidebar
- The record should be in read only mode, disallowing any edit
Actions:
- Click an Organizations term under the Terms Used menu to pivot to it
Expected:
- The Vocabulary term should be successfully loaded in edit mode
Test 47: Predictive Text in WRITE Record
Actions:
- Open one of the Cataloging Records you created for this test
- Go to the Production Organization field group
Expected:
- The Organization term from the field group should be listed under the Terms Used menu in the right sidebar
Actions:
- Delete one instance of the Production Organization field group
- Save the record
Expected:
- Record should be saved and this should be confirmed by a Successfully Saved message
- The Organization term should disappear from the Terms Used menu
Actions:
- Go back to the Production Organization field group
- Add another instance of the field group
- Enter some Organization term into the Organization field
Expected:
- A list of vocabulary terms should be presented
- You should have the option to create a new Organization term from the typed name
Actions:
- Select one of the presented vocabularies
- Click Save
Expected:
- Save should be successful
- The new Vocabulary term should appear under the Terms Used menu
Actions:
- Go back to the field you changed
- Write something in the field that isn't an existing Vocabulary term
- Click Add To Local Organizations
- Click Save
Expected:
- Save should be successfull
- The new Organization term should appear under the Terms Used menu
Combined Authorities
Test 51: Behavior on NONE/READ/WRITE Combination
Actions:
- Open the Exhibition record you created for this test
- Got to the Venue field group
Expected:
- The Organization, Place, and Storage Location terms from the Name fields should be listed under the Terms Used menu
Actions:
- Delete the field group that uses the Place term
- Click Save
Expected:
- Record should be saved and this should be confirmed by a Successfully Saved message
- The Place term should disappear from the Terms Used menu
Actions:
- Add another instance of the Venue field group
- Write a substring in the Name field that will match vocabulary terms in the Places, Storage Locations, and Organizations authorities (eg. "Jam")
Expected:
- A list of vocabulary terms should be presented, but should only contain entries from the Storage Locations and Organizations authorities
- You should NOT be presented with the option add a new Vocabulary term (eg. "Jam") to the Places or Storage Locations authorities
Actions:
- Select one of the presented vocabulary terms
- Click Save
Expected:
- Save should be successful
- The new term should appear under the Terms Used menu
Actions:
- Add another instance of the Venue field group
- Write any term in the Name field
Expected
- You should be presented with the option to add a new Vocabulary term to the Organizations authority
Action
- Add the term to the Organizations authority
- Click Save
Expected
- Save should be successful
- The new Organization term should appear under the Terms Used menu