From a15227cb5cbb51cf092b279e4556de4c74c118fe Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 1 Sep 2023 12:53:43 +0000 Subject: [PATCH] Bug 34690: Fix dialog_spec.ts Run the tests, verify they fail Apply this patch, run tests again, verify they now pass Signed-off-by: Jonathan Druart --- t/cypress/integration/ERM/Dialog_spec.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/t/cypress/integration/ERM/Dialog_spec.ts b/t/cypress/integration/ERM/Dialog_spec.ts index 88fb877e24d..131b799c5a7 100644 --- a/t/cypress/integration/ERM/Dialog_spec.ts +++ b/t/cypress/integration/ERM/Dialog_spec.ts @@ -82,6 +82,14 @@ describe("Dialog operations", () => { statusCode: 201, body: erm_package, }); + cy.intercept("GET", "/api/v1/erm/eholdings/local/packages*", { + statusCode: 200, + body: [erm_package], + headers: { + "X-Base-Total-Count": "1", + "X-Total-Count": "1", + }, + }); cy.get("#packages_add").contains("Submit").click(); cy.get("main div[class='dialog message']").contains("Package created"); cy.get("#package_list_result").should("exist"); -- 2.25.1