Bugzilla – Attachment 148631 Details for
Bug 33282
Cypress tests are failing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33282: Feed an array of titles so that no dialog message appears
Bug-33282-Feed-an-array-of-titles-so-that-no-dialo.patch (text/plain), 1.43 KB, created by
Jonathan Druart
on 2023-03-24 08:13:29 UTC
(
hide
)
Description:
Bug 33282: Feed an array of titles so that no dialog message appears
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-03-24 08:13:29 UTC
Size:
1.43 KB
patch
obsolete
>From b88d3640181c51b8d366313c4ac7044644f627d9 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Mon, 20 Mar 2023 17:21:06 -0100 >Subject: [PATCH] Bug 33282: Feed an array of titles so that no dialog message > appears > >Including but not limited to the one we're testing for > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/cypress/integration/Dialog_spec.ts | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > >diff --git a/t/cypress/integration/Dialog_spec.ts b/t/cypress/integration/Dialog_spec.ts >index 46702188f8d..9f39eaa2125 100644 >--- a/t/cypress/integration/Dialog_spec.ts >+++ b/t/cypress/integration/Dialog_spec.ts >@@ -88,7 +88,15 @@ describe("Dialog operations", () => { > cy.get("main div[class='dialog message']").contains("Package created"); > cy.get("main div[class='dialog message']").should("have.length", 1); > >- cy.get("#navmenulist").contains("Agreements").click(); >+ cy.intercept("GET", "/api/v1/erm/eholdings/local/titles*", { >+ statusCode: 200, >+ body: [cy.get_title()], >+ headers: { >+ "X-Base-Total-Count": "1", >+ "X-Total-Count": "1", >+ }, >+ }); >+ cy.get("#navmenulist").contains("Titles").click(); > // Info messages should be cleared when view is changed > cy.get("main div[class='dialog message']").should("not.exist"); > }); >-- >2.25.1
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 33282
:
148427
|
148428
|
148429
|
148430
|
148509
|
148510
|
148511
|
148512
| 148631