Uploaded image for project: 'stripes-smart-components'
  1. stripes-smart-components
  2. STSMACOM-361

Settings > Users > Edit Custom field | Ability to delete an option

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      eHoldings Sprint 92, eHoldings Sprint 93
    • Story Points:
      3
    • Development Team:
      Spitfire

      Description

      As a librarian
      I want to be able to remove an option that is no longer valid

      Requirements

      • applies to the custom field input types with options: single select, multi-select, and radio button
      • do not display a delete button if value has been saved to a record
      • deletion is executed when user clicks Save button
      • confirm deletion of an option on delete field data modal

      Acceptance criteria

      Given multi-select / single select option A is NOT set to default
      AND Option A has not been saved to any record
      When I click the delete button
      Then remove the option

      Given radio button option A has not been saved to any record
      When I click the delete icon
      Then remove the option

      IF multi-select / single select option A is set to default
      AND it is the only option set to default
      AND option A has not been saved to any record
      When I click the delete button
      Then set default option to No default set

      IF multi-select option A and option C are set to default
      AND option A and option C have not been saved to any record
      When I click the delete button on option A
      Then only option C should remain set to default

      IF multi-select option A and option C are set to default
      AND option A and option C have not been saved to any record
      When I click the delete button on option A AND option C
      Then both options A and C should be removed
      AND no default should be set

      If multi-select/single select/radio button option A have been saved to a record
      Then do not display a delete button

      Given I have deleted a multi-select/single select/radio button option
      When I click the Save
      Then display on the delete modal the following [Deleting the field <<custom field name>> 's option <<option name>>. No data stored for this option.

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                kgambrell Khalilah Gambrell
                Reporter:
                kgambrell Khalilah Gambrell
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases