Bugzilla – Attachment 187523 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.29 KB, created by
Jonathan Druart
on 2025-10-07 12:54:57 UTC
(
hide
)
Description:
Bug 40907: Add a Cypress test
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-10-07 12:54:57 UTC
Size:
1.29 KB
patch
obsolete
>From 93d19fcabd5ca4a6a448b4b8cf7ea25e0f23000b 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 > >--- > 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
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