From e2538b5e8312c4a8b4a0f1ce279423371770cbf8 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Tue, 27 Aug 2024 09:21:30 +0000 Subject: [PATCH] Bug 37620: Fix Total-Count headers Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer --- .../integration/InfiniteScrollSelect_spec.ts | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/t/cypress/integration/InfiniteScrollSelect_spec.ts b/t/cypress/integration/InfiniteScrollSelect_spec.ts index 8d09faa446..73daf8bc15 100644 --- a/t/cypress/integration/InfiniteScrollSelect_spec.ts +++ b/t/cypress/integration/InfiniteScrollSelect_spec.ts @@ -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();