Uploaded image for project: 'mod-notify'
  1. mod-notify
  2. MODNOTIFY-126

BE | Populate the tokens in the notice, with the data provided by the context

    XMLWordPrintable

Details

    • Odin Sprint 168, Odin Sprint 169, Odin Sprint 170, Odin Sprint 171, Odin Sprint 172, Odin Sprint 173, Odin Sprint 174
    • Odin
    • Poppy (R2 2023)
    • TBD

    Description

      Purpose/Overview:
      A new section called "User primary address", with 7 new tokens (listed below) has been added to the patron notice contexct.

      • user.primaryDeliveryAddressType
      • user.primaryAddressLine1
      • user.primaryAddressLine2
      • user.primaryCity
      • user.primaryStateProvRegion
      • user.primaryZipPostalCode
      • user.primaryCountry

      In the email, please replace this tokens with data provided by the context.

      Scenarios:

      1. Scenario:

      • Given: I have received an email, the notice template of which contains a token in the section "User address" + There is an address selected as "Use as primary address"
      • When: I look at the text of that token in the live email,
      • Then: I see the plain text name of the corresponding field as can be seen in the UI of Users.
        Example: In the email, for the token "user.primaryDeliveryAddressType", I see "Office", and NOT the UUID.

      2.  Scenario:

      • Given: I have received an email, the notice template of which contains a token in the section "User address + There is NO address selected as "Use as primary address"
      • When: I look at the text of that token in the live email,
      • Then: The token is empty.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Janis Saldabols Janis Saldabols
                JulieBickle_LMU Julie Bickle
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases