Bugzilla – Attachment 181852 Details for
Bug 38899
Allow the Vue toolbar to be sticky
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38899: Add a cypress test
Bug-38899-Add-a-cypress-test.patch (text/plain), 1.18 KB, created by
David Nind
on 2025-05-02 11:31:57 UTC
(
hide
)
Description:
Bug 38899: Add a cypress test
Filename:
MIME Type:
Creator:
David Nind
Created:
2025-05-02 11:31:57 UTC
Size:
1.18 KB
patch
obsolete
>From 4459fe01e35eb009b8baae851c41f82a7a3be54b Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Date: Wed, 15 Jan 2025 10:42:19 +0000 >Subject: [PATCH] Bug 38899: Add a cypress test > >Signed-off-by: David Nind <david@davidnind.com> >--- > t/cypress/integration/Toolbar_spec.ts | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > create mode 100644 t/cypress/integration/Toolbar_spec.ts > >diff --git a/t/cypress/integration/Toolbar_spec.ts b/t/cypress/integration/Toolbar_spec.ts >new file mode 100644 >index 0000000000..729ca5cffb >--- /dev/null >+++ b/t/cypress/integration/Toolbar_spec.ts >@@ -0,0 +1,18 @@ >+describe("Sticky toolbar", () => { >+ beforeEach(() => { >+ cy.login(); >+ cy.title().should("eq", "Koha staff interface"); >+ }); >+ >+ it("Should stick on scroll", () => { >+ cy.visit("/cgi-bin/koha/acqui/acqui-home.pl"); >+ >+ cy.get("#toolbar").contains("New vendor").click(); >+ cy.scrollTo("bottom"); >+ cy.get("#toolbar").should("be.visible"); >+ cy.get("#toolbar").should("have.class", "floating"); >+ >+ cy.scrollTo("top"); >+ cy.get("#toolbar").should("not.have.class", "floating"); >+ }); >+}); >-- >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 38899
:
176545
|
176546
|
181822
|
181823
|
181851
| 181852 |
181965
|
182151