From 82d4d4b826538a0151f20821e9c995ff46fdb55b Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Wed, 30 Apr 2025 22:50:58 +0200
Subject: [PATCH] Bug 38010: Fix cypress tests - add _count to the mock object

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
---
 t/cypress/integration/Acquisitions/Vendors_spec.ts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/t/cypress/integration/Acquisitions/Vendors_spec.ts b/t/cypress/integration/Acquisitions/Vendors_spec.ts
index ee45fb9fc05..329da26bb60 100644
--- a/t/cypress/integration/Acquisitions/Vendors_spec.ts
+++ b/t/cypress/integration/Acquisitions/Vendors_spec.ts
@@ -8,6 +8,7 @@ const getVendor = () => {
         address4: null,
         aliases: [{ alias: "Test alias" }],
         baskets: [],
+        baskets_count: 0,
         contacts: [
             {
                 name: "Test contact",
@@ -43,6 +44,7 @@ const getVendor = () => {
         ],
         invoice_currency: "USD",
         invoice_includes_gst: false,
+        invoices_count: 0,
         list_currency: "USD",
         list_includes_gst: false,
         name: "My Vendor",
@@ -50,6 +52,7 @@ const getVendor = () => {
         phone: "555-555-5555",
         postal: "567 Main St. PO Box 25 Springfield, MA 44224",
         subscriptions: [],
+        subscriptions_count: 0,
         tax_rate: 0.1965,
         type: "Print books",
         url: "https://koha-community.org/",
-- 
2.34.1