https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23415
--- Comment #231 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 193085 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193085&action=edit Bug 23415: Add Cypress test coverage for FineNoRenewals This commit adds end-to-end tests for the fine-based renewal blocking functionality using Cypress. Test coverage includes: 1. Blocking renewal when patron fines exceed FineNoRenewals limit 2. Displaying override button when AllowFineOverrideRenewing is enabled 3. Hiding override button when AllowFineOverrideRenewing is disabled 4. Successful override when permission is enabled 5. Allowing renewal when fines are below the limit The test creates test data including: - A patron with checkouts - Account fines that exceed the FineNoRenewals threshold - Tests both blocking and override scenarios Tests verify the UI behavior matches the business logic: - Error messages are displayed correctly - Override buttons appear based on preference setting - Override functionality works as expected - Security is maintained (no override without permission) To run these tests: npx cypress run --spec "t/cypress/integration/Circulation/FineNoRenewals_spec.ts" Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Andrew Fuerste Henry <[email protected]> Signed-off-by: Martin Renvoize <[email protected]> -- 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/
