https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39916
--- Comment #25 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 190818 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=190818&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 -- 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/
