UI | Add the token "notice.currentDate" to the token modal of the notice templates

Description

Purpose: Add a new token token "notice.currentDate" in the token modal of the notice templates. {*}{*}{*}{*}

Scenarios:

1. Scenario:

  • Given: Settings  >>  Circulation  >>  Patron notice templates  >> Open existing template OR +New  >> Category = Loan + Request + Automated fee/fine charge + Automated fee/fine adjustment + Manual fee/fine charge + Manual fee/fine action (pay, waive, refund, transfer or cancel/error),

  • When: I click on the tokens button in the template editor, which opens the “Add token” window,

  • Then: I see with a new token called "notice.currentDate" at the top left of the modal (mock-up pending)

2. Scenario:

  • Given: the „Add token“ window is open,

  • When: I select the token "notice.currentDate", and no other token is selected,

  • Then: the „Add token“ button activates.

3. Scenario:

  • Given: the token "notice.currentDate" is selected in the “Add token” window, whether or not other tokens are selected,

  • When: I click on “Add token”,

  • Then: the token appears in the Body field + the “Save & close” button activates.

4. Scenario:

  • Given: the token "notice.currentDate" is entered in the Body field,

  • When: I click on “Preview”,

  • Then: I see sample data: May 15, 2023 (i.e. today's date)

5. Scenario:

  • Given: the token "notice.currentDate" 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).

6. Scenario:

  • Given: Settings  >>  Circulation  >>  Patron notice templates  >> I have selected a notice template which contains the token "notice.currentDate",

  • When: I click on “Preview”,

  • Then: I see sample data: May 15, 2023 (i.e. today's date)

Environment

None

Potential Workaround

None

defines

Checklist

hide

TestRail: Results

Activity

Show:

Details

Assignee

Reporter

Priority

Release

Not Scheduled

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created May 15, 2023 at 7:16 AM
Updated May 31, 2023 at 10:27 AM
TestRail: Cases
TestRail: Runs