Bug 42066: Add a Cypress test

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2026-05-04 15:00:21 +02:00 committed by Lucas Gass
parent ef43cee19b
commit 1101564290
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 16 additions and 0 deletions

View File

@ -173,3 +173,19 @@ describe("CSRF", () => {
});
});
});
describe("Regressions", () => {
it("should allow login after sco", () => {
cy.visitOpac("/cgi-bin/koha/sco/sco-main.pl");
cy.get("input[name='csrf_token']").then($input => {
const csrf_sco = $input.val();
cy.visitOpac("/cgi-bin/koha/opac-main.pl");
cy.get("input[name='csrf_token']").then($input => {
const csrf_main = $input.val();
expect(csrf_main).to.exist;
expect(csrf_main).to.not.be.empty;
expect(csrf_sco).to.not.equal(csrf_main);
});
});
});
});