diff --git a/t/cypress/integration/t/mockData.ts b/t/cypress/integration/t/mockData.ts index 8c63fb75f7..1d6d21df0a 100644 --- a/t/cypress/integration/t/mockData.ts +++ b/t/cypress/integration/t/mockData.ts @@ -74,4 +74,14 @@ describe("Generate objects", () => { ); }); }); + + it("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); + }); + }); });