Bugzilla – Attachment 189550 Details for
Bug 41173
ERM breadcrumb link causes page reload
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41173: Add a Cypress test
b591ca4.patch (text/plain), 1.38 KB, created by
Jonathan Druart
on 2025-11-13 10:41:29 UTC
(
hide
)
Description:
Bug 41173: Add a Cypress test
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-11-13 10:41:29 UTC
Size:
1.38 KB
patch
obsolete
>From b591ca479622f9eaf43f34508ddddd46baa1f521 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 13 Nov 2025 11:41:16 +0100 >Subject: [PATCH] Bug 41173: Add a Cypress test > >--- > t/cypress/integration/ERM/Main.ts | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > >diff --git a/t/cypress/integration/ERM/Main.ts b/t/cypress/integration/ERM/Main.ts >index 58dc5b90dc5..998ca5507cd 100644 >--- a/t/cypress/integration/ERM/Main.ts >+++ b/t/cypress/integration/ERM/Main.ts >@@ -37,3 +37,26 @@ describe("Main component - pref on", () => { > cy.get(".main div[class='alert alert-warning']").should("not.exist"); > }); > }); >+ >+describe.only("Breadcrumb", () => { >+ beforeEach(() => { >+ cy.login(); >+ cy.title().should("eq", "Koha staff interface"); >+ cy.intercept( >+ "GET", >+ "/api/v1/erm/config", >+ '{"settings":{"ERMModule":"1","ERMProviders":["local"]}}' >+ ); >+ }); >+ >+ it("Home should not reload the app", () => { >+ cy.visit("/cgi-bin/koha/erm/agreements"); >+ cy.window().then(win => { >+ const originalWindow = win; >+ cy.get("#breadcrumbs").contains("E-resource management").click(); >+ cy.window().should(newWin => { >+ expect(newWin).to.equal(originalWindow); >+ }); >+ }); >+ }); >+}); >-- >2.34.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 41173
:
188983
|
188984
|
189369
|
189431
| 189550