BE: Claimed returned: prevent renewal

Description

Purpose: Prevent users from renewing an item that is claim returned.

Scenarios

  1. Scenario

    • Given an item with the status Claimed returned

    • When viewing loan details for that loan

    • Then disable the Renew button

  2. Scenario

    • Given an item with the status Claimed returned, and a user's loan history showing open loans, including the loan for that item

    • When the action menu for the loan is open

    • Then do not show the Renew option

  3. Scenario

    • Given a user's loan history showing open loans, with at least one loan for an item with the status Claimed returned

    • When only loans for items with the status Claimed returned are checked

    • Then disable the bulk Renew button

  4. Scenario

    • Given a user's loan history showing open loans, with at least one loan for an item with the status Claimed returned

    • When at least one loan for an item with the status Claimed returned is checked and at least one loan for an item with the status Checked out is checked

    • Then enable the bulk Renew button

  5. Scenario

    • Given the Renew confirmation modal

    • When there is at least one Claimed returned item in the modal

    • Then display the following message in the Renewal status column for each Claimed returned item:

      • Item not renewed: item is Claimed returned

  6. Scenario

    • Given the Renew confirmation modal, with at least one failure that is because the item was claimed returned

    • When there are no other loans in the modal whose renewals have failed for other reasons

    • Then do not show an Override button

  7. Scenario

    • Given the Renew confirmation modal, with at least one failure that is because the item was claimed returned

    • When there is at least one renewal that has failed for a reason that can be overridden

      • All failure reasons, except for renewal would not change the due date

    • Then show an Override button

  8. Scenario

    • Given the Renew confirmation modal, with at least one failure that is because the item was claimed returned, and at least one failure that is for a reason that can be overridden

    • When the user clicks the Override button

    • Then display all loans that can be overridden in the resulting modal, but exclude any that have failed because the loan is claimed returned

Notes:

  • Behavior should be similar to when a renewal fails because a renewal would not change the due date: show the failure reason, but do not allow user to override

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Svitlana ZmiivskaFebruary 13, 2020 at 8:53 AM

Closing as dev only.

Svitlana ZmiivskaFebruary 12, 2020 at 8:40 AM

Thank you

Emma BoettcherFebruary 12, 2020 at 4:02 AM

Because it's the item status, I've left it capitalized as in other error messages.

Svitlana ZmiivskaFebruary 11, 2020 at 12:44 PM

Does the capitalization make sense within a sentence "item is Claimed returned"? Could you please confirm this error message?

Done

Details

Assignee

Reporter

Labels

Priority

Story Points

Sprint

Development Team

Prokopovych

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created January 31, 2020 at 4:22 PM
Updated February 13, 2020 at 8:53 AM
Resolved February 13, 2020 at 8:53 AM
Loading...