Uploaded image for project: 'ui-checkout'
  1. ui-checkout
  2. UICHKOUT-607

Three identical e-mail notices for one checkout



    • EPAM-Veg Sprint 37, EPAM-Veg Sprint 38
    • 5
    • Vega


      Steps to reproduce

      1. Go to Checkout, and check out an item to a patron
      2. Call patron-action-session-storage/patron-action-sessions to verify that a checkout session is ongoing for that patron
      3. Wait for the checkout session to close (in the Chalmers env it's set to 2 mintues)
      4. Call patron-action-session-storage/patron-action-sessions to verify that the above checkout session no longer exists
      5. Check the inbox of the patron to verify that a checkout receipt for the session has been sent

      Expected result

      There is a new e-mail containing a checkout receipt for the checkout session.

      Actual result

      There are three new e-mails each containing an identical checkout receipt for the checkout session.

      Other comments

      There is only one checkout-by-barcode request registered during the checkout session, so I am pretty sure that I have not accidentally "checked out the item twice" during the same session. There are, however, three individual POST requests - with different id values - to end-patron-action-session.

      "postData": {
                  "mimeType": "application/json",
                  "params": [],
                  "text": "{\"actionType\":\"Check-out\",\"patronId\":\"8611bc8e-c1a9-4227-8573-887007040c1a\",\"id\":\"dafcf607-ca11-48d5-a57b-84d79a3a44ca\"}"
       "postData": {
                  "mimeType": "application/json",
                  "params": [],
                  "text": "{\"actionType\":\"Check-out\",\"patronId\":\"8611bc8e-c1a9-4227-8573-887007040c1a\",\"id\":\"2e48dcfa-117f-4f6a-867c-55a0c8276d21\"}"
      "postData": {
                  "mimeType": "application/json",
                  "params": [],
                  "text": "{\"actionType\":\"Check-out\",\"patronId\":\"8611bc8e-c1a9-4227-8573-887007040c1a\",\"id\":\"55697d0a-e150-4c16-a2a8-f66c44e776a0\"}"

      When I tried checking out the item again and ending the checkout session manually using the UI button, I only received one e-mail (and could see only one POST request to end-patron-action-session).

      TestRail: Results


          1. check-out-receipts.mov
            9.80 MB
          2. screenshot-1.png
            18 kB
          3. screenshot-2.png
            43 kB
          4. Screenshot 2020-03-19 14.15.19.png
            Screenshot 2020-03-19 14.15.19.png
            206 kB
          5. Screenshot 2020-03-30 16.10.01.png
            Screenshot 2020-03-30 16.10.01.png
            551 kB
          6. Screenshot 2020-03-30 16.10.52.png
            Screenshot 2020-03-30 16.10.52.png
            413 kB
          7. Screenshot 2020-03-30 16.11.53.png
            Screenshot 2020-03-30 16.11.53.png
            122 kB

          Issue Links



                maxim_didenko Maxim Didenko
                dbranchini Darcy Branchini
                0 Vote for this issue
                2 Start watching this issue



                  TestRail: Runs

                    TestRail: Cases