Uploaded image for project: 'stripes-components'
  1. stripes-components
  2. STCOM-228

Make ControlledVocab Component Behave Like Patron Group CRUD

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • None

    Description

      Purpose: We want all the controlled vocab CRUD lists to behave similarly to Patron Group CRUD.

      Scenarios:

      1. Scenario
        • Given the controlled vocab CRUD pages
        • When displayed
        • Then a column containing Number of <objects> (e.g. users, items etc) (the count of records assigned to Value X) should display, as shown in the below linked patron group CRUD mockups (see UIU-266 for more detailed test scenarios)
      2. Scenario
        • Given the Number of assigned objects displaying
        • When > 0
        • Then:
          • The count should be a link to the search results page in the related app
          • The search results should be pre-filtered to only those using Value X
          • Value X should be selected in the filter sidebar
      3. Scenario
        • Given the controlled vocab CRUD pages
        • When displayed
        • Then a column labelled "Last updated" should display as shown in linked patron group CRUD mockups
      4. Scenario
        • Given the controlled vocab CRUD pages
        • When a controlled vocab value is created
        • Then the Last updated column should be populated with, "<dateCreated> by <creatorLastName>, <creatorFirstName>" as shown in the mockups
      5. Scenario
        • Given the controlled vocab CRUD pages
        • When a controlled vocab value is edited
        • Then the Last updated column should be populated with, "<dateEdited> by <editorLastName>, <editorFirstName>"
      6. Scenario
        • Given a user does not have a First name specified
        • When displayed in the Last updated column
        • Then the comma between last and first name should not display
      7. Scenario
        • Given the controlled vocab CRUD pages
        • When User A is displayed in the Last updated column
        • Then the name should be a link to User A record
      8. Scenario
        • Given the dates displaying in the Last updated column
        • When locale is changed in Settings > Organization > Language and localization
        • Then the date format should update accordingly
      9. Scenario
        • Given a value row in the controlled vocab table
        • When displayed
        • Then a delete button/icon should be displayed
      10. Scenario
        • Given the Delete button/icon on controlled vocab pages
        • When the value is in use by one or more record
        • Then the Delete button will be disabled Then the Delete button will not be disabled CB: Per discussion in roundup, this creates a performance issue
      11. Scenario
        • Given a disabled Delete button
        • When hovered over
        • Then hover text will appear: "<controlledVocabType> cannot be deleted when used by one or more <objectTypes>" (e.g. "Patron group cannot be deleted when used by one or more users")
      12. Scenario
        • Given the disabled Delete button
        • When clicked
        • No deletion will occur and hover text will appear: "Patron group cannot be deleted when used by one or more users"
      13. Scenario CB: Adding this scenario mid-sprint per discussion with the tech team on roundup. Disabling the delete button, while better from a UX perspective, isn't technically feasible. MD: I've split this scenario out into STCOM-237
        • Given a controlled vocab value is in use by one or more record
        • When delete button is clicked
        • Then:
          • No deletion will occur and hover text will appear
          • Popup should display:
            • Header: Cannot delete <controlledVocabType>
            • Body: This <controlledVocabType> cannot be deleted, as it is in use by one or more record.
            • Buttons: Okay
      14. Scenario
        • Given a controlled vocab value is NOT in use by one or more record
        • When delete button/icon is clicked
        • Then a window will pop up asking user to confirm the deletion or cancel the deletion as shown here: https://drive.google.com/file/d/0By8ccf5VV4EWZkRSVXc2cE1IbmM/view?usp=sharing
          • Header: Delete <controlledVocabType>? CB: Please use sentence case, despite the title case used in the mock-ups
          • Body: <valueName> will be removed from <controlledVocabType>.
          • Buttons: Cancel, Delete
      15. Scenario
      16. Scenario
        • Given the Cancel button on the delete confirmation window
        • When clicked
        • Then the value will not be deleted and the modal popup will close
      17. Scenario
        • Given a controlled vocabulary value with no name specified (name is, for example, "Address type", "Patron group", "Material type")
        • When save is attempted
        • Then:
          • Save is not allowed
          • Validation message should display reading, "Please fill this in to continue"
      18. Scenario
        • Given a controlled vocabulary value with no description specified
        • When save is attempted
        • Then save IS allowed (description should not be required)

      Out of Scope:

        • Undo functionality on delete confirmation

      Mockups: These mockups are for patron group CRUD but we want to use the same pattern consistently for the other controlled vocab CRUD pages (e.g. Loan Types, Material Types, Address Types etc.)

      https://drive.google.com/drive/folders/0By8ccf5VV4EWWjhNLTVkMmNQbW8

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                md331 Mark Deutsch
                cboerema Cate Boerema
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases