Bugzilla – Attachment 182249 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: Fix cypress tests
Bug-38899-Fix-cypress-tests.patch (text/plain), 2.35 KB, created by
Jonathan Druart
on 2025-05-12 07:58:32 UTC
(
hide
)
Description:
Bug 38899: Fix cypress tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-05-12 07:58:32 UTC
Size:
2.35 KB
patch
obsolete
>From f10767b7f8f6d542279091e3c464bb50ce5b367f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 12 May 2025 09:45:14 +0200 >Subject: [PATCH] Bug 38899: Fix cypress tests > >--- > t/cypress/integration/Acquisitions/Vendors_spec.ts | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > >diff --git a/t/cypress/integration/Acquisitions/Vendors_spec.ts b/t/cypress/integration/Acquisitions/Vendors_spec.ts >index 329da26bb60..0c25c924c73 100644 >--- a/t/cypress/integration/Acquisitions/Vendors_spec.ts >+++ b/t/cypress/integration/Acquisitions/Vendors_spec.ts >@@ -96,10 +96,10 @@ describe("Vendor CRUD operations", () => { > // Click the button in the toolbar > cy.visit("/cgi-bin/koha/acquisition/vendors"); > cy.contains("New vendor").click(); >- cy.get("#vendor_add h1").contains("Add vendor"); >+ cy.get("#add_vendor h1").contains("Add vendor"); > > // Fill in the form for normal attributes >- cy.get("#vendor_add").contains("Submit").click(); >+ cy.get("#add_vendor").contains("Submit").click(); > cy.get("input:invalid,textarea:invalid,select:invalid").should( > "have.length", > 1 >@@ -175,7 +175,7 @@ describe("Vendor CRUD operations", () => { > statusCode: 201, > body: vendor, > }); >- cy.get("#vendor_add").contains("Submit").click(); >+ cy.get("#add_vendor").contains("Submit").click(); > cy.get("main div[class='alert alert-info']").contains("Vendor created"); > }); > >@@ -193,7 +193,7 @@ describe("Vendor CRUD operations", () => { > cy.get("#vendors_list table tbody tr:first").contains("Edit").click(); > cy.wait("@get-vendor"); > cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet! >- cy.get("#vendor_add h1").contains("Edit vendor"); >+ cy.get("#add_vendor h1").contains("Edit vendor"); > > // Form has been correctly filled in > cy.get("#vendor_name").should("have.value", vendor.name); >@@ -206,7 +206,7 @@ describe("Vendor CRUD operations", () => { > statusCode: 200, > body: vendor, > }); >- cy.get("#vendor_add").contains("Submit").click(); >+ cy.get("#add_vendor").contains("Submit").click(); > cy.get("main div[class='alert alert-info']").contains("Vendor updated"); > }); > >-- >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 38899
:
176545
|
176546
|
181822
|
181823
|
181851
|
181852
|
181965
|
182151
|
182249
|
182250
|
182255
|
182449
|
182580
|
182646
|
182973
|
182974
|
182975
|
182976
|
182977
|
182978
|
182979
|
182980
|
183114
|
183115
|
183116
|
183117
|
183118
|
183119
|
183120
|
183121