https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42705
--- Comment #1 from Jonathan Druart <[email protected]> --- Created attachment 199611 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199611&action=edit Bug 42705: Setup self-checkout for SCO_spec.t There are several weird things going on here. I've experienced several weird login issues at the OPAC (403) when switching from SCO to OPAC, some are I guess expected, but others were definitely not. It is highlighted in the Cypress tests as I had to workaround to make them almost pass. Finally I hit a problem with restoring the syspref values in afterEach, mainly because we use both staff and OPAC interfaces in the tests but also because it seems that Cypress teardown several "things" in afterEach and random behaviours were appearing. I have spent way too much time on this, and I don't think this is ready yet but basically this is what the patch does: 1. Set the CSRF token in a Cypress env var in beforeEach so the set_syspref command can reuse it and does not need to be logged in 2. Create a self checkout patron to auto login. Otherwise the tests were not passing and I also got weird random UI behaviours: 403 and login form not submitted (??) 3. Enforce the filling of the credentials on the login form. But I don't think it's still necessary (it was a try to fix the login in afterEach) All of that to say: Feel free to suggest a better fix, or even delete the whole test file, I am giving up! :D -- 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/
