Koha-clms/t/cypress/support
Martin Renvoize 22c930464d
Bug 37707: (follow-up) Add comprehensive Cypress tests for bookings modal
Reorganize and expand Cypress tests into three focused spec files:

bookingsModalBasic_spec.ts:
- Modal initialization and field interactions
- Form validation and submission
- Edit booking functionality
- 'Any item' booking with server-side item selection

bookingsModalDatePicker_spec.ts:
- Flatpickr initialization and constraints
- Date range validation
- Circulation rules (issue length, renewals)
- Lead/trail period conflict detection
- 'Any item' mode date availability
- Event dots for existing bookings

bookingsModalTimezone_spec.ts:
- Cross-timezone date display
- Multi-day booking spans
- Conflict detection with timezone awareness
- API round-trip date preservation
- Month boundary handling

Add shared test utilities to e2e.js for date helpers.

Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit b591400ac1)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
2026-04-13 08:33:29 +01:00
..
component-index.html Bug 38201: Add missing newlines at end of file 2025-10-02 09:40:32 -06:00
component.ts Bug 38201: Add component tests for useBaseResource 2025-10-02 09:40:21 -06:00
e2e.js Bug 37707: (follow-up) Add comprehensive Cypress tests for bookings modal 2026-04-13 08:33:29 +01:00
flatpickr.js Bug 39916: Add flatpickr helpers to cypress 2026-02-18 13:38:49 +00:00
select2.js Bug 39916: Add select2 helpers to cypress 2026-02-18 13:38:48 +00:00