Bugzilla – Attachment 159244 Details for
Bug 35229
Fix and add further cypress tests for Usage reporting
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35229: Fix DataProviders_spec.ts
Bug-35229-Fix-DataProvidersspects.patch (text/plain), 2.18 KB, created by
Tomás Cohen Arazi (tcohen)
on 2023-11-24 19:28:03 UTC
(
hide
)
Description:
Bug 35229: Fix DataProviders_spec.ts
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2023-11-24 19:28:03 UTC
Size:
2.18 KB
patch
obsolete
>From fb1c01452db88b87fb41cfea7f8f49f7aa080694 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >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 <david@davidnind.com> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > .../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 60c23eb4ffa..47e70abfaf9 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.43.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35229
:
158250
|
158991
|
159003
|
159042
|
159043
|
159243
| 159244