From 7bf1d9e1bb6c81bed5f6b27dbf9be65903af9fa7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 12 May 2025 09:57:46 +0200 Subject: [PATCH] Bug 38899: Move the toolbar out of the form Signed-off-by: Jonathan Druart --- .../vue/components/Vendors/VendorFormAdd.vue | 20 +++++++++---------- .../integration/Acquisitions/Vendors_spec.ts | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorFormAdd.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorFormAdd.vue index 970dc3fbb45..55f193e32bf 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorFormAdd.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorFormAdd.vue @@ -5,17 +5,17 @@ {{ $__("Edit vendor #%s").format(vendor.id) }}

{{ $__("Add vendor") }}

+ + + + +
- - - - - diff --git a/t/cypress/integration/Acquisitions/Vendors_spec.ts b/t/cypress/integration/Acquisitions/Vendors_spec.ts index b82e30f071e..29629460142 100644 --- a/t/cypress/integration/Acquisitions/Vendors_spec.ts +++ b/t/cypress/integration/Acquisitions/Vendors_spec.ts @@ -35,7 +35,7 @@ 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("h1").contains("Add vendor"); // Fill in the form for normal attributes cy.get("#vendor_add").contains("Submit").click(); @@ -140,7 +140,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("h1").contains("Edit vendor"); // Form has been correctly filled in cy.get("#vendor_name").should("have.value", vendor.name); -- 2.34.1