Uploaded image for project: 'ui-organization'
  1. ui-organization
  2. UIORG-129

Disallow Deletion of SPs that are Primary for Location

    XMLWordPrintable

    Details

    • Template:

      Description

      User story:
      As a user who wants to delete a service point
      I want to be prevented from deleting service points that are primary for any locations
      Because a location without a primary service point is invalid

      As a user who wants to delete a service point
      I want to be warned if it is associated with a location as a non-primary service point
      So I am aware of what my delete will be impacting, but can still choose to go forward with it

      Scenarios:

      1. Scenario
        • Given a service point has been made primary service point for one or more location (this is done on the location form)
        • When the service point is displayed in edit mode
        • Then:
          • The Delete button should display per usual (UX for this will change in the future along the lines of what we'll be doing for other records - UX-212 is tracking the design work for this)
      2. Scenario
        • Given a service point has been made primary service point for one or more location (this is done on the location form)
        • When Delete button is clicked
        • Then:
          • Delete is prevented
          • Popup will display:
            • Header: Cannot delete service point
            • Body: This service point cannot be deleted, as it is primary service point for one or more locations.
            • Button: Okay (button closes popup)
      3. Scenario
        • Given a service point is associated with one or more location (this is done on the location form) but is not primary for any of them
        • When Delete button is clicked
        • Then:
          • Popup will display:
            • Header: Delete service point?
          • Body: <servicePointName> is associated with one or more locations. Are you sure you want to remove <servicePointName>?
          • Buttons: Cancel, Delete
      4. Scenario
        • Given a service point is not associated with any location records
        • When clicked
        • Then a delete confirmation should appear reading:
          • Header: Delete service point?
          • Body: <servicePointName> will be removed
          • Buttons: Cancel, Delete
      5. Scenario
        • Given a service point
        • When successfully deleted
        • Then toast confirmation will appear reading "<servicePointName> was successfully deleted."

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                mpk35 Michal Kuklis
                Reporter:
                cboerema Cate Boerema
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases