Bugzilla – Attachment 176546 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.15 KB, created by
Matt Blenkinsop
on 2025-01-15 10:42:42 UTC
(
hide
)
Description:
Bug 38899: Add a cypress test
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2025-01-15 10:42:42 UTC
Size:
1.15 KB
patch
obsolete
>From 04b943c12fe5866fbc83c48a05f2f9b962e6f8f0 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 > >--- > 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 00000000000..729ca5cffba >--- /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 (Apple Git-154)
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