Bug 40907: Add a Cypress test

Signed-off-by: Mathieu <mathsabypro@gmail.com>
Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 7c4c013645)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Jonathan Druart 2025-10-07 14:47:31 +02:00 committed by Paul Derscheid
parent 1d24623414
commit 000ba6efdd
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 10 additions and 0 deletions

View File

@ -189,6 +189,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":"%\\[%"}`)
);
});
});
});