[Koha-bugs] [Bug 32131] Cypress tests are failing if ERMModule is off

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Nov 12 21:32:59 CET 2022


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

--- Comment #2 from Pedro Amorim <pedro.amorim at ptfs-europe.com> ---
Created attachment 143803
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=143803&action=edit
Bug 32131: Cypress tests are failing if ERMModule is off

This patch solves this by enabling the system preference before each test,
right after login. It also sets the system preference back to its original
initial value after the tests finish running.

To test:
1) Disable ERMModule system preference
2) Run cypess tests: yarn cypress open / yarn cypress run
3) Verify that tests run successfully
(Optional): While tests are running, visit the system preferences panel and
verify that the system preference is now "Enable".
4) Wait for the tests to finish and confirm that the system preference is set
back to its original "Disable" value.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list