From 93d19fcabd5ca4a6a448b4b8cf7ea25e0f23000b 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 --- 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 8c77f678308..070d205226c 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.34.1