Koha-clms/t/cypress/plugins
Martin Renvoize e603e8ff8a
Bug 23269: (RM follow-up) Strip item_group and item_level_holds_count from hold POST body
Bug 23269 added item_group and item_level_holds_count to the hold
response schema (hold.yaml). buildSampleObject reads hold.yaml to
generate test hold objects, so these fields are now included in the
generated object. However, the holds POST endpoint uses an inline
schema with additionalProperties: false that does not include these
fields, causing a 400 validation error when insertSampleHold tries
to create a hold via the API.

Add item_group and item_level_holds_count to the destructuring
strip-list in insertObject so they are excluded from the POST body.

Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
(cherry picked from commit b91ff527a2)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
2026-05-24 13:42:12 +01:00
..
api-client.js Bug 40447: Add comprehensive JSDoc documentation to Cypress plugins 2025-07-21 14:01:30 -06:00
auth.js Bug 40447: Add comprehensive JSDoc documentation to Cypress plugins 2025-07-21 14:01:30 -06:00
db.js Bug 40446: Allow overriding Cypress DB settings 2026-02-03 11:51:08 +00:00
index.js Bug 40447: Add comprehensive JSDoc documentation to Cypress plugins 2025-07-21 14:01:30 -06:00
insertData.js Bug 23269: (RM follow-up) Strip item_group and item_level_holds_count from hold POST body 2026-05-24 13:42:12 +01:00
mockData.js Bug 40542: (40174 follow-up) Skip _strings for object creation 2025-08-01 13:22:28 -06:00
readYamlFile.js Bug 40447: Add comprehensive JSDoc documentation to Cypress plugins 2025-07-21 14:01:30 -06:00