Bugzilla – Attachment 183753 Details for
Bug 40301
Missing Cypress tests for 'Type' column visibility
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40301: (bug 40299 follow-up) Add Cypress tests
Bug-40301-bug-40299-follow-up-Add-Cypress-tests.patch (text/plain), 1.48 KB, created by
Jonathan Druart
on 2025-07-03 12:13:15 UTC
(
hide
)
Description:
Bug 40301: (bug 40299 follow-up) Add Cypress tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-07-03 12:13:15 UTC
Size:
1.48 KB
patch
obsolete
>From dd8f10783347d882cdfa7f0fed4515813d074575 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 3 Jul 2025 14:01:51 +0200 >Subject: [PATCH] Bug 40301: (bug 40299 follow-up) Add Cypress tests > >--- > .../KohaTable/CirculationHistory_spec.ts | 23 +++++++++++++++++++ > 1 file changed, 23 insertions(+) > create mode 100644 t/cypress/integration/KohaTable/CirculationHistory_spec.ts > >diff --git a/t/cypress/integration/KohaTable/CirculationHistory_spec.ts b/t/cypress/integration/KohaTable/CirculationHistory_spec.ts >new file mode 100644 >index 00000000000..401ca93c7b0 >--- /dev/null >+++ b/t/cypress/integration/KohaTable/CirculationHistory_spec.ts >@@ -0,0 +1,23 @@ >+describe("members/readingrec", () => { >+ const table_id = "table_readingrec"; >+ beforeEach(() => { >+ cy.login(); >+ cy.title().should("eq", "Koha staff interface"); >+ cy.task("insertSampleCheckout").then(objects_checkout => { >+ cy.wrap(objects_checkout).as("objects_checkout"); >+ }); >+ }); >+ >+ afterEach(function () { >+ cy.task("deleteSampleObjects", [this.objects_checkout]); >+ }); >+ >+ it("'Type' column should be hidden", function () { >+ cy.visit( >+ `/cgi-bin/koha/members/readingrec.pl?borrowernumber=${this.objects_checkout.patron.patron_id}` >+ ); >+ >+ cy.get(`#${table_id} th`).contains("Type").should("not.exist"); >+ cy.get(`#${table_id} th:first`).contains("Date"); >+ }); >+}); >-- >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 40301
:
183752
| 183753