Skip to content

Commit

Permalink
fix: adjust checks for generated compo through endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
vladislavploaia committed Dec 4, 2024
1 parent bff38df commit 23b971c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/robot/TEMPLATE_TESTS/template_example.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 23b971c

Please sign in to comment.