https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39916 --- Comment #30 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 191712 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=191712&action=edit Bug 39916: Cypress tests for the bookings modal This patch adds comprehensive Cypress end-to-end tests for the booking modal, covering all critical functionality to prevent regressions. Test coverage includes: - Basic modal functionality (bookingsModalBasic_spec.ts): * Modal loading and initial state * Progressive field enabling based on user selections * Item type and item dependencies * Form validation * Booking submission (create and update) * Form interactions and field visibility * Edit mode functionality * Error handling - Date picker functionality (bookingsModalDatePicker_spec.ts): * Flatpickr initialization with future-date constraints * Date disabling for existing bookings * Date range validation * Circulation rules date calculations and visual feedback * Lead and trail period functionality * Event dots for dates with existing bookings These tests ensure the booking modal works correctly across all scenarios and helps maintain code quality during future development. Test plan: 1. Run the tests inside KTD container: docker exec --user kohadev-koha --workdir /kohadevbox/koha -i kohadev-koha-1 \ bash -c 'npx cypress run --spec "t/cypress/integration/Circulation/bookings*.ts"' 2. Verify all 15 tests pass (9 basic + 6 datepicker) 3. Confirm test coverage is comprehensive for the booking modal Signed-off-by: Kristi Krueger <kkrueger@cuyahogalibrary.org> Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.