Bugzilla – Attachment 187893 Details for
Bug 40245
Support option to display firstname in patron search results when different than preferred_name
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40245: Update cypress test to handle ShowPatronFirstnameIfDifferentThanPreferredname
Bug-40245-Update-cypress-test-to-handle-ShowPatron.patch (text/plain), 2.52 KB, created by
CJ Lynce
on 2025-10-14 15:20:57 UTC
(
hide
)
Description:
Bug 40245: Update cypress test to handle ShowPatronFirstnameIfDifferentThanPreferredname
Filename:
MIME Type:
Creator:
CJ Lynce
Created:
2025-10-14 15:20:57 UTC
Size:
2.52 KB
patch
obsolete
>From 8e0df4a9d8cf094ef788421062d897438b48215a Mon Sep 17 00:00:00 2001 >From: CJ Lynce <cj.lynce@westlakelibrary.org> >Date: Mon, 13 Oct 2025 22:21:59 +0000 >Subject: [PATCH] Bug 40245: Update cypress test to handle > ShowPatronFirstnameIfDifferentThanPreferredname > >Updates patron format cypress tests to allow for ShowPatronFirstnameIfDifferentThanPreferredname >--- > t/cypress/integration/Patron/Format.ts | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/t/cypress/integration/Patron/Format.ts b/t/cypress/integration/Patron/Format.ts >index 9b82a2869f..74f7389735 100644 >--- a/t/cypress/integration/Patron/Format.ts >+++ b/t/cypress/integration/Patron/Format.ts >@@ -84,7 +84,7 @@ describe("Display patron - search", () => { > // invert_name is set > cy.get(`#${table_id} tbody tr:eq(0) td:eq(2)`).should($el => { > let re = new RegExp( >- `^${patron.preferred_name} ${patron.middle_name} \\(${patron.other_name}\\)` >+ `^${patron.preferred_name} ${patron.middle_name} \\(${patron.other_name}\\) \\[${patron.firstname}\\]` > ); > const displayedText = $el.text().replace(/ /g, " ").trim(); > expect(displayedText).to.match(re); >@@ -124,7 +124,7 @@ describe("Display patron - autocomplete", () => { > // invert_name is set > cy.get(`ul.ui-autocomplete li a`).should($el => { > let re = new RegExp( >- `${patron.surname}, ${patron.preferred_name} ${patron.middle_name} \\(${patron.other_name}\\) \\(${patron.cardnumber}\\)` >+ `${patron.surname}, ${patron.preferred_name} ${patron.middle_name} \\(${patron.other_name}\\) \\[${patron.firstname}\\] \\(${patron.cardnumber}\\)` > ); > const displayedText = $el.text().replace(/ /g, " ").trim(); > expect(displayedText).to.match(re); >@@ -155,7 +155,7 @@ describe("Display patron - autocomplete", () => { > // invert_name is set > cy.get(`ul.ui-autocomplete li a`).should($el => { > let re = new RegExp( >- `^${patron.preferred_name} ${patron.middle_name} \\(${patron.other_name}\\) \\(${patron.cardnumber}\\)` >+ `^${patron.preferred_name} ${patron.middle_name} \\(${patron.other_name}\\) \\[${patron.firstname}\\] \\(${patron.cardnumber}\\)` > ); > const displayedText = $el.text().replace(/ /g, " ").trim(); > expect(displayedText).to.match(re); >-- >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 40245
:
184501
|
184502
|
184637
|
184638
|
184639
|
185601
|
185602
|
185603
|
186732
|
186733
|
187891
|
187892
|
187893
|
187943
|
188112
|
188113
|
188114
|
188811
|
188812
|
188813