Bugzilla – Attachment 159328 Details for
Bug 32474
Implement infinite scroll in vue-select
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32474: Adjust tests - X-Total-Count
Bug-32474-Adjust-tests---X-Total-Count.patch (text/plain), 2.02 KB, created by
Matt Blenkinsop
on 2023-11-29 11:30:04 UTC
(
hide
)
Description:
Bug 32474: Adjust tests - X-Total-Count
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2023-11-29 11:30:04 UTC
Size:
2.02 KB
patch
obsolete
>From 51d3c80a485500e0908c0c87887ed0377060d9de Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 3 Oct 2023 09:59:24 +0200 >Subject: [PATCH] Bug 32474: Adjust tests - X-Total-Count > >Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >--- > t/cypress/integration/ERM/Agreements_spec.ts | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/t/cypress/integration/ERM/Agreements_spec.ts b/t/cypress/integration/ERM/Agreements_spec.ts >index 7b6f3742fd..045d549af1 100644 >--- a/t/cypress/integration/ERM/Agreements_spec.ts >+++ b/t/cypress/integration/ERM/Agreements_spec.ts >@@ -409,9 +409,14 @@ describe("Agreement CRUD operations", () => { > // Add new license > let licenses_to_relate = get_licenses_to_relate(); > let related_license = agreement.agreement_licenses[0]; >+ let licenses_count = licenses_to_relate.length.toString(); > cy.intercept("GET", "/api/v1/erm/licenses*", { > statusCode: 200, > body: licenses_to_relate, >+ headers: { >+ "X-Base-Total-Count": licenses_count, >+ "X-Total-Count": licenses_count, >+ }, > }); > cy.visit("/cgi-bin/koha/erm/agreements/add"); > cy.get("#agreement_licenses").contains("Add new license").click(); >@@ -503,9 +508,14 @@ describe("Agreement CRUD operations", () => { > "get-agreement" > ); > // Intercept related licenses request after entering agreement edit >+ let licenses_count = licenses_to_relate.length.toString(); > cy.intercept("GET", "/api/v1/erm/licenses*", { > statusCode: 200, > body: licenses_to_relate, >+ headers: { >+ "X-Base-Total-Count": licenses_count, >+ "X-Total-Count": licenses_count, >+ }, > }).as("get-related-licenses"); > // Intercept related agreements request after entering agreement edit > cy.intercept("GET", "/api/v1/erm/agreements*", { >-- >2.37.1 (Apple Git-137.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 32474
:
144614
|
144719
|
144720
|
145143
|
145144
|
145154
|
150030
|
150031
|
150282
|
150283
|
150284
|
150287
|
150305
|
150308
|
150309
|
153110
|
153111
|
153112
|
153113
|
154094
|
156410
|
156470
|
156471
|
156472
|
156473
|
156474
|
156475
|
156476
|
156477
|
156478
|
156479
|
156481
|
156482
|
156483
|
156504
|
156505
|
159327
|
159328
|
159329
|
159330
|
159340
|
159343
|
159386
|
159389
|
159395
|
159397
|
159398
|
159399
|
159400
|
159401
|
159402
|
159403
|
159404
|
159405
|
159406
|
159407
|
161724