From 2f2476c1c7435a54e7c5001ea9201476373944c9 Mon Sep 17 00:00:00 2001 From: Victor Grousset/tuxayo Date: Wed, 4 Dec 2024 22:25:54 +0100 Subject: [PATCH] Bug 38461: Fix multiple case changes that broke variables Amended-by: Jonathan Druart - "x-base-total-count": baseTotalCount, - "x-total-count": baseTotalCount, + "X-Base-Total-Count": baseTotalCount, + "X-Total-Count": baseTotalCount, Signed-off-by: Martin Renvoize --- t/cypress/integration/KohaTable_spec.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/t/cypress/integration/KohaTable_spec.ts b/t/cypress/integration/KohaTable_spec.ts index 16f9c5c279e..2d7fd114c77 100644 --- a/t/cypress/integration/KohaTable_spec.ts +++ b/t/cypress/integration/KohaTable_spec.ts @@ -482,9 +482,9 @@ describe("Hit all tables", () => { const table_id = "holdings_table"; it("correctly init", () => { const biblio_id = 1; - cy.task("buildsampleobjects", { + cy.task("buildSampleObjects", { object: "item", - count: restdefaultpagesize, + count: RESTdefaultPageSize, values: { biblio_id, checkout: null, @@ -500,8 +500,8 @@ describe("Hit all tables", () => { statuscode: 200, body: items, headers: { - "x-base-total-count": basetotalcount, - "x-total-count": basetotalcount, + "X-Base-Total-Count": baseTotalCount, + "X-Total-Count": baseTotalCount, }, }); @@ -519,12 +519,12 @@ describe("Hit all tables", () => { cy.get(`#${table_id}_wrapper tbody tr`).should( "have.length", - restdefaultpagesize + RESTdefaultPageSize ); cy.get(".show_filters").click(); cy.get(`#${table_id}_wrapper .dt-info`).contains( - `showing 1 to ${restdefaultpagesize} of ${basetotalcount} entries` + `Showing 1 to ${RESTdefaultPageSize} of ${baseTotalCount} entries` ); }); }); -- 2.47.1