Difference between revisions of "Development/Functional testing/Function tests"

From AtoM wiki
(migrate qubit content, update where applicable to 2x)
 
m (minor tweaks to breadcrumb and page title)
Line 1: Line 1:
[[Main Page]] > [[Development]] > [[Development/Functional testing]] > Function tests
+
{{#pagetitle: Function tests }}
 +
[[Main Page]] > [[Development]] > [[Development/Functional testing]] > Development/Functional testing/Function tests
  
  

Revision as of 18:55, 12 August 2014

Main Page > Development > Development/Functional testing > Development/Functional testing/Function tests

Create

User should be able to create and save a function

  • Clicking on Add new opens blank function edit screen
  • Can enter data in all fields in "Identity area" div
  • Can enter multiple values in "Parallel form(s) of name" and "Other form(s) of name" fields
  • Can enter data in all fields in "Context Area" div
  • Can enter data in all fields in "Control Area" div
  • Clicking on Create closes edit screen and opens show screen
  • All changes to created record are visible on show screen

Update

User should be able to edit and save changes to a function

  • Can enter & edit data in all fields in "Identity area" div
  • Can add new "Parallel form(s) of name" and "Other form(s) of name"
  • Can edit and delete existing "Parallel form(s) of name" and "Other form(s) of name"
  • Can enter data in all fields in "Context Area" div
  • Can enter data in all fields in "Control Area" div
  • Clicking on "Save" saves all changes, closes the edit screen and opens the show screen
  • Clicking on "Cancel" discards all changes, closes the edit screen and opens the show screen
  • All changes to saved record are visible on show screen

Relationships

Create relationships

User should be able to create relationships to other functions, archival descriptions and actors

  • Clicking "Add new" opens a dialog for creating a new relationship
  • Dialog opens with focus on first field ("Authorized form of name" or "Title"), and an auto-complete list appears (showing a maximum ten values)
  • Typing text in the autocomplete field narrows the options available to select
  • Can select a value from the autocomplete list
  • Can enter data in all dialog fields
  • Function relationship only: "Category" select box allows selecting one of the three designated ISDF values (hierarchical, temporal, and associative)
  • Clicking Submit closes the dialog, and adds a new row to the appropriate relationship table
  • Clicking Cancel closes the dialog without saving the dialog data
  • Clicking Save for the Function saves *all* new relationships issue 2129
  • Clicking Cancel for the Function discards any new relationships

View relationships

User should be able to see all relationships

  • Saved record shows "Authorized form of name" or "Title" of related object as a link
  • Function relationship only: Saved record shows the "type" of the related function in addition to data entered in the dialog
  • Clicking on the related function name opens show screen for that function
  • Show screen for related function shows same data as function from which it was linked
  • Clicking on related authority records and resources open show screens for those objects
  • Show screens for related authority records and resources show link to Function

Edit relationships

User should be able to edit existing relationships

  • Clicking the "pencil" icon in the relationship table opens a dialog populated with the appropriate relationship data issue 2315
  • Focus should *not* automatically be given to the first field in the dialog
  • Clicking on an autocomplete field highlights the entire contents of the field
  • Deleting the previous value in the autocomplete field shows all (up to 10) existing functions for selection.
  • Can select a new autocomplete value
  • All other dialog fields can be edited
  • Clicking Submit closes the dialog and updates the appropriate row in the relationship table
  • Clicking Cancel closes the dialog and ignores any changes
  • Clicking Save for the Function saves *all* changed relationships
  • Clicking Cancel for the Function discards any changes to the relationships

Delete relationships

User should be able to delete any relationships and delete related objects

  • Clicking the "x" icon in the relationship table removes the row from the table
  • Clicking Save for the Function deletes *all* removed relationships
  • Clicking Cancel for the Function cancels the deletion of any removed relationships
  • User can delete a function with related functions, archival material and actors
  • User can delete an archival description with related functions
  • User can delete an authority record with related functions

Translate relationships

Users should be able to translate existing relationships

  • TO-DO Display source language text above the appropriate field when editing a relationship in a different culture
  • TO-DO Don't show source language text in dialog fields when editing in a different culture

Translate

Translators should be able to see and translate Function text from its original language

  • When editing a Function in a language different from its original language, the original language values should be shown above the appropriate field
  • Fields should not show the original language text
  • Clicking Save should save translated text without affecting the source text
  • Saved Functions should show text in the current user culture if available, and the source language text if translated text is not available in the current culture

Delete

User should be able to delete a function without affecting associated records

  • Clicking Delete should result in a warning
  • Clicking Cancel should abort the delete process
  • Clicking Confirm should complete the delete process (close the delete screen and open the Function list screen)
  • Deleting a Function that is related to other functions, archival descriptions or actors should delete those relationships, but not affect the related objects
  • Deleting related resources and authority records should not affect the Function