[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:35:15 CET 2022


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

--- Comment #3 from Pedro Amorim <pedro.amorim at ptfs-europe.com> ---
Further analysis:
login() doesn't work if called in before(), with or without cy.session, so it
needs to remain in beforeEach() which means the setting of the ERM sys pref
also needs to happen in beforeEach(), after logging in.

Tried to shorten the tests suite runtime duration by preventing visiting sys
pref panel in case we are trying to enable the already enabled sys pref. Did
this using env vars but this could cause it to fail if tests are paused and
redone, leading to the real value and env var value to differ, i.e. env var
value persists through subsequent test runs (this happened while using cypress
open).

Finally, using cy.session for login works (and shortens tests suite duration
slightly), but again, only if in beforeEach(), not in before(). I think this
should also be implemented, but with its' own bug # and only if the use of
experimentalSessionAndOrigin is considered reasonable by others.

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


More information about the Koha-bugs mailing list