Uploaded image for project: 'ui-orders'
  1. ui-orders
  2. UIOR-258

Reconfigure the POL remove button and add confirmation modal

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      ACQ Sprint 65
    • Story Points:
      2
    • Development Team:
      Thunderjet

      Description

      Purpose: POL has a "Remove" button that is in an odd place and deletes the entire POL without any confirmation. We need to move the button, change it to delete, and add a confirmation modal

      As a staff person placing orders
      I want to be able to delete order lines when appropriate, but first have a confirmation
      So that I don't accidentally delete order lines that I didn't mean to

      Scenarios

      1. Scenario 1
        • Given the POL edit screen with its "Remove" button at the bottom right
        • Remove the "Remove" button
        • And replace it with a caret next to the POL number in the PO view, with the following options
          • Delete, preceded by the trashcan icon
          • Edit, preceded by the edit pencil icon
      2. Scenario 2
        • Given the POL caret's "Edit" option
        • When a user clicks it
        • Then open the POL edit screen
        • And take the same actions as when the user clicks the edit pencil at the top right of the PO view
      3. Scenario 3
        • Given the POL caret's "Delete" option
        • When the user clicks it
        • Then a confirmation modal should appear, formatted as shown in 07-Settings Delete file extension modal.png
          • Except with the following text:
          • Modal Header: Delete [POL number]?
          • Body: Delete purchase order line?
          • Standard Cancel/Delete buttons, with Delete defaulted
      4. Scenario 4
        • Given the delete confirmation modal
        • When a user clicks Cancel
        • Then close the delete confirmation modal without deleting the POL
      5. Scenario 5
        • Given the delete confirmation modal
        • When a user clicks Delete
        • Then delete the POL
        • Remove the POL from the list of POLs in the PO
        • And return the user to the PO detail view, without the POL that was just deleted
        • And display a standard green success toast, similar to the attached, with the wording: The purchase order line [POL number] was successfully deleted
      6. Scenario 6
        • Ensure automated testing coverage for this new code is 80% plus and confirm with screenshot

      See attached wireframes

        TestRail: Results

          Attachments

          1. 07-Settings Delete file extension modal.png
            07-Settings Delete file extension modal.png
            29 kB
          2. Delete POL Remove button.PNG
            Delete POL Remove button.PNG
            105 kB
          3. POL Action caret.PNG
            POL Action caret.PNG
            219 kB
          4. poline_caret.png
            poline_caret.png
            194 kB
          5. poline_confirmation.png
            poline_confirmation.png
            172 kB
          6. Standard Success Toast.PNG
            Standard Success Toast.PNG
            10 kB

            Issue Links

              Activity

                People

                Assignee:
                dennisbridges Dennis Bridges
                Reporter:
                abreaux Ann-Marie Breaux
                Tester Assignee:
                Dennis Bridges Dennis Bridges
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases