Bugzilla – Attachment 183840 Details for
Bug 40318
"Receive shipments" should not open in a new tab/window - vendor list view
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40318: Add tests
Bug-40318-Add-tests.patch (text/plain), 1.57 KB, created by
Jonathan Druart
on 2025-07-07 13:24:48 UTC
(
hide
)
Description:
Bug 40318: Add tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-07-07 13:24:48 UTC
Size:
1.57 KB
patch
obsolete
>From 97aa51665811f4e2406037b718eef9e5666a9c67 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 7 Jul 2025 15:18:05 +0200 >Subject: [PATCH] Bug 40318: Add tests > >--- > .../integration/Acquisitions/Vendors_spec.ts | 28 +++++++++++++++++++ > 1 file changed, 28 insertions(+) > >diff --git a/t/cypress/integration/Acquisitions/Vendors_spec.ts b/t/cypress/integration/Acquisitions/Vendors_spec.ts >index 43a073d2d34..d91233a9c0e 100644 >--- a/t/cypress/integration/Acquisitions/Vendors_spec.ts >+++ b/t/cypress/integration/Acquisitions/Vendors_spec.ts >@@ -232,4 +232,32 @@ describe("Vendor CRUD operations", () => { > .contains("Vendor") > .contains("deleted"); > }); >+ >+ it.only("receive should open in the same tab", () => { >+ const vendor = cy.getVendor(); >+ vendor.baskets_count = 1; >+ >+ cy.intercept("GET", "/api/v1/acquisitions/vendors\?*", { >+ statusCode: 200, >+ body: [vendor], >+ headers: { >+ "X-Base-Total-Count": "1", >+ "X-Total-Count": "1", >+ }, >+ }); >+ cy.intercept( >+ "GET", >+ new RegExp("/api/v1/acquisitions/vendors/(?!config$).+"), >+ vendor >+ ); >+ cy.visit("/cgi-bin/koha/acquisition/vendors"); >+ >+ cy.get("#vendors_list table tbody tr:first") >+ .contains("Receive shipments") >+ .click(); >+ cy.url().should( >+ "contain", >+ "/cgi-bin/koha/acqui/parcels.pl?booksellerid=1" >+ ); >+ }); > }); >-- >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 40318
:
183840
|
183841
|
183847
|
183848
|
183916
|
183917