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

--- Comment #3 from Pedro Amorim <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to