Bugzilla – Attachment 183973 Details for
Bug 40346
Allow Cypress to test OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40346: Add tests
Bug-40346-Add-tests.patch (text/plain), 1.28 KB, created by
Jonathan Druart
on 2025-07-11 07:19:42 UTC
(
hide
)
Description:
Bug 40346: Add tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-07-11 07:19:42 UTC
Size:
1.28 KB
patch
obsolete
>From 127f50a592312e71ed1169d47c702d2cb161581c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 11 Jul 2025 09:18:14 +0200 >Subject: [PATCH] Bug 40346: Add tests > >--- > t/cypress/integration/t/commands.ts | 27 +++++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > create mode 100644 t/cypress/integration/t/commands.ts > >diff --git a/t/cypress/integration/t/commands.ts b/t/cypress/integration/t/commands.ts >new file mode 100644 >index 00000000000..1761941db1e >--- /dev/null >+++ b/t/cypress/integration/t/commands.ts >@@ -0,0 +1,27 @@ >+describe("visit", () => { >+ it("should visit staff", () => { >+ cy.visit("/"); >+ cy.title().should("eq", "Log in to Koha ⺠Koha"); >+ }); >+}); >+ >+describe("login", () => { >+ it("should log in at the staff interface", () => { >+ cy.login(); >+ cy.title().should("eq", "Koha staff interface"); >+ }); >+}); >+ >+describe("visitOpac", () => { >+ it("should visit OPAC", () => { >+ cy.visitOpac("/"); >+ cy.title().should("eq", "Koha online catalog"); >+ }); >+}); >+ >+describe("loginOpac", () => { >+ it("should log in at the OPAC interface", () => { >+ cy.loginOpac(); >+ cy.title().should("eq", "Your summary ⺠Koha online catalog"); >+ }); >+}); >-- >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 40346
:
183972
| 183973 |
183982