Bugzilla – Attachment 189487 Details for
Bug 19814
Batch Check-in function
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41001: (QA follow-up): Add 'Confirmation messages with inputs' specific tests
Bug-41001-QA-follow-up-Add-Confirmation-messages-w.patch (text/plain), 3.03 KB, created by
Marcel de Rooy
on 2025-11-11 14:48:14 UTC
(
hide
)
Description:
Bug 41001: (QA follow-up): Add 'Confirmation messages with inputs' specific tests
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2025-11-11 14:48:14 UTC
Size:
3.03 KB
patch
obsolete
>From 74d5af9b39ab1f6e66e9e94f6335e29f5ecc60a0 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@openfifth.co.uk> >Date: Thu, 23 Oct 2025 10:14:01 +0000 >Subject: [PATCH] Bug 41001: (QA follow-up): Add 'Confirmation messages with > inputs' specific tests >Content-Type: text/plain; charset=utf-8 > >cypress run --spec t/cypress/integration/ERM/Dialog_spec.ts > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > t/cypress/integration/ERM/Dialog_spec.ts | 58 ++++++++++++++++++++++++ > 1 file changed, 58 insertions(+) > >diff --git a/t/cypress/integration/ERM/Dialog_spec.ts b/t/cypress/integration/ERM/Dialog_spec.ts >index 71d4829b6b..0494d0ed49 100644 >--- a/t/cypress/integration/ERM/Dialog_spec.ts >+++ b/t/cypress/integration/ERM/Dialog_spec.ts >@@ -180,4 +180,62 @@ describe("Dialog operations", () => { > .contains("deleted"); > cy.get("main div[class='alert alert-info']").should("have.length", 1); > }); >+ >+ it("Confirmation messages with inputs", () => { >+ const dataProvider = cy.get_usage_data_provider(); >+ const dataProviders = [dataProvider]; >+ >+ cy.intercept("GET", "/api/v1/erm/usage_data_providers*", { >+ statusCode: 200, >+ body: dataProviders, >+ headers: { >+ "X-Base-Total-Count": "1", >+ "X-Total-Count": "1", >+ }, >+ }); >+ cy.intercept("GET", "/api/v1/erm/usage_data_providers/*", dataProvider); >+ cy.visit("/cgi-bin/koha/erm/eusage/usage_data_providers"); >+ >+ cy.get("#usage_data_providers_list table tbody tr:first") >+ .contains("Run now") >+ .click(); >+ cy.get(".modal.confirmation p").contains(dataProvider.name); >+ cy.get("body").click(0, 0); >+ >+ cy.get("#usage_data_providers_list table tbody tr:first") >+ .contains("Run now") >+ .click(); >+ >+ 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("#begin_date+input").click(); >+ cy.get(".flatpickr-current-month select") >+ .invoke("val") >+ .then(month => { >+ cy.get(".flatpickr-current-month > select > option").eq(0); >+ cy.get(".dayContainer").contains(new RegExp("^1$")).click(); >+ }); >+ cy.get("#accept_modal").click(); >+ cy.get("main div[class='alert alert-info']").should( >+ "have.text", >+ "Job for report type TR_J1 has been queued. Check job progress." >+ ); >+ }); > }); >-- >2.39.5
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 19814
:
186374
|
186375
|
189487
|
189488
|
189489
|
189490
|
189529
|
189568
|
189586
|
189587
|
189588
|
189589
|
189590
|
189591
|
189592