[Bug 44091] New: NoticesManagement_spec.ts leaves patron categories behind
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44091 Bug ID: 44091 Summary: NoticesManagement_spec.ts leaves patron categories behind Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: minor Priority: P5 - low Component: Test Suite Assignee: chris@bigballofwax.co.nz Reporter: martin.renvoize@openfifth.co.uk QA Contact: testopia@bugs.koha-community.org Depends on: 33260 Target Milestone: --- Follow-up to bug 33260, reported by Pedro Amorim. t/cypress/integration/Tools/NoticesManagement_spec.ts leaves the patron categories created by insertSamplePatron in the database after each run. The spec should clean them up. Test plan: 1) Go to 'Administration' > 'Patron categories' and note the categories (http://localhost:8081/cgi-bin/koha/admin/categories.pl) 2) Run: yarn cypress run --spec t/cypress/integration/Tools/NoticesManagement_spec.ts 3) Reload 'Patron categories'. Confirm there are new categories with random names Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33260 [Bug 33260] Show message queue on staff interface and make notices printable -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44091 --- Comment #1 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211681 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211681&action=edit Bug 44091: Delete the patron categories created by the NoticesManagement Cypress spec t/cypress/integration/Tools/NoticesManagement_spec.ts creates its patrons with insertSamplePatron, which also creates a patron category with a random name for each of them. The spec deletes the patrons it creates in its 'after' hook, but not their categories, so they were left in the database after each run. Remember the categories that are created, and delete them once the patrons are deleted. To test: 1. Go to Administration > Patron categories and note the categories 2. Run: yarn cypress run --spec t/cypress/integration/Tools/NoticesManagement_spec.ts 3. Reload 'Patron categories' 4. Without the patch, there are new categories with random names (about one for each patron the spec creates) 5. With the patch, there are none, the categories are the same as in step 1 (run the spec twice to be sure) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44091 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org