Skip to content

Commit

Permalink
fix: modify checks for events number
Browse files Browse the repository at this point in the history
  • Loading branch information
vladislavploaia committed Dec 4, 2024
1 parent 23b971c commit 6ca1ba3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/robot/TEMPLATE_TESTS/template_example.robot
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ Test Example Generator For Templates (ECIS) - JSON And Commit Composition
${template_id} Set Variable ${response.json()}[archetype_details][template_id][value]
Set Test Variable ${compositionUid} ${composition_uid}
Remove File ${tempFilePath}
Length Should Be ${response.json()}[content][0][data][events][0]} 3
${eventsLength1} Get Length ${response.json()}[content][0][data][events][0][data][items][0]
Length Should Be ${response.json()['content'][0]['data']['events']} 3
${eventsLength1} Get Length ${response.json()['content'][0]['data']['events'][0]['data']['items']}
Should Be True ${eventsLength1}==9
${eventsLength2} Get Length ${response.json()}[content][0][data][events][1][data][items][0]
${eventsLength2} Get Length ${response.json()['content'][0]['data']['events'][1]['data']['items']}
Should Be True ${eventsLength2}==9
${eventsLength3} Get Length ${response.json()}[content][0][data][events][2][data][items][0]
${eventsLength3} Get Length ${response.json()['content'][0]['data']['events'][2]['data']['items']}
Should Be True ${eventsLength3}==9
[Teardown] (admin) delete ehr

Expand Down

0 comments on commit 6ca1ba3

Please sign in to comment.