From 2d63671daabba3f91bba4f8bc8d1f68d057e9aad Mon Sep 17 00:00:00 2001 From: Marc-Roig Date: Wed, 12 Jul 2023 09:43:27 +0200 Subject: [PATCH] fix: relations test relation disconnect breaking other relations --- .../core/content-manager/api/relations.test.api.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api-tests/core/content-manager/api/relations.test.api.js b/api-tests/core/content-manager/api/relations.test.api.js index 85c2a5139f..8becbde752 100644 --- a/api-tests/core/content-manager/api/relations.test.api.js +++ b/api-tests/core/content-manager/api/relations.test.api.js @@ -686,11 +686,11 @@ describe('Relations', () => { populate: populateShop, }); - // shop2 relations should be unchanged (content-manager relations are shown in reverse order) - expect(updatedShop2.products_om).toMatchObject([{ id: id2 }, { id: id1 }]); - expect(updatedShop2.products_mm).toMatchObject([{ id: id2 }, { id: id1 }]); - expect(updatedShop2.products_mw).toMatchObject([{ id: id2 }, { id: id1 }]); - expect(updatedShop2.myCompo.compo_products_mw).toMatchObject([{ id: id2 }, { id: id1 }]); + // shop2 relations should be unchanged + expect(updatedShop2.products_om).toMatchObject([{ id: id1 }, { id: id2 }]); + expect(updatedShop2.products_mm).toMatchObject([{ id: id1 }, { id: id2 }]); + expect(updatedShop2.products_mw).toMatchObject([{ id: id1 }, { id: id2 }]); + expect(updatedShop2.myCompo.compo_products_mw).toMatchObject([{ id: id1 }, { id: id2 }]); }); });