Bugzilla – Attachment 183003 Details for
Bug 40067
"Receive shipments" should not open in a new tab/window
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40067: Improve waits and intercepts
Bug-40067-Improve-waits-and-intercepts.patch (text/plain), 1.44 KB, created by
Jonathan Druart
on 2025-06-05 14:30:21 UTC
(
hide
)
Description:
Bug 40067: Improve waits and intercepts
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-06-05 14:30:21 UTC
Size:
1.44 KB
patch
obsolete
>From f0de0d3b2748d15810819d22aa1829fc7697d808 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 5 Jun 2025 16:29:15 +0200 >Subject: [PATCH] Bug 40067: Improve waits and intercepts > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/cypress/integration/Toolbar_spec.ts | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/t/cypress/integration/Toolbar_spec.ts b/t/cypress/integration/Toolbar_spec.ts >index ce2abf908a7..e7aaf19ec82 100644 >--- a/t/cypress/integration/Toolbar_spec.ts >+++ b/t/cypress/integration/Toolbar_spec.ts >@@ -15,18 +15,21 @@ describe("Sticky toolbar", () => { > "X-Base-Total-Count": "1", > "X-Total-Count": "1", > }, >- }); >- cy.visit("/cgi-bin/koha/acquisition/vendors"); >+ }).as("get-vendors"); > cy.intercept( > "GET", > new RegExp("/api/v1/acquisitions/vendors/(?!config$).+"), > vendor > ).as("get-vendor"); > >+ cy.visit("/cgi-bin/koha/acquisition/vendors"); >+ cy.wait("@get-vendors"); >+ > const name_link = cy.get( > "#vendors_list table tbody tr:first td:first a" > ); > name_link.click(); >+ cy.wait("@get-vendor"); > cy.get("#toolbar a").contains("Receive shipments").click(); > cy.get("h1").contains("Receive shipment from vendor " + vendor.name); > }); >-- >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 40067
:
182934
|
182949
|
182950
|
182951
|
182972
|
182981
|
183000
|
183001
|
183002
| 183003