Skip to content

Commit 8f1e744

Browse files
feat: add Robot checks for ehr_status (#96)
1 parent ec460cf commit 8f1e744

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/robot/EHR_STATUS_TESTS/C.3_SET_EHR_MODIFIABLE/C.3__a)_Existing_EHR.robot

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,14 @@ Set EHR modifiable of an existing EHR
5555
update EHR: set ehr-status modifiable ${TRUE}
5656

5757
check response of 'update EHR' (JSON)
58+
Set Test Variable ${expected_ehr_status_json} ${response.json()}
59+
60+
internal get versioned ehr_status of EHR by time without query
61+
Should Be Equal ${response.status_code} ${200}
62+
Set Test Variable ${actual_ehr_status_json} ${response.json()['data']}
63+
64+
${diff} compare json-strings
65+
... ${actual_ehr_status_json} ${expected_ehr_status_json}
66+
... ignore_order=${FALSE} ignore_string_case=${TRUE}
67+
Should Be Empty ${diff} msg=DIFF DETECTED!
5868
[Teardown] (admin) delete ehr

0 commit comments

Comments
 (0)