https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37707

--- Comment #12 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 191000
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191000&action=edit
Bug 37707: Add Cypress tests for bidirectional lead/trail period conflicts

This enhances the bookings lead/trail period tests to validate that:
- New booking's lead period respects existing bookings' trail periods
- New booking's trail period respects existing bookings' lead periods

Previously, we only checked:
- New booking lead vs existing booking actual dates
- New booking trail vs existing booking actual dates

Now we also validate the full "protected period" concept where each
existing booking reserves: lead + actual + trail period.

Test timeline updated:
- Booking A: Days 20-25 (protected: 18-28)
- Booking B: Days 60-65 (protected: 58-68)

New test coverage:
- TEST 2B: New lead conflicts with existing trail (Days 27-30)
- TEST 6B: New trail conflicts with existing lead (Days 55-56)
- TEST 7: Valid booking window (Days 31-54) respecting both

Current status: Tests FAIL as expected, revealing the bug that
bidirectional checking is not yet implemented.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to