Skip to end of metadata
Go to start of metadata

Work Authority - QA Test Plan

Tests operations related to creating and managing Work terms within a Work Authority.

Icon

To complete this test, use the fine and contemporary art profile, located at: http://qa.collectionspace.org:8180/collectionspace/ui/fcart/html/index.html

 

Relevant wiki pages:

UI Layer

Test 1: Vocabularies
  • Actions:
    1. From the Create New screen, choose the Work radio button
  • Expected:
    • A list of vocabularies should appear in a drop-down menu
  • Actions:
    1. Choose the Local Works vocabulary and click Create
  • Expected:
    • A blank Work record editing page should appear
    • In the top right corner, the label "Work [Local Works]" should appear
  • Actions:
    1. Write "Mona Lisa" in the Display Name field and save the record
  • Expected:
    • The record should save as expected and the label "Work [Local Works]" should still appear in the top right corner
  • Actions:
    1. Return to the Create New screen and choose Work
    2. Choose the CONA Works vocabulary from the drop-down and click Create
  • Expected:
    • A blank Work record editing page should appear
    • In the top right corner, the label "Work [CONA Works]" should appear
  • Actions:
    1. Write "Isleworth Mona Lisa" in the Display Name field and save the record
  • Expected:
    • The record should save as expected and the label "Work [CONA Works]" should still appear in the top right corner
  • Actions:
    1. Using the upper right search bar, write "Mona Lisa" in the keyword search
    2. Select "Work" from the drop down and press search
  • Expected:
    • Both records you created should appear in the search results
  • Actions:
    1. Using the upper right search bar, write "Mona Lisa" in the keyword search
    2. Select "Work-Local Works" from the drop down and press search
  • Expected:
    • Only the first record you just created should appear in the search results
  • Actions:
    1. Click on the record for "Mona Lisa" that appears in the search results
  • Expected:
    • The record should load and the label "Work [Local Works]" should appear in the top right corner
  • Actions:
    1. Using the upper right search bar, write "Mona Lisa" in the keyword search
    2. Select "Work-CONA Works" from the drop down and press search
  • Expected:
    • Only the second record you created ("Isleworth Mona Lisa") should appear in the search results
  • Actions:
    1. Click on the record for "Isleworth Mona Lisa" that appears in the search results
  • Expected:
    • The record should load and the label "Work [CONA Works]" should appear in the top right corner
  • Actions:
      1. Create a new cataloging record and fill in the required fields
      2. Type "Mona Lisa" in the Content->Work field
  • Expected:
      • Both Mona Lisa and Isleworth Mona Lisa should appear in the term completion drop down
  • Actions:
      1. Choose "Isleworth Mona Lisa"
      2. Save the record
  • Expected:
      • "Isleworth Mona Lisa" remains in the Content->Work field and appears in the right sidebar
  • Actions:
      1. Click on "Isleworth Mona Lisa" from the "used by" section of the right sidebar
  • Expected:
      • You successfully pivot to the record for "Isleworth Mona Lisa"
  • Actions:
      1. Create another new cataloging record and fill in the required fields
      2. Type "Mona Lisa" in the Content->Work field
  • Expected:
      • Both Mona Lisa and Isleworth Mona Lisa should appear in the term completion drop down
  • Actions:
      1. Choose "Mona Lisa"
      2. Save the record
  • Expected:
      • "Mona Lisa" remains in the Content->Work field and appears in the right sidebar
  • Actions:
      1. Click on "Mona Lisa" from the "used by" section of the right sidebar
  • Expected:
      • You successfully pivot to the record for "Mona Lisa"
Test 2: Display Name
  • Actions:
    1. From http://qa.collectionspace.org:8180/collectionspace/ui/fcart/html/createnew.html, create a new Work. (You can use the default Local Works vocabulary; you'll next see a screen titled "Work [Local Works]")
    2. Enter "Work" in any field other than the Display Name field
    3. Click the Save button
  • Expected:
    • The message "Please specify a Display Name" should be displayed in the Message Bar at the bottom of the screen.
    • The Work record should not be saved
  • Actions:
    1. Enter a display name of your choosing into the Display Name field.
    2. Tab out of the Display Name field.
  • Expected:
    • Your Display Name should now be displayed near the top of the record, above the tabs
  • Actions:
    1. Click the green '+' button to create a new repeatable Term Group. (You may need to scroll down to see this new Term Group.)
    2. Enter a different display name of your choosing into the Display Name field of this second Term Group.
    3. Mark this Term block as "Preferred"
  • Expected:
    • Your new Display Name should be displayed above the tabs
Test 3: All fields saved on new and edited Work record
  • Actions:
    1. Variation a: Create a new Work record
    2. Variation b: Edit an existing Work record (Search for a Work you know exists, using the top right search area)
    3. Fill out the entire record (except for the Hierarchy section at bottom), based on the following:
      • In the select boxes (drop down boxes), select something other than the first
      • In the authority fields, either write something and add it using the small dialog that appears, or write something and select from the options that appear. (Authority fields are noted by a down-facing gray arrow.)
      • In the regular text areas write regular text
    4. Create at least two fields or groups for any repeatable fields or groups
    5. Click the bottom save button
  • Expected:
    • A "Work successfully saved" (both variation a and variation b) message should appear along with the current time (at the bottom of the page)
    • After the successful save message appears, all the fields should contain the same value as you entered/selected
    • After the successful save message appears, the select boxes should contain the same values as you selected
Test 5: Removing values from all fields
  • Actions:
    1. Continue from test 3 (or open existing Work record (via the search functionality))
    2. Remove the values from all the fields in the record, except the Preferred Display Name

      Icon

      After you've removed any non-preferred Display Name(s), remember to delete the repeating group that had contained the non-preferred term (by clicking the 'x' next to the group). Otherwise, you will receive the "Please specify a Display Name" error message upon trying to save.

    3. Click the Save button
  • Expected:
    • A success message from Save should appear
    • The header above the tabs should show only the Preferred Display Name for the Work record
    • All the fields should remain empty
  • Actions:
    1. Delete the Display Name
    2. Click the save button
  • Expected:
    • The message "Please specify a Display Name" should be displayed in the Message Bar at bottom
    • The Work record should not be saved
Test 6: Fold/Unfolding boxes
  • Actions:
    1. Variations: Do this for each of the boxed areas
    2. Click the fold/unfold symbol or text next to it
  • Expected:
    • First time the boxed area should fold, and symbol should change to folded
    • Second time the boxed area should unfold, and symbol should change to unfolded
Test 7: Deletion of Record
  • Actions:
    1. Create a new Work record and fill in at least the Display Name
    2. Take note of the Display Name of the record
    3. Click the "Delete" button in the very bottom of the record
  • Expected:
    • The delete button should be disabled and nothing should happen
  • Actions:
    1. Save the record
    2. Click the "Delete" button in the very bottom of the object record
  • Expected:
    • A dialog should appear asking you to confirm deletion
  • Actions:
    1. Click cancel.
  • Expected
    • Dialog should be dismissed
    • no other changes should occur.
  • Actions:
    1. Click the delete button again
  • Actions:
    1. Click the close symbol
  • Expected
    • Dialog should be dismissed
    • No other changes should occur.
  • Actions:
    1. Click the delete button again
    2. In the appearing dialog, click Delete
  • Expected:
    • You should be redirected to the Find and Edit page
  • Actions:
    1. Using the top right search area, select Work from the drop down and enter the Display Name of the deleted record
  • Expected:
    • The Work should not be found.
  • Actions:
    1. Create a new Cataloging record and fill in the required fields
    2. Enter "Test Work" in the Content->Work field and add it to the Local Works authority
    3. Save the record
    4. Create a second new Cataloging record and fill in the required fields
    5. Enter "Test Work Again" in the Content->Work field and add it to the Local Works authority
    6. Save the record
    7. Search for "Test Work" and select Work in the drop down in the upper right search bar
  • Expected:
    • Both records you just created should appear
  • Actions:
    1. Open one of the records
    2. Click the "Delete" button in the very bottom of the record
  • Expected:
    • A dialog should appear warning that “This Work record can not be removed. It is used by other records."
    • The record should not be deleted.
Test 8: Docking Title Bar
  • Actions:
    • Continue from Test 7 (or create a new record)
    • If your browser has a scroll bar visible, scroll the page down
  • Expected:
    • The title bar (term name, record/vocabulary type) should remain pinned to the top of the page while you scroll
  • Actions
    • If your browser does not have a scroll bar visible, add enough instances of a repeatable field to lengthen the page to where a scroll bar is necessary
    • Scroll the page down
  • Expected:
    • The title bar (term name, record/vocabulary type) should remain pinned to the top of the page while you scroll
Test 9: Alternating shading for repeated groups
  • Actions:
    • Select the green plus sign above the Term group twice to create two additional instances of the group
  • Expected:
    • The new Term groups should alternate between dark/light shading
Warnings
Test 11: Cancel Changes buttons
  • Actions:
    1. Open an existing Work record, do not make any changes
    2. Variation A: Click Cancel changes button at the top of the page
    3. Variation B: Click Cancel changes button at the bottom of the page
  • Expected:
    • Cancel changes buttons should be disabled and nothing should happen
  • Actions:
    1. Edit at least one field
    2. Tab or click outside of that field
    3. Variation A: Click Cancel changes button at the top of the page
    4. Variation B: Click Cancel changes button at the bottom of the page
  • Expected:
    • Cancel changes button should be active
    • Record should be reverted to before changes were made
  • Actions:
    1. Click the Save button
    2. Variation A: After successful save, click the Cancel changes button at the top of the page
    3. Variation B: After successful save, click the Cancel changes button at the bottom of the page
  • Expected:
    • Cancel changes button should be disabled and nothing should happen
Test 13: Warning on attempting to leave edited page
  • Actions:
    1. Variation a: Create a new Work record
    2. Variation b: Edit an existing Work record
    3. Edit a field (on variation a, at least fill out Display Name)
    4. Click the Find and Edit menu item
  • Expected:
    • A dialog should appear, warning to navigate away from edited/unsaved page
  • Actions:
    1. Variation I: click Save button
    2. Variation II: click Don't Save button
    3. Variation III: click the Cancel button
    4. Variation IV: click the close symbol in NE corner
  • Expected:
    1. on (I): The Work record should be saved and you should be redirected to the page you were navigating to. Check whether your edit was saved by navigating back to the record.
    2. on (II): The Work record should not be saved and you should be redirected to the page you were navigating to. Check whether your edit was saved saved by navigating back to the record.
    3. on (III) and (IV): dialog should be dismissed without any changes (no saves or redirects).
Keyboard Navigation:
Test 21: All fields available via the keyboard
  • Actions:
    1. Use tab through the entire record
  • Expected:
    • Each of the fields should be reachable
    • The two save buttons, as well as Cancel button, should be reachable
    • The folding functionality should be usable (tab to it and hit space)
    • It should at all times be possible to see where the focus is
Test 23: Vocabulary Fields usable via keyboard only
    • Actions:

      1. Open or create a Cataloging record

      2. Go to a Work authority field on that record, such as Content->Work

      3. Variation a: Enter an existing Work, then, after it appears, add a prefix or suffix to that existing Work

      4. Variation b: Enter a non-existing Work

    • Expected
      • Variation a: The drop down of existing authorities should be reachable using keyboard only
      • Variation b: The option of Add on the appearing dialog should be available using keyboard only
Preferred and Non-Preferred Terms
Icon

You can skip the following test, until such time as the work authority is tied to a field in a tenant that does not allow the use of non-preferred terms.

Test 26: Preferred and Non-Preferred Terms: NPT Not Allowed
  • Actions:
    1. Log out of CollectionSpace
    2. Log back in to the LifeSci profile, located at: http://qa.collectionspace.org:8180/collectionspace/ui/lifesci/html/index.html
    3. From the Create New screen, create a new Work.
    4. Enter "The Barber of Seville" in the Display Name field
    5. Create a second repeatable term block
    6. Enter "The Barber of Seville, or The Futile Precaution" in the second Display Name field
    7. Create a third repeatable term block
    8. Enter "Il barbiere di Siviglia (The Barber of Seville)" in the third Display Name field
    9. Mark the second term, "The Barber of Seville, or The Futile Precaution", as preferred
    10. Save the record
    11. Create a new Cataloging record and fill in the required fields
    12. Type "The Barber of Seville" in the "Content->Work" field
  • Expected:
    • In the term completion drop down, "The Barber of Seville, or The Futile Precaution" should appear in black
    • Underneath "The Barber of Seville, or The Futile Precaution", the two non-preferred terms, "The Barber of Seville" and "Il barbiere di Siviglia (The Barber of Seville)" should appear indented in gray
  • Actions:
    1. Click on "The Barber of Seville"
  • Expected:
    • "The Barber of Seville" should not be clickable.
  • Actions:
    1. Click on "Il barbiere di Siviglia (The Barber of Seville)"
  • Expected:
    • "Il barbiere di Siviglia (The Barber of Seville)" should not be clickable
  • Actions:
    1. Click on "The Barber of Seville, or The Futile Precaution"
  • Expected:
    • The field now contains the term "The Barber of Seville, or The Futile Precaution"
  • Actions:
    1. Save the record
  • Expected:
    • The Content->Work field still contains the term "The Barber of Seville, or The Futile Precaution" and the term should appear in the right sidebar
  • Actions:
    1. Click on the term in the right sidebar
  • Expected:
    • You should navigate to the Work record for "The Barber of Seville, or The Futile Precaution" indicating that "The Barber of Seville, or The Futile Precaution" is the Preferred term and "The Barber of Seville, or The Futile Precaution" and "Il barbiere di Siviglia (The Barber of Seville)" are non-preferred terms
Test 27: Preferred and Non-Preferred Terms: Non-preferred terms allowed
  • Actions:
    1. Log out of CollectionSpace
    2. Log back in to the Core profile, located at: http://qa.collectionspace.org:8180/collectionspace/ui/core/html/index.html. Note: as of 2017-07-02, the Cataloging record in the Core profile/tenant doesn't have a Content->Work field, necessary to perform this test. Perhaps try using the Fine and Contemporary Art (FCART) profile instead? - ADR
    3. From the Create New screen, create a new Work.
    4. Enter "The Barber of Seville" in the Display Name field
    5. Create a second repeatable term block
    6. Enter "The Barber of Seville, or The Futile Precaution" in the second Display Name field
    7. Create a third repeatable term block
    8. Enter "Il barbiere di Siviglia (The Barber of Seville)" in the third Display Name field
    9. Mark the second term, "The Barber of Seville, or The Futile Precaution" as preferred
    10. Save the record
    11. Create a new Cataloging record and fill in the required fields
    12. Type "The Barber of Seville" in the "Content->Work" field
  • Expected:
    • In the term completion drop down, "The Barber of Seville, or The Futile Precaution" should appear in black
    • Underneath "The Barber of Seville, or The Futile Precaution", the two terms "The Barber of Seville" and "Il barbiere di Siviglia (The Barber of Seville)" should appear indented in black
  • Actions:
    1. Click on "The Barber of Seville"
  • Expected:
    • The field now contains the term "The Barber of Seville"
  • Actions:
    1. Save the record
  • Expected:
    • The Content->Work field still contains the term "The Barber of Seville" and the term should appear in the right sidebar
  • Actions:
    1. Click on "The Barber of Seville" in the right sidebar
  • Expected:
    • You should navigate to the Work record for "The Barber of Seville, or The Futile Precaution" indicating that "The Barber of Seville, or The Futile Precaution" is the Preferred term and "The Barber of Seville" and "Il barbiere di Siviglia (The Barber of Seville)" are non-preferred terms

Hierarchical Authorities QA Test Plan - Work Authority

For this test, please return to the fine and contemporary art profile, located at: http://qa.collectionspace.org:8180/collectionspace/ui/fcart/html/index.html

  • Actions:
    1. Create a new Work record
    2. Set the Display Name to "Foo Play"
    3. Set the broader context to "Foo Production" (add if necessary when prompted)
    4. Set a narrower context to "Foo Comedy" (add if necessary when prompted)
    5. Add a repeatable narrower context of "Foo Drama" (add if necessary when prompted)
    6. Save.
  • Expected:
    • Broader context (Foo Production), Narrower contexts (Foo Comedy and Foo Drama) and equivalent context (none) should be correct.
  • Actions:
    1. Search for "Foo Drama", and edit that record.
    2. Set a narrower context to "Foo Death of a Salesman" (add if necessary when prompted)
    3. Add a repeatable narrower context of "Foo King Lear" (add if necessary when prompted)
    4. Save.
  • Expected:
    • Check that the narrower context list (Foo Death of a Salesman and Foo King Lear), broader context (Foo Play), and equivalent context (Foo Comedy) are correct.
  • Actions:
    1. Try to type something in the equivalent context field
  • Expected:
    • Equivalent context field should be read-only and nothing should happen.
  • Actions:
    1. Add another narrower context of "Foo Antigone" (add if necessary when prompted)
    2. Save.
  • Expected:
    • Check that the narrower context list (Foo Death of a Salesman, Foo King Lear, Foo Antigone), broader context (Foo Play), and equivalent context (Foo Comedy) are correct.
  • Actions:
    1. Search for "Foo Death of a Salesman", and open that record.
  • Expected:
    • Check that broader context (Foo Drama) and equivalent context (Foo King Lear, Foo Antigone) are correct.
  • Actions:
    1. Search for "Foo Comedy", and open that record.
  • Expected:
    • Check that broader context (Foo Play) and equivalent context (Foo Drama) are correct.
  • Actions:
    1. Set a narrower context to "Foo Noises Off" (add if necessary when prompted)
    2. Add a repeatable narrower context of "Foo Twelfth Night" (add if necessary when prompted)
    3. Save.
  • Expected:
    • Check that the narrower context list (Foo Noises Off and Foo Twelfth Night), broader context (Foo Play), and equivalent context (Foo Drama) are correct.
  • Actions:
    1. Search for "Foo" on Work (be sure not to search on "All Record Types"),
  • Expected:
    • Ensure the list is complete (alphabetical listing, by sorting on the ID Number column):
      • Foo Antigone
      • Foo Comedy
      • Foo Death of a Salesman
      • Foo Drama
      • Foo King Lear
      • Foo Noises Off
      • Foo Play
      • Foo Production
      • Foo Twelfth Night
    • Browse to several records to ensure their hierarchy is correct:
      • Foo Production
        • Foo Play
          • Foo Drama
            • Foo Antigone
            • Foo Death of a Salesman
            • Foo King Lear
          • Foo Comedy
            • Foo Noises Off
            • Foo Twelfth Night
  • Actions:
    1. Create a new Work record
    2. Fill out display name
    3. In the Narrower Context field enter "Foo Noises Off".
  • Expected:
    • A dialog should appear saying something like "Foo Noises Off currently has broader term Foo Comedy. Change broader term?"
  • Actions:
    1. In the appearing dialog, click No.
  • Expected:
    • Dialog should be dismissed
    • No changes should occur
  • Actions:
    1. Change the Narrower context field to "Foo Noises Off" again
    2. In the appearing dialog, click the close symbol
  • Expected:
    • Dialog should be dismissed
    • No changes should occur
  • Actions:
    1. Change the Narrower context field to "Foo Noises Off" again
    2. In the appearing dialog, click Yes
    3. Save the record
  • Expected:
    • After the successful save message appear, the new term should be displayed as entered.
  • Actions:
    1. Click the Go To button next to Foo Noises Off
  • Expected:
    • The broader context for Foo Noises Off should be the term you created in the previous test, not Foo Comedy
  • Actions:
    1. Search for the Work record "Foo Noises Off"
    2. Open that record
    3. Check its Hierarchy section
  • Expected:
    • This record should now have only a Broader Context of your most recently-created Work record. It should no longer be linked to any of the other "Foo ..." records you created earlier.
  • Actions:
    1. Delete the record
  • Expected:
    • You should not be able to delete the record. Instead you should receive a message similar to "This Work record can not be removed. It is used by other records."
  • Actions:
    1. Remove the Broader context
    2. Add a narrower context
    3. Save the record
    4. Delete the record
  • Expected:
    • You should not be able to delete the record. Instead you should receive a message similar to "This Work record can not be removed. It is used by other records."
  • Actions:
    1. Add a Broader context. (The record should now have both a Broader and narrower context.)
    2. Save the record
    3. Delete the record
  • Expected:
    • You should not be able to delete the record. Instead you should receive a message similar to "This Work record can not be removed. It is used by other records."
  • Actions:
    1. Remove both the narrower and the broader contexts
    2. Save the record
    3. Delete the record
  • Expected:
    • You should be able to successfully delete the record
  • Actions:
    1. Search for the record
  • Expected:
    • The record should not appear in the search results
Test 15: Spend 3 minutes trying to break something and uncover bugs:
  • Spend a few minutes forcing the program to expose buggy behavior by:
    • using the system in ways not covered by the testplan
    • using the system in unexpected ways
    • doing whatever you can think of that will produce bugs and unexpected behavior.
    • Be creative!
    • feel free to extend this to behavior related to this testplan

 

Known bugs, Work:

Loading
T Key Summary Assignee Reporter P Status Resolution Created Updated Due
Bug CSPACE-7129 Modifying Display Date in structured date field wipes values from three other fields Ray Lee Aron Roberts Critical Open Unresolved Jul 02, 2017 Jul 06, 2017

Known bugs, all Authorities:

Loading
T Key Summary Assignee Reporter P Status Resolution Created Updated Due
Bug CSPACE-6951 Advanced Search: make the ability to create new authority terms in Search-specific autocomplete fields configurable Megan Forbes Kara S. Vetter Major Open Unresolved May 12, 2016 Aug 09, 2016
Bug CSPACE-6464 Keyboard navigation in Mac Chrome & Firefox skips "Preferred" button in Term Groups Aron Roberts Aron Roberts Minor Open Unresolved Oct 17, 2014 Jul 02, 2017
Bug CSPACE-5796 Term completion spinner gets stuck spinning forever if ESC on narrower term dialog Yura Zenevich Patrick Schmitz Minor Open Unresolved Dec 19, 2012 May 14, 2015
Bug CSPACE-5605 Selecting a non-preferred term in Broader or Narrower Context leads to preferred term being displayed following Save Megan Forbes Aron Roberts Minor Open Unresolved Oct 01, 2012 Aug 09, 2016
Bug CSPACE-5532 Message when display name is missing when updating an authority item is too generic, not actionable Aron Roberts Aron Roberts Minor Open Unresolved Sep 17, 2012 Aug 09, 2016
Bug CSPACE-5398 "Change broader context" dialog missing term name, appears as "null currently has broader term ..." Alexey Novak Carly Bogen Major Open Unresolved Jul 12, 2012 Aug 09, 2016
Bug CSPACE-4628 An Authority term record can inadvertently have the same term as both a Broader and Narrower Context Aron Roberts Aron Roberts Major Open Unresolved Dec 02, 2011 Aug 09, 2016

  • No labels

1 Comment

  1. Re: Hierarchy Test: Alphabetical sort of All Record Type search (by ID Number on any field) doesn't work: See: http://issues.collectionspace.org/browse/CSPACE-5287.

    Also: regarding message when trying to change broader context, see: http://issues.collectionspace.org/browse/CSPACE-5398