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

--- Comment #63 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 209651
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209651&action=edit
Bug 41439: (follow-up) Add Cypress tests for the circulation and fine rules
page

Cover the circulation and fine rules page (admin/smart-rules.pl), and in
particular the rules table now that its columns are split in tabs:

* The tabs: those shown, those depending on ArticleRequests, UseRecalls
  and UnseenRenewals, the columns shown by each, and going back to All.
* Adding, editing and deleting a rule, including confirmations, and the
  rules of one library not touching another's, and cloning to a library.
* Saving a rule that exists already does not reset the columns that are not
  shown, which was the data loss found while testing this bug, from every
  tab, by entering the patron category and item type again or after clicking
  Edit, including the dates, the cap on fines and limits of 0. These fail
  without the previous patch.
* The other policies of the page: the default checkout, hold and return
  policy, by patron category, by item type, waiting hold cancellation, daily
  open article requests limit and fee, lost item fee refund on return and
  lost item processing fee, each set, updated and deleted where possible.

The rules of the libraries used and the preferences changed are restored
afterwards.

To test:
1. Apply the patches
2. Run
   $ ktd --shell
   k$ yarn cypress run --spec
t/cypress/integration/Admin/CirculationRules_spec.ts
=> SUCCESS: Tests pass!
3. Remove the 'Do not reset hidden columns when saving an existing rule'
   patch and run again
=> FAIL: the tests of the data loss fail
4. Sign off :-D

Co-Authored-By: Claude Sonnet 5.5 <[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