Backend - Aged to lost: Prevent change due date

Description

SAME SCENARIOS AS WITH DECLARED LOST

Purpose: Prevent users from changing the due date on an item that is Aged to lost.

Scenarios:

  1. Scenario

    • Given an item with the status Aged to lost

    • When viewing loan details for that loan

    • Then disable the Change due date button

  2. Scenario

    • Given an item with the status Aged to lost, 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 Change due date option

  3. Scenario

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

    • When only loans for items with the status Aged to lost are checked

    • Then disable the bulk Change due date button

  4. Scenario

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

    • When at least one loan for an item with the status Aged to lost is checked and at least one loan for an item with the status Checked out is checked

    • Then enable the bulk Change due date button

  5. Scenario

    • Given the Change due date modal

    • When there is at least one Aged to lost item in the modal

    • Then display the following message in the Alert details column for each Aged to lost item:

      • Item is Aged to lost

  6. Scenario

    • Given the Change due date modal

    • When a date and time have been entered in the modal, and only items with the status Aged to lost are checked in the modal

    • Then disable the Save and close button

  7. Scenario

    • Given the Change due date modal, with at least one loan with the status Aged to lost checked and at least one loan with the status Checked out checked, and the date and time field populated

    • When the user selects Save and close

    • Then display the following in the alert details column for each Aged to lost item

      • Due date change failed: item is Aged to lost

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Bohdan Suprun August 13, 2020 at 11:22 AM

Merged to master, closing as dev only

Done

Details

Assignee

Reporter

Tester Assignee

Labels

Priority

Story Points

Sprint

Development Team

Prokopovych

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created February 26, 2020 at 11:37 PM
Updated August 13, 2020 at 11:22 AM
Resolved August 13, 2020 at 11:22 AM
TestRail: Cases
TestRail: Runs