From 23b971cc1227fd7c4a0775e52c9b1b29f785923a Mon Sep 17 00:00:00 2001 From: vladislavploaia Date: Wed, 4 Dec 2024 11:15:00 +0200 Subject: [PATCH] fix: adjust checks for generated compo through endpoint --- tests/robot/TEMPLATE_TESTS/template_example.robot | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/robot/TEMPLATE_TESTS/template_example.robot b/tests/robot/TEMPLATE_TESTS/template_example.robot index aecf64b..7c6be4a 100644 --- a/tests/robot/TEMPLATE_TESTS/template_example.robot +++ b/tests/robot/TEMPLATE_TESTS/template_example.robot @@ -63,14 +63,13 @@ Test Example Generator For Templates (ECIS) - JSON And Commit Composition ${compositionUid} Set Variable ${response.json()}[uid][value] ${template_id} Set Variable ${response.json()}[archetype_details][template_id][value] Set Test Variable ${compositionUid} ${composition_uid} - #Log ${response.json()}[content][0][data][events][0] Remove File ${tempFilePath} - Length Should Be ${response.json()}[content][0][data][events]} 3 - ${eventsLength1} Get Length ${response.json()}[content][0][data][events][0][data][items] + Length Should Be ${response.json()}[content][0][data][events][0]} 3 + ${eventsLength1} Get Length ${response.json()}[content][0][data][events][0][data][items][0] Should Be True ${eventsLength1}==9 - ${eventsLength2} Get Length ${response.json()}[content][0][data][events][1][data][items] + ${eventsLength2} Get Length ${response.json()}[content][0][data][events][1][data][items][0] Should Be True ${eventsLength2}==9 - ${eventsLength3} Get Length ${response.json()}[content][0][data][events][2][data][items] + ${eventsLength3} Get Length ${response.json()}[content][0][data][events][2][data][items][0] Should Be True ${eventsLength3}==9 [Teardown] (admin) delete ehr