From fb1c01452db88b87fb41cfea7f8f49f7aa080694 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 15 Nov 2023 13:10:22 -0100 Subject: [PATCH] Bug 35229: Fix DataProviders_spec.ts The intercept was wrong: Was intercepting GET instead of POST Was intercepting /run route intead of /process_SUSHI_response (this naming was updated in the rest of the code but not here) Signed-off-by: David Nind Signed-off-by: Tomas Cohen Arazi --- .../integration/ERM/DataProviders_spec.ts | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/t/cypress/integration/ERM/DataProviders_spec.ts b/t/cypress/integration/ERM/DataProviders_spec.ts index 60c23eb4ff..47e70abfaf 100644 --- a/t/cypress/integration/ERM/DataProviders_spec.ts +++ b/t/cypress/integration/ERM/DataProviders_spec.ts @@ -692,21 +692,25 @@ describe("Data providers action buttons", () => { .click(); cy.get(".modal_centered p").contains(dataProvider.name); - cy.intercept("GET", "/api/v1/erm/usage_data_providers/1/run*", { - statusCode: 200, - body: { - jobs: [ - { - report_type: "TR_J1", - job_id: 1, - }, - ], - }, - headers: { - "X-Base-Total-Count": "1", - "X-Total-Count": "1", - }, - }); + cy.intercept( + "POST", + "/api/v1/erm/usage_data_providers/1/process_SUSHI_response*", + { + statusCode: 200, + body: { + jobs: [ + { + report_type: "TR_J1", + job_id: 1, + }, + ], + }, + headers: { + "X-Base-Total-Count": "1", + "X-Total-Count": "1", + }, + } + ); cy.get("#confirmation_input_begin_date+input").click(); cy.get(".flatpickr-current-month select") .invoke("val") -- 2.39.5