From 1506b55ddeea9ec93199d6eb34a987f362bc87d2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 12 Jan 2026 11:43:22 +0100 Subject: [PATCH] Bug 41593: Add a Cypress test Signed-off-by: Jonathan Druart Signed-off-by: Lisette Scheer --- t/cypress/integration/Suggestions_spec.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 t/cypress/integration/Suggestions_spec.ts diff --git a/t/cypress/integration/Suggestions_spec.ts b/t/cypress/integration/Suggestions_spec.ts new file mode 100644 index 00000000000..e3e3631ca17 --- /dev/null +++ b/t/cypress/integration/Suggestions_spec.ts @@ -0,0 +1,12 @@ +describe("Suggestions", () => { + beforeEach(() => { + cy.login(); + cy.title().should("eq", "Koha staff interface"); + }); + + it("Should sanitize displayby", () => { + cy.visit("/cgi-bin/koha/suggestion/suggestion.pl?displayby=foo"); + // Do not 500 and default to "STATUS" if displayby is not valid + cy.get("#displayby").should("have.value", "STATUS"); + }); +}); -- 2.39.5