Uploaded image for project: 'ui-circulation'
  1. ui-circulation
  2. UICIRC-904

FE: Add new multiples token: "Multiple fee/fine charges" for the Fee/Fine Charge section

    XMLWordPrintable

Details

    • EPAM-Veg Sprint 163
    • 3
    • Vega
    • Poppy (R2 2023)
    • TBD

    Description

      Purpose: Add a new multiples token for the Fee/Fine Charge object, called "Multiple fee/fine charges", to the Add token modal in the patron notice template configuration.

      NB: The behaviour of this new token, should be similar to the other multiples token: Multiple loans (e.g. the behaviour when adding the token into the Body).

      Scenarios:

      1. Scenario:

      • Given: Settings  >>  Circulation  >>  Patron notice templates  >> Open existing template OR +New  >> Category = Automated fee/fine charge,
      • When: I click on the tokens button in the template editor, which opens the “Add token” window,
      • Then: I see, at the bottom of the section ”Fee/Fine Charge", a new token: “Multiple fee/fine charges”, with a little square to select it on its left (like the current UI) that I can select. See: 01_AddTokenModal

      2. Scenario:

      • Given: Settings  >>  Circulation  >>  Patron notice templates  >> Open existing template OR +New  >> Category = anything other than Automated fee/fine charge,
      • When: I click on the tokens button in the template editor, which opens the “Add token” window,
      • Then: I see, at the bottom of the section ”Fee/Fine Charge", a new token: “Multiple fee/fine charges”, with a little square to select it on its left (like the current UI). The token and it's little square are greyed out and cannot be selected. See: 02_AddTokenModal

      3. Scenario:

      • Given: the „Add token“ window is open, and the template Category = Automated fee/fine charge,
      • When: I select ONLY the token “Multiple fee/fine charges”, and no other token is selected,
      • Then: the „Add token“ button remains inactivated.

      4. Scenario:

      • Given: the „Add token“ window is open, and the template Category = Automated fee/fine charge
      • When: I select ONLY the token “Multiple fee/fine charges”, and another token is selected,
      • Then: the „Add token“ button activates.

      5. Scenario:

      • Given: the token “Multiple fee/fine charges” is selected in the “Add token” window, and another token OTHER than a Fee/Fine Charge token is selected,
      • When: I click on “Add token”,
      • Then: ONLY that token OTHER than a Fee/Fine Charge token appears in the Body field + the “Save & close” button activates.

      6. Scenario:

      • Given: the token “Multiple fee/fine charges” is selected in the “Add token” window, and another token OTHER than a Fee/Fine Charge token is selected,
      • When: I click on “Add token”,
      • Then: ONLY that token OTHER than a Fee/Fine Charge token appears in the Body field + the “Save & close” button activates.

      7. Scenario:

      • Given: the token “Multiple fee/fine charges” is selected in the “Add token” window, and another Fee/Fine Charge token is selected,
      • When: I click on “Add token”,
      • Then: that other Fee/Fine Charge token appears, surrounded by the multiple Fee/Fine Charge tokens + the “Save & close” button activates. 
        See: UICIRC-904_MultiplesFeeFineChargesTokens

      8. Scenario:

      • Given: ONLY the token “Multiple fee/fine charges” is entered in the Body field, 
      • When: I click on “Preview”,
      • Then: I see no sample data.

      9. Scenario:

      • Given: the token “Multiple fee/fine charges” is entered in the Body field, with at least another token entered between the multiples tokens,
      • When: I click on “Preview”,
      • Then: I see sample data of that other token(s).

      10. Scenario:

      • Given: the token “Multiple fee/fine charges” is entered in the Body field, whether or not other tokens or text are also entered in the Body field  +  all other required fields of the template are filed out,
      • When: I click on “Save & close”,
      • Then: the notice template saves + I return to the four pane view of the patron notice templates, with the notice template that I just edited selected and visible (as per the current behaviour).

      11. Scenario:

      • Given: Settings  >>  Circulation  >>  Patron notice templates  >> I have selected a notice template which contains ONLY the token “Multiple fee/fine charges”,
      • When: I click on “Preview”,
      • Then: I see no sample data.

      12. Scenario:

      • Given: Settings  >>  Circulation  >>  Patron notice templates  >> I have selected a notice template which contains the token “Multiple fee/fine charges” and at least another token entered between the multiples tokens,
      • When: I click on “Preview”,
      • Then: I see sample data of that other token(s).

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Dmitriy Litvinenko Dmitriy Litvinenko
                JulieBickle_LMU Julie Bickle
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases