From e7b95d8ef0890420820d17a5c51cd97059ed716f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 18 Jun 2025 22:23:19 +0200 Subject: [PATCH] Bug 40169: Add a test Signed-off-by: David Nind --- t/cypress/integration/t/mockData.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/t/cypress/integration/t/mockData.ts b/t/cypress/integration/t/mockData.ts index 8c63fb75f7..1c586fac76 100644 --- a/t/cypress/integration/t/mockData.ts +++ b/t/cypress/integration/t/mockData.ts @@ -74,4 +74,14 @@ describe("Generate objects", () => { ); }); }); + + it.only("should not overwrite _id if passed", () => { + const home_library_id = "LIB4TEST"; + cy.task("buildSampleObject", { + object: "item", + values: { home_library_id }, + }).then(mockItem => { + expect(mockItem.home_library_id).to.equal(home_library_id); + }); + }); }); -- 2.39.5