From d1634ce134fb8da0faf4324cb30456f8eb65a236 Mon Sep 17 00:00:00 2001 From: Jan Melcher Date: Mon, 5 Feb 2024 10:27:22 +0100 Subject: [PATCH] test: ensure that updating child entities does not change their order --- .../logistics/tests/update-child-entities-dict.graphql | 3 ++- spec/regression/logistics/tests/update-child-entities.graphql | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/regression/logistics/tests/update-child-entities-dict.graphql b/spec/regression/logistics/tests/update-child-entities-dict.graphql index f82e382f..be119fc3 100644 --- a/spec/regression/logistics/tests/update-child-entities-dict.graphql +++ b/spec/regression/logistics/tests/update-child-entities-dict.graphql @@ -58,9 +58,10 @@ mutation updateMultiple { updateItems: [ { id: "id_test_0003", itemNumber: "updated03" } { id: "id_test_0005", itemNumber: "updated05" } - { id: "id_test_0007", itemNumber: "updated07" } { id: "id_test_0008", itemNumber: "updated08" } { id: "id_test_0009", itemNumber: "updated09" } + # out of order to make sure the original order is preserved + { id: "id_test_0007", itemNumber: "updated07" } # make sure this one does not end up in the list # (the initial implementation of the dict-based update had a bug that it was) { id: "nonexistant", itemNumber: "updated10" } diff --git a/spec/regression/logistics/tests/update-child-entities.graphql b/spec/regression/logistics/tests/update-child-entities.graphql index f7f884f3..519f58b2 100644 --- a/spec/regression/logistics/tests/update-child-entities.graphql +++ b/spec/regression/logistics/tests/update-child-entities.graphql @@ -58,9 +58,10 @@ mutation updateMultiple { updateItems: [ { id: "id_test_0003", itemNumber: "updated03" } { id: "id_test_0005", itemNumber: "updated05" } - { id: "id_test_0007", itemNumber: "updated07" } { id: "id_test_0008", itemNumber: "updated08" } { id: "id_test_0009", itemNumber: "updated09" } + # out of order to make sure the original order is preserved + { id: "id_test_0007", itemNumber: "updated07" } # make sure this one does not end up in the list # (the initial implementation of the dict-based update had a bug that it was) { id: "nonexistant", itemNumber: "updated10" }