https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44091

--- Comment #2 from David Nind <[email protected]> ---
Created attachment 211889
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211889&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 <[email protected]>
Signed-off-by: David Nind <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to