Bugzilla – Attachment 159043 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.13 KB, created by
David Nind
on 2023-11-16 12:55:39 UTC
(
hide
)
Description:
Bug 35229: Fix DataProviders_spec.ts
Filename:
MIME Type:
Creator:
David Nind
Created:
2023-11-16 12:55:39 UTC
Size:
2.13 KB
patch
obsolete
>From 3d4b4dc6cf966362c03007b134c0fd6871056527 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> >--- > .../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.30.2
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