From 2271ee38c5f9d012e41268102bb4942e0f8d9066 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 7 Oct 2025 14:47:31 +0200 Subject: [PATCH] Bug 40907: Add a Cypress test Signed-off-by: Mathieu Signed-off-by: Brendan Lawlor --- t/cypress/integration/KohaTable/Holdings_spec.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/t/cypress/integration/KohaTable/Holdings_spec.ts b/t/cypress/integration/KohaTable/Holdings_spec.ts index 8c77f67830..070d205226 100644 --- a/t/cypress/integration/KohaTable/Holdings_spec.ts +++ b/t/cypress/integration/KohaTable/Holdings_spec.ts @@ -172,6 +172,16 @@ describe("catalogue/detail/holdings_table with items", () => { new RegExp(`"me.home_library_id":\\["${library_id}"\\]`) ); }); + + cy.get(`#${table_id}_wrapper input.dt-input`).clear(); + cy.wait("@searchItems"); + cy.get(`#${table_id}_wrapper input.dt-input`).type("["); + cy.wait("@searchItems").then(interception => { + const q = interception.request.query.q; + expect(q).to.match( + new RegExp(`"me.home_library_id":{"like":"%\\[%"}`) + ); + }); }); }); -- 2.39.5