Bugzilla – Attachment 187535 Details for
Bug 40907
parenthesis and bracket are breaking filter on item table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40907: Add a Cypress test
Bug-40907-Add-a-Cypress-test.patch (text/plain), 1.33 KB, created by
Biblibre Sandboxes
on 2025-10-07 15:50:44 UTC
(
hide
)
Description:
Bug 40907: Add a Cypress test
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2025-10-07 15:50:44 UTC
Size:
1.33 KB
patch
obsolete
>From f13775f240e532ece56de9652505cbcf1f7ab7ca Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 7 Oct 2025 14:47:31 +0200 >Subject: [PATCH] Bug 40907: Add a Cypress test > >Signed-off-by: Mathieu <mathsabypro@gmail.com> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40907
:
187523
|
187524
|
187534
|
187535
|
187536
|
187599
|
187600
|
188022
|
188023