BE: Claimed returned: prevent renewal
Description
Environment
None
Potential Workaround
None
clones
defines
is blocked by
Checklist
hideTestRail: Results
Activity
Show:
Done
Created January 31, 2020 at 4:22 PM
Updated February 13, 2020 at 8:53 AM
Resolved February 13, 2020 at 8:53 AM
Purpose: Prevent users from renewing an item that is claim returned.
Scenarios
Scenario
Given an item with the status Claimed returned
When viewing loan details for that loan
Then disable the Renew button
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
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
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
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
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
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
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