|
Purpose: Allow users to override failed renewals when the borrower is inactive. When the system can calculate a due date, use that due date for the renewal. When it cannot (renewal failure reasons from scenarios 3 and 4), require user to select due date and time.
- Scenario
- Given:
- a renewal that has failed because patron is inactive and/or any number of other renewal failure reasons, except that renewal would not change the due date
- and a staff user with permissions Users: User loans renew through override
- When the renewal fails
- Then show the Override button on the renewal failure modal, in addition to Close
- Scenario
- Given the renewal failure modal from scenario 1
- When the Override button is clicked
- Then display the Override & renew modal
- Do not display date picker
- In New due date column, display "New due date will be calculated automatically"
- Additional information field (required)
- Controls: Cancel, Override
- Scenario
- Given a renewal that has failed because patron is inactive, and a staff user with permissions Users: User loans renew through override, and any number of additional failure reasons except for the following reasons:
- not loanable
- not renewable (loan policy says not renewable)
- renewal date is not in loan policy
- When the Override button is clicked
- Then display the Override & renew modal
- Do not display date picker
- In New due date column, display "New due date will be calculated automatically"
- Additional information field (required)
- Controls: Cancel, Override
- Scenario
- Given a renewal that has failed because patron is inactive, and a staff user with permissions Users: User loans renew through override, and any of the following additional failure reasons:
- not loanable
- not renewable (loan policy says not renewable)
- renewal date is not in loan policy
- When the Override button is clicked
- Then display the Override & renew modal
- Display date picker
- In New due date column, display "Select due date above"
- Additional information field (required)
- Controls: Cancel, Override
- Scenario
- Given the Override & renew modal
- When the user clicks Override
- Then close the modal, and renew the item according to selected or calculated due date
- Scenario
- Given the Override & renew modal
- when the user clicks Cancel
- Then close the modal and display the failure modal
- Scenario
- Given an inactive user with an open loan where renewal would not change the due date
- When a renewal is attempted on the open loan
- Then fail the renewal, and show the renewal confirmation window
- Renewal status: "Item not renewed: borrower is inactive, renewal would not change the due date"
- Do not show override button
- Scenario
- Given a renewal that has failed because patron is inactive, and a staff user without the permission Users: User loans renew through override
- When the renewal fails
- Then do not show the Override button on the renewal failure modal
|