Bug 37620: Fix Total-Count headers

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Matt Blenkinsop 2024-08-27 09:21:30 +00:00 committed by Katrin Fischer
parent a3a1d7e253
commit e2538b5e83
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -63,8 +63,8 @@ describe("Infinite scroll", () => {
statusCode: 200,
body: pageOne,
headers: {
"X-Base-Total-Count": "20",
"X-Total-Count": "20",
"X-Base-Total-Count": "60",
"X-Total-Count": "60",
},
});
@ -81,8 +81,8 @@ describe("Infinite scroll", () => {
statusCode: 200,
body: pageTwo,
headers: {
"X-Base-Total-Count": "40",
"X-Total-Count": "40",
"X-Base-Total-Count": "60",
"X-Total-Count": "60",
},
}).as("getPageTwo");
// Scroll the dropdown
@ -127,8 +127,8 @@ describe("Infinite scroll", () => {
statusCode: 200,
body: pageOne,
headers: {
"X-Base-Total-Count": "20",
"X-Total-Count": "20",
"X-Base-Total-Count": "60",
"X-Total-Count": "60",
},
});
@ -190,8 +190,8 @@ describe("Infinite scroll", () => {
statusCode: 200,
body: pageOne,
headers: {
"X-Base-Total-Count": "20",
"X-Total-Count": "20",
"X-Base-Total-Count": "60",
"X-Total-Count": "60",
},
}).as("getPageOne");
@ -208,8 +208,8 @@ describe("Infinite scroll", () => {
statusCode: 200,
body: pageTwo,
headers: {
"X-Base-Total-Count": "40",
"X-Total-Count": "40",
"X-Base-Total-Count": "60",
"X-Total-Count": "60",
},
}).as("getPageTwo");
// Scroll the dropdown
@ -245,8 +245,8 @@ describe("Infinite scroll", () => {
},
],
headers: {
"X-Base-Total-Count": "20",
"X-Total-Count": "20",
"X-Base-Total-Count": "60",
"X-Total-Count": "60",
},
}).as("searchFilter");
// Select a license that is not in the first page of results
@ -279,8 +279,8 @@ describe("Infinite scroll", () => {
statusCode: 200,
body: pageOne,
headers: {
"X-Base-Total-Count": "20",
"X-Total-Count": "20",
"X-Base-Total-Count": "60",
"X-Total-Count": "60",
},
}).as("resetDropdown");
cy.get("#license_id_0 .vs__open-indicator").click();
@ -306,8 +306,8 @@ describe("Infinite scroll", () => {
},
],
headers: {
"X-Base-Total-Count": "20",
"X-Total-Count": "20",
"X-Base-Total-Count": "60",
"X-Total-Count": "60",
},
}).as("secondSearchFilter");
cy.get("#license_id_0 .vs__open-indicator").click();